Skip to content

Commit 7685feb

Browse files
committed
impl: retrieve supported response type and the dynamic client registration url
OAuth endpoint `.well-known/oauth-authorization-server` provides metadata about the endpoint for dynamic client registration and supported response types. This commit adds support for deserializing these values.
1 parent 1a3415b commit 7685feb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/kotlin/com/coder/toolbox/oauth/AuthorizationServer.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import com.squareup.moshi.JsonClass
77
data class AuthorizationServer(
88
@field:Json(name = "authorization_endpoint") val authorizationEndpoint: String,
99
@field:Json(name = "token_endpoint") val tokenEndpoint: String,
10+
@field:Json(name = "registration_endpoint") val registrationEndpoint: String,
11+
@property:Json(name = "response_types_supported") val supportedResponseTypes: List<String>,
1012
@property:Json(name = "token_endpoint_auth_methods_supported") val authMethodForTokenEndpoint: List<TokenEndpointAuthMethod>,
1113
)
1214

0 commit comments

Comments
 (0)