Skip to content

Commit

Permalink
Add constant for path to OAuth 2.0 metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
nodh committed Sep 30, 2024
1 parent e9e0169 commit bec2abd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ object OpenIdConstants {

const val PATH_WELL_KNOWN_CREDENTIAL_ISSUER = "/.well-known/openid-credential-issuer"

const val PATH_WELL_KNOWN_OPENID_CONFIGURATION = "/.well-known/openid-configuration"

const val SCOPE_OPENID = "openid"

const val SCOPE_PROFILE = "profile"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package at.asitplus.wallet.lib.oauth2
import at.asitplus.KmmResult
import at.asitplus.catching
import at.asitplus.openid.*
import at.asitplus.openid.OpenIdConstants.Errors
import at.asitplus.signum.indispensable.io.Base64UrlStrict
import at.asitplus.wallet.lib.iso.sha256
import at.asitplus.wallet.lib.oidc.AuthenticationResponseResult
import at.asitplus.openid.OpenIdConstants.Errors
import at.asitplus.wallet.lib.oidvci.*
import io.github.aakira.napier.Napier
import io.ktor.http.*
Expand Down Expand Up @@ -61,7 +61,8 @@ class SimpleAuthorizationService(
override val supportsClientNonce: Boolean = true

/**
* Serve this result JSON-serialized under `/.well-known/openid-configuration`
* Serve this result JSON-serialized under `/.well-known/openid-configuration`,
* see [OpenIdConstants.PATH_WELL_KNOWN_OPENID_CONFIGURATION]
*/
val metadata: OAuth2AuthorizationServerMetadata by lazy {
OAuth2AuthorizationServerMetadata(
Expand Down

0 comments on commit bec2abd

Please sign in to comment.