@sphereon/did-auth-siop
Version:
Self Issued OpenID V2 (SIOPv2) and OpenID 4 Verifiable Presentations (OID4VP)
1,195 lines (1,194 loc) • 87.9 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthorizationResponseOptsSchemaObj = void 0;
exports.AuthorizationResponseOptsSchemaObj = {
"$id": "AuthorizationResponseOptsSchema",
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/AuthorizationResponseOpts",
"definitions": {
"AuthorizationResponseOpts": {
"type": "object",
"properties": {
"responseURI": {
"type": "string"
},
"responseURIType": {
"$ref": "#/definitions/ResponseURIType"
},
"registration": {
"$ref": "#/definitions/ResponseRegistrationOpts"
},
"version": {
"$ref": "#/definitions/SupportedVersion"
},
"audience": {
"type": "string"
},
"createJwtCallback": {
"$ref": "#/definitions/CreateJwtCallback"
},
"jwtIssuer": {
"$ref": "#/definitions/JwtIssuer"
},
"responseMode": {
"$ref": "#/definitions/ResponseMode"
},
"responseType": {
"type": "array",
"items": {
"$ref": "#/definitions/ResponseType"
},
"minItems": 1,
"maxItems": 1
},
"expiresIn": {
"type": "number"
},
"accessToken": {
"type": "string"
},
"tokenType": {
"type": "string"
},
"refreshToken": {
"type": "string"
},
"presentationExchange": {
"$ref": "#/definitions/PresentationExchangeResponseOpts"
},
"dcqlResponse": {
"$ref": "#/definitions/DcqlResponseOpts"
},
"isFirstParty": {
"type": "boolean"
}
},
"required": [
"createJwtCallback"
],
"additionalProperties": false
},
"ResponseURIType": {
"type": "string",
"enum": [
"response_uri",
"redirect_uri"
]
},
"ResponseRegistrationOpts": {
"anyOf": [
{
"type": "object",
"properties": {
"passBy": {
"$ref": "#/definitions/PassBy"
},
"reference_uri": {
"type": "string"
},
"targets": {
"$ref": "#/definitions/PropertyTargets"
},
"id_token_encrypted_response_alg": {
"$ref": "#/definitions/EncKeyAlgorithm"
},
"id_token_encrypted_response_enc": {
"$ref": "#/definitions/EncSymmetricAlgorithmCode"
},
"authorizationEndpoint": {
"anyOf": [
{
"$ref": "#/definitions/Schema"
},
{
"type": "string"
}
]
},
"issuer": {
"anyOf": [
{
"$ref": "#/definitions/ResponseIss"
},
{
"type": "string"
}
]
},
"responseTypesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/ResponseType"
}
},
{
"$ref": "#/definitions/ResponseType"
}
]
},
"scopesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Scope"
}
},
{
"$ref": "#/definitions/Scope"
}
]
},
"subjectTypesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SubjectType"
}
},
{
"$ref": "#/definitions/SubjectType"
}
]
},
"idTokenSigningAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"requestObjectSigningAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"subject_syntax_types_supported": {
"type": "array",
"items": {
"type": "string"
}
},
"tokenEndpoint": {
"type": "string"
},
"userinfoEndpoint": {
"type": "string"
},
"jwksUri": {
"type": "string"
},
"registrationEndpoint": {
"type": "string"
},
"responseModesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/ResponseMode"
}
},
{
"$ref": "#/definitions/ResponseMode"
}
]
},
"grantTypesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/GrantType"
}
},
{
"$ref": "#/definitions/GrantType"
}
]
},
"acrValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/AuthenticationContextReferences"
}
},
{
"$ref": "#/definitions/AuthenticationContextReferences"
}
]
},
"idTokenEncryptionAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"idTokenEncryptionEncValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"userinfoSigningAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"userinfoEncryptionAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"userinfoEncryptionEncValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"requestObjectEncryptionAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"requestObjectEncryptionEncValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"tokenEndpointAuthMethodsSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/TokenEndpointAuthMethod"
}
},
{
"$ref": "#/definitions/TokenEndpointAuthMethod"
}
]
},
"tokenEndpointAuthSigningAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"displayValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"claimTypesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/ClaimType"
}
},
{
"$ref": "#/definitions/ClaimType"
}
]
},
"claimsSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"serviceDocumentation": {
"type": "string"
},
"claimsLocalesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"uiLocalesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"claimsParameterSupported": {
"type": "boolean"
},
"requestParameterSupported": {
"type": "boolean"
},
"requestUriParameterSupported": {
"type": "boolean"
},
"requireRequestUriRegistration": {
"type": "boolean"
},
"opPolicyUri": {
"type": "string"
},
"opTosUri": {
"type": "string"
},
"client_id": {
"type": "string"
},
"redirectUris": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"clientName": {
"type": "string"
},
"clientUri": {
"type": "string"
},
"scope": {
"type": "string"
},
"contacts": {
"type": "array",
"items": {
"type": "string"
}
},
"tosUri": {
"type": "string"
},
"policyUri": {
"type": "string"
},
"jwks": {
"$ref": "#/definitions/JWKS"
},
"softwareId": {
"type": "string"
},
"softwareVersion": {
"type": "string"
},
"tokenEndpointAuthMethod": {
"type": "string"
},
"applicationType": {
"type": "string"
},
"responseTypes": {
"type": "string"
},
"grantTypes": {
"type": "string"
},
"vpFormats": {
"$ref": "#/definitions/Format"
},
"logo_uri": {
"type": "string"
},
"clientPurpose": {
"type": "string"
}
},
"required": [
"passBy"
]
},
{
"type": "object",
"properties": {
"passBy": {
"$ref": "#/definitions/PassBy"
},
"reference_uri": {
"type": "string"
},
"targets": {
"$ref": "#/definitions/PropertyTargets"
},
"id_token_encrypted_response_alg": {
"$ref": "#/definitions/EncKeyAlgorithm"
},
"id_token_encrypted_response_enc": {
"$ref": "#/definitions/EncSymmetricAlgorithmCode"
},
"authorizationEndpoint": {
"anyOf": [
{
"$ref": "#/definitions/Schema"
},
{
"type": "string"
}
]
},
"issuer": {
"anyOf": [
{
"$ref": "#/definitions/ResponseIss"
},
{
"type": "string"
}
]
},
"responseTypesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/ResponseType"
}
},
{
"$ref": "#/definitions/ResponseType"
}
]
},
"scopesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Scope"
}
},
{
"$ref": "#/definitions/Scope"
}
]
},
"subjectTypesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SubjectType"
}
},
{
"$ref": "#/definitions/SubjectType"
}
]
},
"idTokenSigningAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"requestObjectSigningAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"subject_syntax_types_supported": {
"type": "array",
"items": {
"type": "string"
}
},
"tokenEndpoint": {
"type": "string"
},
"userinfoEndpoint": {
"type": "string"
},
"jwksUri": {
"type": "string"
},
"registrationEndpoint": {
"type": "string"
},
"responseModesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/ResponseMode"
}
},
{
"$ref": "#/definitions/ResponseMode"
}
]
},
"grantTypesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/GrantType"
}
},
{
"$ref": "#/definitions/GrantType"
}
]
},
"acrValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/AuthenticationContextReferences"
}
},
{
"$ref": "#/definitions/AuthenticationContextReferences"
}
]
},
"idTokenEncryptionAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"idTokenEncryptionEncValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"userinfoSigningAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"userinfoEncryptionAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"userinfoEncryptionEncValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"requestObjectEncryptionAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"requestObjectEncryptionEncValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"tokenEndpointAuthMethodsSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/TokenEndpointAuthMethod"
}
},
{
"$ref": "#/definitions/TokenEndpointAuthMethod"
}
]
},
"tokenEndpointAuthSigningAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"displayValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"claimTypesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/ClaimType"
}
},
{
"$ref": "#/definitions/ClaimType"
}
]
},
"claimsSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"serviceDocumentation": {
"type": "string"
},
"claimsLocalesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"uiLocalesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"claimsParameterSupported": {
"type": "boolean"
},
"requestParameterSupported": {
"type": "boolean"
},
"requestUriParameterSupported": {
"type": "boolean"
},
"requireRequestUriRegistration": {
"type": "boolean"
},
"opPolicyUri": {
"type": "string"
},
"opTosUri": {
"type": "string"
},
"client_id": {
"type": "string"
},
"redirectUris": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"clientName": {
"type": "string"
},
"clientUri": {
"type": "string"
},
"scope": {
"type": "string"
},
"contacts": {
"type": "array",
"items": {
"type": "string"
}
},
"tosUri": {
"type": "string"
},
"policyUri": {
"type": "string"
},
"jwks": {
"$ref": "#/definitions/JWKS"
},
"softwareId": {
"type": "string"
},
"softwareVersion": {
"type": "string"
},
"tokenEndpointAuthMethod": {
"type": "string"
},
"applicationType": {
"type": "string"
},
"responseTypes": {
"type": "string"
},
"grantTypes": {
"type": "string"
},
"vpFormats": {
"$ref": "#/definitions/Format"
}
},
"required": [
"passBy"
]
},
{
"type": "object",
"properties": {
"passBy": {
"$ref": "#/definitions/PassBy"
},
"reference_uri": {
"type": "string"
},
"targets": {
"$ref": "#/definitions/PropertyTargets"
},
"id_token_encrypted_response_alg": {
"$ref": "#/definitions/EncKeyAlgorithm"
},
"id_token_encrypted_response_enc": {
"$ref": "#/definitions/EncSymmetricAlgorithmCode"
},
"authorizationEndpoint": {
"anyOf": [
{
"$ref": "#/definitions/Schema"
},
{
"type": "string"
}
]
},
"issuer": {
"anyOf": [
{
"$ref": "#/definitions/ResponseIss"
},
{
"type": "string"
}
]
},
"responseTypesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/ResponseType"
}
},
{
"$ref": "#/definitions/ResponseType"
}
]
},
"scopesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Scope"
}
},
{
"$ref": "#/definitions/Scope"
}
]
},
"subjectTypesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SubjectType"
}
},
{
"$ref": "#/definitions/SubjectType"
}
]
},
"idTokenSigningAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"requestObjectSigningAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"subject_syntax_types_supported": {
"type": "array",
"items": {
"type": "string"
}
},
"tokenEndpoint": {
"type": "string"
},
"userinfoEndpoint": {
"type": "string"
},
"jwksUri": {
"type": "string"
},
"registrationEndpoint": {
"type": "string"
},
"responseModesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/ResponseMode"
}
},
{
"$ref": "#/definitions/ResponseMode"
}
]
},
"grantTypesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/GrantType"
}
},
{
"$ref": "#/definitions/GrantType"
}
]
},
"acrValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/AuthenticationContextReferences"
}
},
{
"$ref": "#/definitions/AuthenticationContextReferences"
}
]
},
"idTokenEncryptionAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"idTokenEncryptionEncValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"userinfoSigningAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"userinfoEncryptionAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"userinfoEncryptionEncValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"requestObjectEncryptionAlgValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SigningAlgo"
}
},
{
"$ref": "#/definitions/SigningAlgo"
}
]
},
"requestObjectEncryptionEncValuesSupported": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},