SimpleAuthorizationService
Simple authorization server implementation, to be used for CredentialIssuer, when issuing credentials directly from a local dataProvider.
Implemented from OpenID for Verifiable Credential Issuance (https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html), Draft 13, 2024-02-08.
Constructors
Properties
Used to build OAuth2AuthorizationServerMetadata.authorizationEndpoint, i.e. implementers need to forward requests to that URI (which starts with publicContext) to authorize.
Serve this result JSON-serialized under /.well-known/openid-configuration
Used in several fields in OAuth2AuthorizationServerMetadata, to provide endpoint URLs to clients.
Used to build OAuth2AuthorizationServerMetadata.tokenEndpoint, i.e. implementers need to forward requests to that URI (which starts with publicContext) to token.
Functions
Builds the authentication response. Send this result as HTTP Header Location
in a 302 response to the client.
Get the OidcUserInfoExtended (holding OidcUserInfo) associated with the accessToken, that was created before at the Authorization Server.
Provide necessary OAuth2AuthorizationServerMetadata JSON for a client to be able to authenticate
Provide a pre-authorized code (for flow defined in OID4VCI), to be used by the Wallet implementation to load credentials.
Verifies the authorization code sent by the client and issues an access token. Send this value JSON-serialized back to the client.