QtspAuthorizationServiceStrategy

Implements Authorization for QTSP as necessary for Potential UC5

Constructors

Link copied to clipboard
constructor(authorizationServiceStrategy: CredentialAuthorizationServiceStrategy)

Functions

Link copied to clipboard
open override fun allCredentialIdentifier(): Set<String>

Return all valid credential identifiers for all schemes.

Filters the authorization details received in the authorization request to include in the token response.

Link copied to clipboard
open override fun filterScope(scope: String): String?

Filter the requested scope in the access token request to ones valid for credential issuance

Reject if authorization details from tokenRequestAuthnDetails do not match 1:1 the ones from authRequest

Link copied to clipboard
open override fun validateAuthorizationDetails(authorizationDetails: Collection<AuthorizationDetails>, configurationIds: Set<String>): Boolean

Validates that the requested authorization details are valid for the given credential configuration ids.

open override fun validateAuthorizationDetails(authorizationDetails: Collection<AuthorizationDetails>)

QTSP can be assumed to only know CSC-related authn details (at.asitplus.openid.CscAuthorizationDetails) and rejet all others

Link copied to clipboard
open override fun validateScope(scope: String, configurationIds: Set<String>): Boolean

Validates the requested scope are valid for the given credential configuration ids.

Link copied to clipboard

Return all valid authorization details for pre-authorized codes, that the client may use in token requests

Link copied to clipboard
open override fun validScopes(): String

Return all valid scopes for pre-authorized codes, that the client may use in token requests