@sphereon/oid4vci-common 0.4.1-next.285
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/dist/functions/CredentialOfferUtil.d.ts +25 -0
- package/dist/functions/CredentialOfferUtil.d.ts.map +1 -0
- package/dist/functions/CredentialOfferUtil.js +303 -0
- package/dist/functions/CredentialOfferUtil.js.map +1 -0
- package/dist/functions/CredentialRequestUtil.d.ts +3 -0
- package/dist/functions/CredentialRequestUtil.d.ts.map +1 -0
- package/dist/functions/CredentialRequestUtil.js +8 -0
- package/dist/functions/CredentialRequestUtil.js.map +1 -0
- package/dist/functions/Encoding.d.ts +20 -0
- package/dist/functions/Encoding.d.ts.map +1 -0
- package/dist/functions/Encoding.js +164 -0
- package/dist/functions/Encoding.js.map +1 -0
- package/dist/functions/HttpUtils.d.ts +33 -0
- package/dist/functions/HttpUtils.d.ts.map +1 -0
- package/dist/functions/HttpUtils.js +146 -0
- package/dist/functions/HttpUtils.js.map +1 -0
- package/dist/functions/IssuerMetadataUtils.d.ts +10 -0
- package/dist/functions/IssuerMetadataUtils.d.ts.map +1 -0
- package/dist/functions/IssuerMetadataUtils.js +89 -0
- package/dist/functions/IssuerMetadataUtils.js.map +1 -0
- package/dist/functions/TypeConversionUtils.d.ts +2 -0
- package/dist/functions/TypeConversionUtils.d.ts.map +1 -0
- package/dist/functions/TypeConversionUtils.js +8 -0
- package/dist/functions/TypeConversionUtils.js.map +1 -0
- package/dist/functions/index.d.ts +4 -0
- package/dist/functions/index.d.ts.map +1 -0
- package/dist/functions/index.js +20 -0
- package/dist/functions/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/types/Authorization.types.d.ts +198 -0
- package/dist/types/Authorization.types.d.ts.map +1 -0
- package/dist/types/Authorization.types.js +40 -0
- package/dist/types/Authorization.types.js.map +1 -0
- package/dist/types/CredentialIssuance.types.d.ts +139 -0
- package/dist/types/CredentialIssuance.types.d.ts.map +1 -0
- package/dist/types/CredentialIssuance.types.js +10 -0
- package/dist/types/CredentialIssuance.types.js.map +1 -0
- package/dist/types/Generic.types.d.ts +156 -0
- package/dist/types/Generic.types.d.ts.map +1 -0
- package/dist/types/Generic.types.js +11 -0
- package/dist/types/Generic.types.js.map +1 -0
- package/dist/types/OAuth2ASMetadata.d.ts +41 -0
- package/dist/types/OAuth2ASMetadata.d.ts.map +1 -0
- package/dist/types/OAuth2ASMetadata.js +3 -0
- package/dist/types/OAuth2ASMetadata.js.map +1 -0
- package/dist/types/OpenID4VCIErrors.d.ts +34 -0
- package/dist/types/OpenID4VCIErrors.d.ts.map +1 -0
- package/dist/types/OpenID4VCIErrors.js +38 -0
- package/dist/types/OpenID4VCIErrors.js.map +1 -0
- package/dist/types/OpenID4VCIServerMetadata.d.ts +4 -0
- package/dist/types/OpenID4VCIServerMetadata.d.ts.map +1 -0
- package/dist/types/OpenID4VCIServerMetadata.js +17 -0
- package/dist/types/OpenID4VCIServerMetadata.js.map +1 -0
- package/dist/types/OpenID4VCIVersions.types.d.ts +11 -0
- package/dist/types/OpenID4VCIVersions.types.d.ts.map +1 -0
- package/dist/types/OpenID4VCIVersions.types.js +16 -0
- package/dist/types/OpenID4VCIVersions.types.js.map +1 -0
- package/dist/types/StateManager.types.d.ts +33 -0
- package/dist/types/StateManager.types.d.ts.map +1 -0
- package/dist/types/StateManager.types.js +3 -0
- package/dist/types/StateManager.types.js.map +1 -0
- package/dist/types/Token.types.d.ts +15 -0
- package/dist/types/Token.types.d.ts.map +1 -0
- package/dist/types/Token.types.js +30 -0
- package/dist/types/Token.types.js.map +1 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +29 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/v1_0_08.types.d.ts +38 -0
- package/dist/types/v1_0_08.types.d.ts.map +1 -0
- package/dist/types/v1_0_08.types.js +3 -0
- package/dist/types/v1_0_08.types.js.map +1 -0
- package/dist/types/v1_0_09.types.d.ts +29 -0
- package/dist/types/v1_0_09.types.d.ts.map +1 -0
- package/dist/types/v1_0_09.types.js +9 -0
- package/dist/types/v1_0_09.types.js.map +1 -0
- package/dist/types/v1_0_11.types.d.ts +49 -0
- package/dist/types/v1_0_11.types.d.ts.map +1 -0
- package/dist/types/v1_0_11.types.js +9 -0
- package/dist/types/v1_0_11.types.js.map +1 -0
- package/lib/__tests__/CredentialOfferUtil.spec.ts +55 -0
- package/lib/functions/CredentialOfferUtil.ts +338 -0
- package/lib/functions/CredentialRequestUtil.ts +5 -0
- package/lib/functions/Encoding.ts +166 -0
- package/lib/functions/HttpUtils.ts +168 -0
- package/lib/functions/IssuerMetadataUtils.ts +101 -0
- package/lib/functions/TypeConversionUtils.ts +3 -0
- package/lib/functions/index.ts +3 -0
- package/lib/index.ts +2 -0
- package/lib/types/Authorization.types.ts +234 -0
- package/lib/types/CredentialIssuance.types.ts +167 -0
- package/lib/types/Generic.types.ts +234 -0
- package/lib/types/OAuth2ASMetadata.ts +49 -0
- package/lib/types/OpenID4VCIErrors.ts +35 -0
- package/lib/types/OpenID4VCIServerMetadata.ts +20 -0
- package/lib/types/OpenID4VCIVersions.types.ts +11 -0
- package/lib/types/StateManager.types.ts +45 -0
- package/lib/types/Token.types.ts +29 -0
- package/lib/types/index.ts +12 -0
- package/lib/types/v1_0_08.types.ts +44 -0
- package/lib/types/v1_0_09.types.ts +36 -0
- package/lib/types/v1_0_11.types.ts +68 -0
- package/package.json +49 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { CredentialOfferPayload, UniformCredentialOffer } from './CredentialIssuance.types';
|
|
2
|
+
import { EndpointMetadata, ErrorResponse, IssuerCredentialDefinition, IssuerCredentialSubject, OID4VCICredentialFormat } from './Generic.types';
|
|
3
|
+
export interface CommonAuthorizationRequest {
|
|
4
|
+
/**
|
|
5
|
+
* REQUIRED. Value MUST be set to "code". for Authorization Code Grant
|
|
6
|
+
*/
|
|
7
|
+
response_type: ResponseType.AUTH_CODE;
|
|
8
|
+
/**
|
|
9
|
+
* The authorization server issues the registered client a client
|
|
10
|
+
* identifier -- a unique string representing the registration
|
|
11
|
+
* information provided by the client.
|
|
12
|
+
*/
|
|
13
|
+
client_id: string;
|
|
14
|
+
/**
|
|
15
|
+
* If the "code_challenge_method" from Section 4.3 was "S256", the
|
|
16
|
+
* received "code_verifier" is hashed by SHA-256, base64url-encoded, and
|
|
17
|
+
* then compared to the "code_challenge", i.e.:
|
|
18
|
+
* BASE64URL-ENCODE(SHA256(ASCII(code_verifier))) == code_challenge
|
|
19
|
+
*
|
|
20
|
+
* If the "code_challenge_method" from Section 4.3 was "plain", they are
|
|
21
|
+
* compared directly, i.e.:
|
|
22
|
+
* code_verifier == code_challenge.
|
|
23
|
+
*/
|
|
24
|
+
code_challenge: string;
|
|
25
|
+
/**
|
|
26
|
+
* value must be set either to "S256" or a value defined by a cryptographically secure
|
|
27
|
+
*/
|
|
28
|
+
code_challenge_method: CodeChallengeMethod;
|
|
29
|
+
/**
|
|
30
|
+
* The redirection endpoint URI MUST be an absolute URI as defined by: absolute-URI = scheme ":" hier-part [ "?" query ]
|
|
31
|
+
*/
|
|
32
|
+
redirect_uri: string;
|
|
33
|
+
/**
|
|
34
|
+
* The value of the scope parameter is expressed as a list of space-delimited, case-sensitive strings.
|
|
35
|
+
*/
|
|
36
|
+
scope?: string;
|
|
37
|
+
/**
|
|
38
|
+
* There are two possible ways to request issuance of a specific Credential type in an Authorization Request.
|
|
39
|
+
* One way is to use of the authorization_details request parameter as defined in [I-D.ietf-oauth-rar]
|
|
40
|
+
* with one or more authorization details objects of type openid_credential Section 5.1.1.
|
|
41
|
+
* (The other is through the use of scopes as defined in Section 5.1.2.)
|
|
42
|
+
*/
|
|
43
|
+
authorization_details?: AuthorizationDetails[] | AuthorizationDetails;
|
|
44
|
+
/**
|
|
45
|
+
* OPTIONAL. JSON string containing the Wallet's OpenID Connect issuer URL. The Credential Issuer will use the discovery process as defined in
|
|
46
|
+
* [SIOPv2] to determine the Wallet's capabilities and endpoints. RECOMMENDED in Dynamic Credential Request.
|
|
47
|
+
*/
|
|
48
|
+
wallet_issuer?: string;
|
|
49
|
+
/**
|
|
50
|
+
* OPTIONAL. JSON string containing an opaque user hint the Wallet MAY use in subsequent callbacks to optimize the user's experience.
|
|
51
|
+
* RECOMMENDED in Dynamic Credential Request.
|
|
52
|
+
*/
|
|
53
|
+
user_hint?: string;
|
|
54
|
+
/**
|
|
55
|
+
* OPTIONAL. String value identifying a certain processing context at the Credential Issuer. A value for this parameter is typically passed in
|
|
56
|
+
* an issuance initation request from the Credential Issuer to the Wallet (see (Section 4.1). This request parameter is used to pass the
|
|
57
|
+
* issuer_state value back to the Credential Issuer.
|
|
58
|
+
*/
|
|
59
|
+
issuer_state?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* string type added for conformity with our previous code in the client
|
|
63
|
+
*/
|
|
64
|
+
export type AuthorizationDetails = AuthorizationDetailsJwtVcJson | AuthorizationRequestJwtVcJsonLdAndLdpVc | string;
|
|
65
|
+
export type AuthorizationRequest = AuthorizationRequestJwtVcJson | AuthorizationDetailsJwtVcJsonLdAndLdpVc;
|
|
66
|
+
export interface AuthorizationRequestJwtVcJson extends CommonAuthorizationRequest {
|
|
67
|
+
authorization_details?: AuthorizationDetailsJwtVcJson[];
|
|
68
|
+
}
|
|
69
|
+
export interface AuthorizationRequestJwtVcJsonLdAndLdpVc extends CommonAuthorizationRequest {
|
|
70
|
+
authorization_details?: AuthorizationDetailsJwtVcJsonLdAndLdpVc[];
|
|
71
|
+
}
|
|
72
|
+
export interface CommonAuthorizationDetails {
|
|
73
|
+
/**
|
|
74
|
+
* REQUIRED. JSON string that determines the authorization details type.
|
|
75
|
+
* MUST be set to openid_credential for the purpose of this specification.
|
|
76
|
+
*/
|
|
77
|
+
type: 'openid_credential' | string;
|
|
78
|
+
/**
|
|
79
|
+
* REQUIRED. JSON string representing the format in which the Credential is requested to be issued.
|
|
80
|
+
* This Credential format identifier determines further claims in the authorization details object
|
|
81
|
+
* specifically used to identify the Credential type to be issued. This specification defines
|
|
82
|
+
* Credential Format Profiles in Appendix E.
|
|
83
|
+
*/
|
|
84
|
+
format: OID4VCICredentialFormat;
|
|
85
|
+
/**
|
|
86
|
+
* If the Credential Issuer metadata contains an authorization_server parameter,
|
|
87
|
+
* the authorization detail's locations common data field MUST be set to the Credential Issuer Identifier value.
|
|
88
|
+
*/
|
|
89
|
+
locations?: string[];
|
|
90
|
+
types: string[];
|
|
91
|
+
[key: string]: any;
|
|
92
|
+
}
|
|
93
|
+
export interface AuthorizationDetailsJwtVcJson extends CommonAuthorizationDetails {
|
|
94
|
+
/**
|
|
95
|
+
* A JSON object containing a list of key value pairs, where the key identifies the claim offered in the Credential.
|
|
96
|
+
* The value MAY be a dictionary, which allows to represent the full (potentially deeply nested) structure of the
|
|
97
|
+
* verifiable credential to be issued. This object indicates the claims the Wallet would like to turn up in the
|
|
98
|
+
* credential to be issued.
|
|
99
|
+
*/
|
|
100
|
+
credentialSubject?: IssuerCredentialSubject;
|
|
101
|
+
}
|
|
102
|
+
export interface AuthorizationDetailsJwtVcJsonLdAndLdpVc extends CommonAuthorizationDetails {
|
|
103
|
+
/**
|
|
104
|
+
* REQUIRED. JSON object containing (and isolating) the detailed description of the credential type.
|
|
105
|
+
* This object MUST be processed using full JSON-LD processing. It consists of the following sub-claims:
|
|
106
|
+
* - @context: REQUIRED. JSON array as defined in Appendix E.1.3.2
|
|
107
|
+
* - types: REQUIRED. JSON array as defined in Appendix E.1.3.2.
|
|
108
|
+
* This claim contains the type values the Wallet shall request in the subsequent Credential Request
|
|
109
|
+
*/
|
|
110
|
+
credential_definition: IssuerCredentialDefinition;
|
|
111
|
+
}
|
|
112
|
+
export declare enum GrantTypes {
|
|
113
|
+
AUTHORIZATION_CODE = "authorization_code",
|
|
114
|
+
PRE_AUTHORIZED_CODE = "urn:ietf:params:oauth:grant-type:pre-authorized_code",
|
|
115
|
+
PASSWORD = "password"
|
|
116
|
+
}
|
|
117
|
+
export declare enum Encoding {
|
|
118
|
+
FORM_URL_ENCODED = "application/x-www-form-urlencoded",
|
|
119
|
+
UTF_8 = "UTF-8"
|
|
120
|
+
}
|
|
121
|
+
export declare enum ResponseType {
|
|
122
|
+
AUTH_CODE = "code"
|
|
123
|
+
}
|
|
124
|
+
export declare enum CodeChallengeMethod {
|
|
125
|
+
TEXT = "text",
|
|
126
|
+
SHA256 = "S256"
|
|
127
|
+
}
|
|
128
|
+
export interface AuthorizationServerOpts {
|
|
129
|
+
allowInsecureEndpoints?: boolean;
|
|
130
|
+
as?: string;
|
|
131
|
+
tokenEndpoint?: string;
|
|
132
|
+
clientId?: string;
|
|
133
|
+
}
|
|
134
|
+
export interface IssuerOpts {
|
|
135
|
+
issuer: string;
|
|
136
|
+
tokenEndpoint?: string;
|
|
137
|
+
fetchMetadata?: boolean;
|
|
138
|
+
}
|
|
139
|
+
export interface AccessTokenRequestOpts {
|
|
140
|
+
credentialOffer: UniformCredentialOffer;
|
|
141
|
+
asOpts?: AuthorizationServerOpts;
|
|
142
|
+
metadata?: EndpointMetadata;
|
|
143
|
+
codeVerifier?: string;
|
|
144
|
+
code?: string;
|
|
145
|
+
redirectUri?: string;
|
|
146
|
+
pin?: string;
|
|
147
|
+
}
|
|
148
|
+
export interface AuthorizationRequestOpts {
|
|
149
|
+
clientId: string;
|
|
150
|
+
codeChallenge: string;
|
|
151
|
+
codeChallengeMethod: CodeChallengeMethod;
|
|
152
|
+
authorizationDetails?: AuthorizationDetails[];
|
|
153
|
+
redirectUri: string;
|
|
154
|
+
scope?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface AuthorizationGrantResponse {
|
|
157
|
+
grant_type: string;
|
|
158
|
+
code: string;
|
|
159
|
+
scope?: string;
|
|
160
|
+
state?: string;
|
|
161
|
+
}
|
|
162
|
+
export interface AccessTokenRequest {
|
|
163
|
+
client_id?: string;
|
|
164
|
+
code?: string;
|
|
165
|
+
code_verifier?: string;
|
|
166
|
+
grant_type: GrantTypes;
|
|
167
|
+
'pre-authorized_code': string;
|
|
168
|
+
redirect_uri?: string;
|
|
169
|
+
scope?: string;
|
|
170
|
+
user_pin?: string;
|
|
171
|
+
}
|
|
172
|
+
export interface OpenIDResponse<T> {
|
|
173
|
+
origResponse: Response;
|
|
174
|
+
successBody?: T;
|
|
175
|
+
errorBody?: ErrorResponse;
|
|
176
|
+
}
|
|
177
|
+
export interface AccessTokenResponse {
|
|
178
|
+
access_token: string;
|
|
179
|
+
scope?: string;
|
|
180
|
+
token_type?: string;
|
|
181
|
+
expires_in?: number;
|
|
182
|
+
c_nonce?: string;
|
|
183
|
+
c_nonce_expires_in?: number;
|
|
184
|
+
authorization_pending?: boolean;
|
|
185
|
+
interval?: number;
|
|
186
|
+
}
|
|
187
|
+
export declare enum AuthzFlowType {
|
|
188
|
+
AUTHORIZATION_CODE_FLOW = "Authorization Code Flow",
|
|
189
|
+
PRE_AUTHORIZED_CODE_FLOW = "Pre-Authorized Code Flow"
|
|
190
|
+
}
|
|
191
|
+
export declare namespace AuthzFlowType {
|
|
192
|
+
function valueOf(request: CredentialOfferPayload): AuthzFlowType;
|
|
193
|
+
}
|
|
194
|
+
export interface PushedAuthorizationResponse {
|
|
195
|
+
request_uri: string;
|
|
196
|
+
expires_in: number;
|
|
197
|
+
}
|
|
198
|
+
//# sourceMappingURL=Authorization.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Authorization.types.d.ts","sourceRoot":"","sources":["../../lib/types/Authorization.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,EAExB,MAAM,iBAAiB,CAAC;AAEzB,MAA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";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthzFlowType = exports.CodeChallengeMethod = exports.ResponseType = exports.Encoding = exports.GrantTypes = void 0;
|
|
4
|
+
const Generic_types_1 = require("./Generic.types");
|
|
5
|
+
var GrantTypes;
|
|
6
|
+
(function (GrantTypes) {
|
|
7
|
+
GrantTypes["AUTHORIZATION_CODE"] = "authorization_code";
|
|
8
|
+
GrantTypes["PRE_AUTHORIZED_CODE"] = "urn:ietf:params:oauth:grant-type:pre-authorized_code";
|
|
9
|
+
GrantTypes["PASSWORD"] = "password";
|
|
10
|
+
})(GrantTypes = exports.GrantTypes || (exports.GrantTypes = {}));
|
|
11
|
+
var Encoding;
|
|
12
|
+
(function (Encoding) {
|
|
13
|
+
Encoding["FORM_URL_ENCODED"] = "application/x-www-form-urlencoded";
|
|
14
|
+
Encoding["UTF_8"] = "UTF-8";
|
|
15
|
+
})(Encoding = exports.Encoding || (exports.Encoding = {}));
|
|
16
|
+
var ResponseType;
|
|
17
|
+
(function (ResponseType) {
|
|
18
|
+
ResponseType["AUTH_CODE"] = "code";
|
|
19
|
+
})(ResponseType = exports.ResponseType || (exports.ResponseType = {}));
|
|
20
|
+
var CodeChallengeMethod;
|
|
21
|
+
(function (CodeChallengeMethod) {
|
|
22
|
+
CodeChallengeMethod["TEXT"] = "text";
|
|
23
|
+
CodeChallengeMethod["SHA256"] = "S256";
|
|
24
|
+
})(CodeChallengeMethod = exports.CodeChallengeMethod || (exports.CodeChallengeMethod = {}));
|
|
25
|
+
var AuthzFlowType;
|
|
26
|
+
(function (AuthzFlowType) {
|
|
27
|
+
AuthzFlowType["AUTHORIZATION_CODE_FLOW"] = "Authorization Code Flow";
|
|
28
|
+
AuthzFlowType["PRE_AUTHORIZED_CODE_FLOW"] = "Pre-Authorized Code Flow";
|
|
29
|
+
})(AuthzFlowType = exports.AuthzFlowType || (exports.AuthzFlowType = {}));
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
31
|
+
(function (AuthzFlowType) {
|
|
32
|
+
function valueOf(request) {
|
|
33
|
+
if (Generic_types_1.PRE_AUTH_CODE_LITERAL in request) {
|
|
34
|
+
return AuthzFlowType.PRE_AUTHORIZED_CODE_FLOW;
|
|
35
|
+
}
|
|
36
|
+
return AuthzFlowType.AUTHORIZATION_CODE_FLOW;
|
|
37
|
+
}
|
|
38
|
+
AuthzFlowType.valueOf = valueOf;
|
|
39
|
+
})(AuthzFlowType = exports.AuthzFlowType || (exports.AuthzFlowType = {}));
|
|
40
|
+
//# sourceMappingURL=Authorization.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Authorization.types.js","sourceRoot":"","sources":["../../lib/types/Authorization.types.ts"],"names":[],"mappings":";;;AACA,mDAOyB;AAwHzB,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,uDAAyC,CAAA;IACzC,0FAA4E,CAAA;IAC5E,mCAAqB,CAAA;AACvB,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB;AAED,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,kEAAsD,CAAA;IACtD,2BAAe,CAAA;AACjB,CAAC,EAHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGnB;AAED,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,kCAAkB,CAAA;AACpB,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB;AAED,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,oCAAa,CAAA;IACb,sCAAe,CAAA;AACjB,CAAC,EAHW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B;AAqED,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oEAAmD,CAAA;IACnD,sEAAqD,CAAA;AACvD,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAED,2DAA2D;AAC3D,WAAiB,aAAa;IAC5B,SAAgB,OAAO,CAAC,OAA+B;QACrD,IAAI,qCAAqB,IAAI,OAAO,EAAE;YACpC,OAAO,aAAa,CAAC,wBAAwB,CAAC;SAC/C;QACD,OAAO,aAAa,CAAC,uBAAuB,CAAC;IAC/C,CAAC;IALe,qBAAO,UAKtB,CAAA;AACH,CAAC,EAPgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAO7B"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { W3CVerifiableCredential } from '@sphereon/ssi-types';
|
|
2
|
+
import { AuthzFlowType } from './Authorization.types';
|
|
3
|
+
import { OID4VCICredentialFormat } from './Generic.types';
|
|
4
|
+
import { OpenId4VCIVersion } from './OpenID4VCIVersions.types';
|
|
5
|
+
import { CredentialOfferPayloadV1_0_08 } from './v1_0_08.types';
|
|
6
|
+
import { CredentialOfferPayloadV1_0_09, CredentialOfferV1_0_09 } from './v1_0_09.types';
|
|
7
|
+
import { CredentialOfferPayloadV1_0_11, CredentialOfferV1_0_11 } from './v1_0_11.types';
|
|
8
|
+
export interface CredentialResponse {
|
|
9
|
+
credential?: W3CVerifiableCredential;
|
|
10
|
+
format: OID4VCICredentialFormat;
|
|
11
|
+
acceptance_token?: string;
|
|
12
|
+
c_nonce?: string;
|
|
13
|
+
c_nonce_expires_in?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface CredentialOfferRequestWithBaseUrl extends UniformCredentialOfferRequest {
|
|
16
|
+
scheme: string;
|
|
17
|
+
baseUrl: string;
|
|
18
|
+
userPinRequired: boolean;
|
|
19
|
+
issuerState?: string;
|
|
20
|
+
preAuthorizedCode?: string;
|
|
21
|
+
}
|
|
22
|
+
export type CredentialOffer = CredentialOfferV1_0_09 | CredentialOfferV1_0_11;
|
|
23
|
+
export type CredentialOfferPayload = CredentialOfferPayloadV1_0_08 | CredentialOfferPayloadV1_0_09 | CredentialOfferPayloadV1_0_11;
|
|
24
|
+
export interface AssertedUniformCredentialOffer extends UniformCredentialOffer {
|
|
25
|
+
credential_offer: UniformCredentialOfferPayload;
|
|
26
|
+
}
|
|
27
|
+
export interface UniformCredentialOffer {
|
|
28
|
+
credential_offer?: UniformCredentialOfferPayload;
|
|
29
|
+
credential_offer_uri?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface UniformCredentialOfferRequest extends AssertedUniformCredentialOffer {
|
|
32
|
+
original_credential_offer: CredentialOfferPayload;
|
|
33
|
+
version: OpenId4VCIVersion;
|
|
34
|
+
supportedFlows: AuthzFlowType[];
|
|
35
|
+
}
|
|
36
|
+
export type UniformCredentialOfferPayload = CredentialOfferPayloadV1_0_11;
|
|
37
|
+
export interface ProofOfPossession {
|
|
38
|
+
proof_type: 'jwt';
|
|
39
|
+
jwt: string;
|
|
40
|
+
[x: string]: unknown;
|
|
41
|
+
}
|
|
42
|
+
export type SearchValue = {
|
|
43
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
44
|
+
};
|
|
45
|
+
export type EncodeJsonAsURIOpts = {
|
|
46
|
+
uriTypeProperties?: string[];
|
|
47
|
+
arrayTypeProperties?: string[];
|
|
48
|
+
baseUrl?: string;
|
|
49
|
+
param?: string;
|
|
50
|
+
version?: OpenId4VCIVersion;
|
|
51
|
+
};
|
|
52
|
+
export type DecodeURIAsJsonOpts = {
|
|
53
|
+
requiredProperties?: string[];
|
|
54
|
+
arrayTypeProperties?: string[];
|
|
55
|
+
};
|
|
56
|
+
export interface BaseJWK {
|
|
57
|
+
kty?: string;
|
|
58
|
+
crv?: string;
|
|
59
|
+
x?: string;
|
|
60
|
+
y?: string;
|
|
61
|
+
e?: string;
|
|
62
|
+
n?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface JWK extends BaseJWK {
|
|
65
|
+
alg?: string;
|
|
66
|
+
d?: string;
|
|
67
|
+
dp?: string;
|
|
68
|
+
dq?: string;
|
|
69
|
+
ext?: boolean;
|
|
70
|
+
k?: string;
|
|
71
|
+
key_ops?: string[];
|
|
72
|
+
kid?: string;
|
|
73
|
+
oth?: Array<{
|
|
74
|
+
d?: string;
|
|
75
|
+
r?: string;
|
|
76
|
+
t?: string;
|
|
77
|
+
}>;
|
|
78
|
+
p?: string;
|
|
79
|
+
q?: string;
|
|
80
|
+
qi?: string;
|
|
81
|
+
use?: string;
|
|
82
|
+
x5c?: string[];
|
|
83
|
+
x5t?: string;
|
|
84
|
+
'x5t#S256'?: string;
|
|
85
|
+
x5u?: string;
|
|
86
|
+
[propName: string]: unknown;
|
|
87
|
+
}
|
|
88
|
+
export interface Jwt {
|
|
89
|
+
header: JWTHeader;
|
|
90
|
+
payload: JWTPayload;
|
|
91
|
+
}
|
|
92
|
+
export interface ProofOfPossessionCallbacks {
|
|
93
|
+
signCallback: JWTSignerCallback;
|
|
94
|
+
verifyCallback?: JWTVerifyCallback;
|
|
95
|
+
}
|
|
96
|
+
export declare enum Alg {
|
|
97
|
+
EdDSA = "EdDSA",
|
|
98
|
+
ES256 = "ES256",
|
|
99
|
+
ES256K = "ES256K"
|
|
100
|
+
}
|
|
101
|
+
export type Typ = 'jwt' | 'openid4vci-proof+jwt';
|
|
102
|
+
export interface JoseHeaderParameters {
|
|
103
|
+
kid?: string;
|
|
104
|
+
x5t?: string;
|
|
105
|
+
x5c?: string[];
|
|
106
|
+
x5u?: string;
|
|
107
|
+
jku?: string;
|
|
108
|
+
jwk?: BaseJWK;
|
|
109
|
+
typ?: string;
|
|
110
|
+
cty?: string;
|
|
111
|
+
}
|
|
112
|
+
export interface JWSHeaderParameters extends JoseHeaderParameters {
|
|
113
|
+
alg?: Alg | string;
|
|
114
|
+
b64?: boolean;
|
|
115
|
+
crit?: string[];
|
|
116
|
+
[propName: string]: unknown;
|
|
117
|
+
}
|
|
118
|
+
export interface CompactJWSHeaderParameters extends JWSHeaderParameters {
|
|
119
|
+
alg: string;
|
|
120
|
+
}
|
|
121
|
+
export interface JWTHeaderParameters extends CompactJWSHeaderParameters {
|
|
122
|
+
b64?: true;
|
|
123
|
+
}
|
|
124
|
+
export type JWTHeader = JWTHeaderParameters;
|
|
125
|
+
export interface JWTPayload {
|
|
126
|
+
iss?: string;
|
|
127
|
+
aud?: string;
|
|
128
|
+
iat?: number;
|
|
129
|
+
nonce?: string;
|
|
130
|
+
jti?: string;
|
|
131
|
+
exp?: number;
|
|
132
|
+
[s: string]: unknown;
|
|
133
|
+
}
|
|
134
|
+
export type JWTSignerCallback = (jwt: Jwt, kid?: string) => Promise<string>;
|
|
135
|
+
export type JWTVerifyCallback = (args: {
|
|
136
|
+
jwt: string;
|
|
137
|
+
kid?: string;
|
|
138
|
+
}) => Promise<Jwt>;
|
|
139
|
+
//# sourceMappingURL=CredentialIssuance.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialIssuance.types.d.ts","sourceRoot":"","sources":["../../lib/types/CredentialIssuance.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,6BAA6B,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAExF,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,MAAM,EAAE,uBAAuB,CAAkC;IACjE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,iCAAkC,SAAQ,6BAA6B;IACtF,MAAM,EAAE,MAAM,CAAC;IACf,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C;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Alg = void 0;
|
|
4
|
+
var Alg;
|
|
5
|
+
(function (Alg) {
|
|
6
|
+
Alg["EdDSA"] = "EdDSA";
|
|
7
|
+
Alg["ES256"] = "ES256";
|
|
8
|
+
Alg["ES256K"] = "ES256K";
|
|
9
|
+
})(Alg = exports.Alg || (exports.Alg = {}));
|
|
10
|
+
//# sourceMappingURL=CredentialIssuance.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialIssuance.types.js","sourceRoot":"","sources":["../../lib/types/CredentialIssuance.types.ts"],"names":[],"mappings":";;;AAmHA,IAAY,GAIX;AAJD,WAAY,GAAG;IACb,sBAAe,CAAA;IACf,sBAAe,CAAA;IACf,wBAAiB,CAAA;AACnB,CAAC,EAJW,GAAG,GAAH,WAAG,KAAH,WAAG,QAId"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { ICredentialContextType, IVerifiableCredential, W3CVerifiableCredential } from '@sphereon/ssi-types';
|
|
2
|
+
import { ProofOfPossession } from './CredentialIssuance.types';
|
|
3
|
+
import { Oauth2ASWithOID4VCIMetadata } from './OpenID4VCIServerMetadata';
|
|
4
|
+
import { IssuerMetadataV1_0_08 } from './v1_0_08.types';
|
|
5
|
+
import { CredentialRequestV1_0_11 } from './v1_0_11.types';
|
|
6
|
+
/**
|
|
7
|
+
* Important Note: please be aware that these Common interfaces are based on versions v1_0.11 and v1_0.09
|
|
8
|
+
*/
|
|
9
|
+
export interface CredentialLogo {
|
|
10
|
+
url?: string;
|
|
11
|
+
alt_text?: string;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export type OID4VCICredentialFormat = 'jwt_vc_json' | 'jwt_vc_json-ld' | 'ldp_vc';
|
|
15
|
+
export interface NameAndLocale {
|
|
16
|
+
name?: string;
|
|
17
|
+
locale?: string;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
}
|
|
20
|
+
export interface LogoAndColor {
|
|
21
|
+
logo?: CredentialLogo;
|
|
22
|
+
description?: string;
|
|
23
|
+
background_color?: string;
|
|
24
|
+
text_color?: string;
|
|
25
|
+
}
|
|
26
|
+
export type CredentialsSupportedDisplay = NameAndLocale & LogoAndColor & {
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
export type MetadataDisplay = NameAndLocale & LogoAndColor & {
|
|
30
|
+
name?: string;
|
|
31
|
+
};
|
|
32
|
+
export interface CredentialIssuerMetadataOpts {
|
|
33
|
+
credential_endpoint?: string;
|
|
34
|
+
batch_credential_endpoint?: string;
|
|
35
|
+
credentials_supported: CredentialSupported[];
|
|
36
|
+
credential_issuer: string;
|
|
37
|
+
authorization_server?: string;
|
|
38
|
+
token_endpoint?: string;
|
|
39
|
+
display?: MetadataDisplay[];
|
|
40
|
+
}
|
|
41
|
+
export interface CredentialIssuerMetadata extends CredentialIssuerMetadataOpts {
|
|
42
|
+
credential_endpoint: string;
|
|
43
|
+
}
|
|
44
|
+
export interface CredentialSupportedBrief {
|
|
45
|
+
name?: string;
|
|
46
|
+
types: string[];
|
|
47
|
+
cryptographic_binding_methods_supported?: string[];
|
|
48
|
+
cryptographic_suites_supported?: string[];
|
|
49
|
+
}
|
|
50
|
+
export type CommonCredentialSupported = CredentialSupportedBrief & {
|
|
51
|
+
format: OID4VCICredentialFormat | string;
|
|
52
|
+
id?: string;
|
|
53
|
+
display?: CredentialsSupportedDisplay[];
|
|
54
|
+
/**
|
|
55
|
+
* following properties are non-mso_mdoc specific and we might wanna rethink them when we're going to support mso_mdoc
|
|
56
|
+
*/
|
|
57
|
+
credentialSubject?: IssuerCredentialSubject;
|
|
58
|
+
order?: string[];
|
|
59
|
+
};
|
|
60
|
+
export interface CredentialSupportedJwtVcJsonLdAndLdpVc extends CommonCredentialSupported {
|
|
61
|
+
'@context': ICredentialContextType[];
|
|
62
|
+
}
|
|
63
|
+
export interface CredentialSupportedJwtVcJson extends CommonCredentialSupported {
|
|
64
|
+
format: 'jwt_vc_json';
|
|
65
|
+
}
|
|
66
|
+
export type CredentialSupported = CommonCredentialSupported & (CredentialSupportedJwtVcJson | CredentialSupportedJwtVcJsonLdAndLdpVc);
|
|
67
|
+
export interface CredentialOfferFormat {
|
|
68
|
+
format: OID4VCICredentialFormat | string;
|
|
69
|
+
types: string[];
|
|
70
|
+
}
|
|
71
|
+
export interface IssuerCredentialDefinition {
|
|
72
|
+
'@context': ICredentialContextType[];
|
|
73
|
+
types: string[];
|
|
74
|
+
credentialSubject: IssuerCredentialSubject;
|
|
75
|
+
}
|
|
76
|
+
export interface ErrorResponse extends Response {
|
|
77
|
+
error: string;
|
|
78
|
+
error_description?: string;
|
|
79
|
+
error_uri?: string;
|
|
80
|
+
state?: string;
|
|
81
|
+
}
|
|
82
|
+
export type UniformCredentialRequest = CredentialRequestV1_0_11;
|
|
83
|
+
export interface CommonCredentialRequest {
|
|
84
|
+
format: OID4VCICredentialFormat;
|
|
85
|
+
proof?: ProofOfPossession;
|
|
86
|
+
}
|
|
87
|
+
export interface CredentialRequestJwtVcJson extends CommonCredentialRequest {
|
|
88
|
+
format: 'jwt_vc_json';
|
|
89
|
+
types: string[];
|
|
90
|
+
credentialSubject?: IssuerCredentialSubject;
|
|
91
|
+
}
|
|
92
|
+
export interface CredentialRequestJwtVcJsonLdAndLdpVc extends CommonCredentialRequest {
|
|
93
|
+
format: 'jwt_vc_json-ld' | 'ldp_vc';
|
|
94
|
+
credential_definition: IssuerCredentialDefinition;
|
|
95
|
+
}
|
|
96
|
+
export interface CommonCredentialResponse {
|
|
97
|
+
format: string;
|
|
98
|
+
credential?: W3CVerifiableCredential;
|
|
99
|
+
acceptance_token?: string;
|
|
100
|
+
c_nonce?: string;
|
|
101
|
+
c_nonce_expires_in?: string;
|
|
102
|
+
}
|
|
103
|
+
export interface CredentialResponseJwtVcJsonLdAndLdpVc extends CommonCredentialResponse {
|
|
104
|
+
format: 'jwt_vc_json-ld' | 'ldp_vc';
|
|
105
|
+
credential: IVerifiableCredential;
|
|
106
|
+
}
|
|
107
|
+
export interface CredentialResponseJwtVcJson {
|
|
108
|
+
credential: string;
|
|
109
|
+
}
|
|
110
|
+
export type IssuerCredentialSubjectDisplay = CredentialSubjectDisplay & {
|
|
111
|
+
[key: string]: CredentialSubjectDisplay;
|
|
112
|
+
};
|
|
113
|
+
export interface CredentialSubjectDisplay {
|
|
114
|
+
mandatory?: boolean;
|
|
115
|
+
value_type?: string;
|
|
116
|
+
display?: NameAndLocale[];
|
|
117
|
+
}
|
|
118
|
+
export interface IssuerCredentialSubject {
|
|
119
|
+
[key: string]: IssuerCredentialSubjectDisplay;
|
|
120
|
+
}
|
|
121
|
+
export interface Grant {
|
|
122
|
+
authorization_code?: GrantAuthorizationCode;
|
|
123
|
+
'urn:ietf:params:oauth:grant-type:pre-authorized_code'?: GrantUrnIetf;
|
|
124
|
+
}
|
|
125
|
+
export interface GrantAuthorizationCode {
|
|
126
|
+
/**
|
|
127
|
+
* OPTIONAL. String value created by the Credential Issuer and opaque to the Wallet that is used to bind the subsequent
|
|
128
|
+
* Authorization Request with the Credential Issuer to a context set up during previous steps.
|
|
129
|
+
*/
|
|
130
|
+
issuer_state?: string;
|
|
131
|
+
}
|
|
132
|
+
export interface GrantUrnIetf {
|
|
133
|
+
/**
|
|
134
|
+
* REQUIRED. The code representing the Credential Issuer's authorization for the Wallet to obtain Credentials of a certain type.
|
|
135
|
+
*/
|
|
136
|
+
'pre-authorized_code': string;
|
|
137
|
+
/**
|
|
138
|
+
* OPTIONAL. Boolean value specifying whether the Credential Issuer expects presentation of a user PIN along with the Token Request
|
|
139
|
+
* in a Pre-Authorized Code Flow. Default is false.
|
|
140
|
+
*/
|
|
141
|
+
user_pin_required: boolean;
|
|
142
|
+
}
|
|
143
|
+
export declare const PRE_AUTH_CODE_LITERAL = "pre-authorized_code";
|
|
144
|
+
export declare enum WellKnownEndpoints {
|
|
145
|
+
OPENID_CONFIGURATION = "/.well-known/openid-configuration",
|
|
146
|
+
OAUTH_AS = "/.well-known/oauth-authorization-server",
|
|
147
|
+
OPENID4VCI_ISSUER = "/.well-known/openid-credential-issuer"
|
|
148
|
+
}
|
|
149
|
+
export interface EndpointMetadata {
|
|
150
|
+
issuer: string;
|
|
151
|
+
token_endpoint: string;
|
|
152
|
+
credential_endpoint: string;
|
|
153
|
+
authorization_endpoint?: string;
|
|
154
|
+
issuerMetadata?: CredentialIssuerMetadata | Oauth2ASWithOID4VCIMetadata | IssuerMetadataV1_0_08;
|
|
155
|
+
}
|
|
156
|
+
//# sourceMappingURL=Generic.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Generic.types.d.ts","sourceRoot":"","sources":["../../lib/types/Generic.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE7G,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAA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vB;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAE3D,oBAAY,kBAAkB;IAC5B,oBAAoB,sCAAsC;IAC1D,QAAQ,4CAA4C;IACpD,iBAAiB,0CAA0C;CAC5D;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,cAAc,CAAC,EAAE,wBAAwB,GAAG,2BAA2B,GAAG,qBAAqB,CAAC;CACjG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WellKnownEndpoints = exports.PRE_AUTH_CODE_LITERAL = void 0;
|
|
4
|
+
exports.PRE_AUTH_CODE_LITERAL = 'pre-authorized_code';
|
|
5
|
+
var WellKnownEndpoints;
|
|
6
|
+
(function (WellKnownEndpoints) {
|
|
7
|
+
WellKnownEndpoints["OPENID_CONFIGURATION"] = "/.well-known/openid-configuration";
|
|
8
|
+
WellKnownEndpoints["OAUTH_AS"] = "/.well-known/oauth-authorization-server";
|
|
9
|
+
WellKnownEndpoints["OPENID4VCI_ISSUER"] = "/.well-known/openid-credential-issuer";
|
|
10
|
+
})(WellKnownEndpoints = exports.WellKnownEndpoints || (exports.WellKnownEndpoints = {}));
|
|
11
|
+
//# sourceMappingURL=Generic.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Generic.types.js","sourceRoot":"","sources":["../../lib/types/Generic.types.ts"],"names":[],"mappings":";;;AA2Na,QAAA,qBAAqB,GAAG,qBAAqB,CAAC;AAE3D,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,gFAA0D,CAAA;IAC1D,0EAAoD,CAAA;IACpD,iFAA2D,CAAA;AAC7D,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface OAuth2ASMetadata {
|
|
2
|
+
issuer: string;
|
|
3
|
+
authorization_endpoint?: string;
|
|
4
|
+
token_endpoint?: string;
|
|
5
|
+
token_endpoint_auth_methods_supported?: string[];
|
|
6
|
+
token_endpoint_auth_signing_alg_values_supported?: string[];
|
|
7
|
+
jwks_uri?: string;
|
|
8
|
+
registration_endpoint?: string;
|
|
9
|
+
scopes_supported?: string[];
|
|
10
|
+
response_types_supported: string[];
|
|
11
|
+
response_modes_supported?: string[];
|
|
12
|
+
grant_types_supported?: string[];
|
|
13
|
+
service_documentation?: string;
|
|
14
|
+
ui_locales_supported?: string[];
|
|
15
|
+
op_policy_uri?: string;
|
|
16
|
+
op_tos_uri?: string;
|
|
17
|
+
revocation_endpoint?: string;
|
|
18
|
+
revocation_endpoint_auth_methods_supported?: string[];
|
|
19
|
+
revocation_endpoint_auth_signing_alg_values_supported?: string[];
|
|
20
|
+
introspection_endpoint?: string;
|
|
21
|
+
code_challenge_methods_supported?: string[];
|
|
22
|
+
pushed_authorization_request_endpoint?: string;
|
|
23
|
+
require_pushed_authorization_requests?: boolean;
|
|
24
|
+
'pre-authorized_grant_anonymous_access_supported': boolean;
|
|
25
|
+
frontchannel_logout_supported?: boolean;
|
|
26
|
+
frontchannel_logout_session_supported?: boolean;
|
|
27
|
+
backchannel_logout_supported?: boolean;
|
|
28
|
+
backchannel_logout_session_supported?: boolean;
|
|
29
|
+
userinfo_endpoint?: string;
|
|
30
|
+
check_session_iframe?: string;
|
|
31
|
+
end_session_endpoint?: string;
|
|
32
|
+
acr_values_supported?: string[];
|
|
33
|
+
subject_types_supported?: string[];
|
|
34
|
+
request_object_signing_alg_values_supported?: string[];
|
|
35
|
+
display_values_supported?: string[];
|
|
36
|
+
claim_types_supported?: string[];
|
|
37
|
+
claims_supported?: string[];
|
|
38
|
+
claims_parameter_supported?: boolean;
|
|
39
|
+
[x: string]: any;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=OAuth2ASMetadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuth2ASMetadata.d.ts","sourceRoot":"","sources":["../../lib/types/OAuth2ASMetadata.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qCAAqC,CAAC,EAAE,MAAM,EAAE,CAAC;IACjD,gDAAgD,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,wBAAwB,EAAE,MAAM,EAAE,CAAC;IACnC,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,0CAA0C,CAAC,EAAE,MAAM,EAAE,CAAC;IACtD,qDAAqD,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjE,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gCAAgC,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5C,qCAAqC,CAAC,EAAE,MAAM,CAAC;IAE/C,qCAAqC,CAAC,EAAE,OAAO,CAAC;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