@asgardeo/javascript 0.7.0 → 0.7.2
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/dist/AsgardeoJavaScriptClient.d.ts +3 -4
- package/dist/IsomorphicCrypto.d.ts +2 -2
- package/dist/StorageManager.d.ts +6 -8
- package/dist/__legacy__/client.d.ts +15 -15
- package/dist/__legacy__/helpers/authentication-helper.d.ts +5 -5
- package/dist/__legacy__/models/client-config.d.ts +14 -14
- package/dist/api/createOrganization.d.ts +8 -8
- package/dist/api/getAllOrganizations.d.ts +5 -5
- package/dist/api/getBrandingPreference.d.ts +5 -5
- package/dist/api/getMeOrganizations.d.ts +9 -9
- package/dist/api/getOrganization.d.ts +4 -4
- package/dist/api/getSchemas.d.ts +4 -4
- package/dist/api/getScim2Me.d.ts +4 -4
- package/dist/api/updateMeProfile.d.ts +7 -7
- package/dist/api/updateOrganization.d.ts +5 -5
- package/dist/api/v2/executeEmbeddedUserOnboardingFlowV2.d.ts +16 -16
- package/dist/cjs/index.js +1176 -1184
- package/dist/cjs/index.js.map +4 -4
- package/dist/constants/ApplicationNativeAuthenticationConstants.d.ts +14 -14
- package/dist/constants/OIDCDiscoveryConstants.d.ts +17 -106
- package/dist/constants/OIDCRequestConstants.d.ts +6 -44
- package/dist/constants/PKCEConstants.d.ts +3 -18
- package/dist/constants/TokenConstants.d.ts +2 -31
- package/dist/constants/TokenExchangeConstants.d.ts +5 -30
- package/dist/index.js +1177 -1185
- package/dist/index.js.map +4 -4
- package/dist/models/branding-preference.d.ts +5 -5
- package/dist/models/client.d.ts +57 -58
- package/dist/models/config.d.ts +48 -48
- package/dist/models/crypto.d.ts +11 -11
- package/dist/models/embedded-flow.d.ts +10 -10
- package/dist/models/field.d.ts +8 -8
- package/dist/models/oidc-discovery.d.ts +161 -161
- package/dist/models/oidc-endpoints.d.ts +15 -15
- package/dist/models/platforms.d.ts +2 -2
- package/dist/models/scim2-schema.d.ts +17 -17
- package/dist/models/session.d.ts +4 -4
- package/dist/models/store.d.ts +9 -9
- package/dist/models/user.d.ts +5 -5
- package/dist/models/v2/embedded-flow-v2.d.ts +86 -86
- package/dist/models/v2/embedded-signin-flow-v2.d.ts +39 -39
- package/dist/models/v2/embedded-signup-flow-v2.d.ts +42 -42
- package/dist/theme/types.d.ts +133 -133
- package/dist/utils/getAuthorizeRequestUrlParams.d.ts +3 -3
- package/dist/utils/logger.d.ts +6 -6
- package/dist/utils/processUsername.d.ts +1 -1
- package/package.json +2 -2
- package/dist/utils/cryptoUtils.d.ts +0 -0
|
@@ -46,39 +46,50 @@
|
|
|
46
46
|
*/
|
|
47
47
|
export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiResponse {
|
|
48
48
|
/**
|
|
49
|
-
* Supported
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* @remarks
|
|
53
|
-
* Common values include:
|
|
54
|
-
* - 'openid' - Required for OIDC flows
|
|
55
|
-
* - 'profile' - Basic user information
|
|
56
|
-
* - 'email' - User's email address
|
|
57
|
-
* - 'address' - User's postal address
|
|
58
|
-
* - 'phone' - User's phone number
|
|
49
|
+
* Supported Authentication Context Class References.
|
|
50
|
+
* Indicates the OP's ability to satisfy specific authentication requirements.
|
|
59
51
|
*/
|
|
60
|
-
|
|
52
|
+
acr_values_supported?: string[];
|
|
61
53
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* @remarks
|
|
65
|
-
* Common values include:
|
|
66
|
-
* - 'code' - Authorization Code flow
|
|
67
|
-
* - 'token' - Implicit flow
|
|
68
|
-
* - 'id_token' - OIDC implicit flow
|
|
69
|
-
* - 'code token' - Hybrid flow
|
|
54
|
+
* Boolean value specifying whether the OP can pass a sid (session ID) Claim in the Logout Token to
|
|
55
|
+
* identify the RP session with the OP.
|
|
70
56
|
*/
|
|
71
|
-
|
|
57
|
+
backchannel_logout_session_supported?: boolean;
|
|
72
58
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* @remarks
|
|
76
|
-
* Determines how the authorization response is returned:
|
|
77
|
-
* - 'query' - Parameters in URL query string
|
|
78
|
-
* - 'fragment' - Parameters in URL fragment
|
|
79
|
-
* - 'form_post' - Parameters via POST
|
|
59
|
+
* Boolean value specifying whether the OP supports back-channel logout, with true indicating support.
|
|
60
|
+
* If omitted, the default value is false.
|
|
80
61
|
*/
|
|
81
|
-
|
|
62
|
+
backchannel_logout_supported?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* JSON array containing a list of the Claim Types that the OpenID Provider supports.
|
|
65
|
+
*/
|
|
66
|
+
claim_types_supported?: string[];
|
|
67
|
+
/**
|
|
68
|
+
* Languages and scripts supported for values in Claims being returned, represented as a JSON array
|
|
69
|
+
* of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily
|
|
70
|
+
* supported for all Claim values.
|
|
71
|
+
*/
|
|
72
|
+
claims_locales_supported?: string[];
|
|
73
|
+
/**
|
|
74
|
+
* Boolean value specifying whether the OP supports use of the claims parameter,
|
|
75
|
+
* with true indicating support. If omitted, the default value is false.
|
|
76
|
+
*/
|
|
77
|
+
claims_parameter_supported?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* JSON array containing a list of the Claim Names of the Claims that
|
|
80
|
+
* the OpenID Provider MAY be able to supply values for.
|
|
81
|
+
*/
|
|
82
|
+
claims_supported?: string[];
|
|
83
|
+
/**
|
|
84
|
+
* JSON array containing a list of Proof Key for Code
|
|
85
|
+
* Exchange (PKCE) [RFC7636] code challenge methods supported by this
|
|
86
|
+
* authorization server.
|
|
87
|
+
*/
|
|
88
|
+
code_challenge_methods_supported?: string[];
|
|
89
|
+
/**
|
|
90
|
+
* JSON array containing a list of the display parameter values that the OpenID Provider supports.
|
|
91
|
+
*/
|
|
92
|
+
display_values_supported?: string[];
|
|
82
93
|
/**
|
|
83
94
|
* Supported OAuth 2.0 grant type values.
|
|
84
95
|
*
|
|
@@ -90,26 +101,6 @@ export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiRespo
|
|
|
90
101
|
* - 'client_credentials' - Client credentials grant
|
|
91
102
|
*/
|
|
92
103
|
grant_types_supported?: string[];
|
|
93
|
-
/**
|
|
94
|
-
* Supported Authentication Context Class References.
|
|
95
|
-
* Indicates the OP's ability to satisfy specific authentication requirements.
|
|
96
|
-
*/
|
|
97
|
-
acr_values_supported?: string[];
|
|
98
|
-
/**
|
|
99
|
-
* Supported Subject Identifier types.
|
|
100
|
-
* Defines how the OP identifies users across sessions.
|
|
101
|
-
*
|
|
102
|
-
* @remarks
|
|
103
|
-
* Common values:
|
|
104
|
-
* - 'public' - Same sub value for all clients
|
|
105
|
-
* - 'pairwise' - Different sub values for different clients
|
|
106
|
-
*/
|
|
107
|
-
subject_types_supported?: string[];
|
|
108
|
-
/**
|
|
109
|
-
* JSON array containing a list of the JWS signing algorithms (alg values)
|
|
110
|
-
* supported by the OP for the ID Token to encode the Claims in a JWT [JWT].
|
|
111
|
-
*/
|
|
112
|
-
id_token_signing_alg_values_supported?: string[];
|
|
113
104
|
/**
|
|
114
105
|
* JSON array containing a list of the JWE encryption algorithms (alg values)
|
|
115
106
|
* supported by the OP for the ID Token to encode the Claims in a JWT [JWT].
|
|
@@ -121,24 +112,33 @@ export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiRespo
|
|
|
121
112
|
*/
|
|
122
113
|
id_token_encryption_enc_values_supported?: string[];
|
|
123
114
|
/**
|
|
124
|
-
* JSON array containing a list of the JWS
|
|
125
|
-
* supported by the
|
|
115
|
+
* JSON array containing a list of the JWS signing algorithms (alg values)
|
|
116
|
+
* supported by the OP for the ID Token to encode the Claims in a JWT [JWT].
|
|
126
117
|
*/
|
|
127
|
-
|
|
118
|
+
id_token_signing_alg_values_supported?: string[];
|
|
128
119
|
/**
|
|
129
|
-
* JSON array containing a list of
|
|
130
|
-
*
|
|
120
|
+
* JSON array containing a list of client authentication
|
|
121
|
+
* methods supported by this introspection endpoint.
|
|
131
122
|
*/
|
|
132
|
-
|
|
123
|
+
introspection_endpoint_auth_methods_supported?: string[];
|
|
133
124
|
/**
|
|
134
|
-
* JSON array containing a list of the
|
|
135
|
-
*
|
|
125
|
+
* JSON array containing a list of the JWS signing
|
|
126
|
+
* algorithms ("alg" values) supported by the introspection endpoint
|
|
127
|
+
* for the signature on the JWT [JWT] used to authenticate the client
|
|
128
|
+
* at the introspection endpoint for the "private_key_jwt" and
|
|
129
|
+
* "client_secret_jwt" authentication methods.
|
|
136
130
|
*/
|
|
137
|
-
|
|
131
|
+
introspection_endpoint_auth_signing_alg_values_supported?: string[];
|
|
138
132
|
/**
|
|
139
|
-
*
|
|
133
|
+
* URL that the OpenID Provider provides to the person registering the Client
|
|
134
|
+
* to read about the OP's requirements on how the Relying Party can use the data provided by the OP.
|
|
140
135
|
*/
|
|
141
|
-
|
|
136
|
+
op_policy_uri?: string;
|
|
137
|
+
/**
|
|
138
|
+
* URL that the OpenID Provider provides to the person registering the Client
|
|
139
|
+
* to read about OpenID Provider's terms of service.
|
|
140
|
+
*/
|
|
141
|
+
op_tos_uri?: string;
|
|
142
142
|
/**
|
|
143
143
|
* JSON array containing a list of the JWE encryption algorithms (alg values)
|
|
144
144
|
* supported by the OP for Request Objects.
|
|
@@ -150,49 +150,9 @@ export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiRespo
|
|
|
150
150
|
*/
|
|
151
151
|
request_object_encryption_enc_values_supported?: string[];
|
|
152
152
|
/**
|
|
153
|
-
* JSON array containing a list of
|
|
154
|
-
*/
|
|
155
|
-
token_endpoint_auth_methods_supported?: string[];
|
|
156
|
-
/**
|
|
157
|
-
* JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint
|
|
158
|
-
* for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the
|
|
159
|
-
* private_key_jwt and client_secret_jwt authentication methods.
|
|
160
|
-
*/
|
|
161
|
-
token_endpoint_auth_signing_alg_values_supported?: string[];
|
|
162
|
-
/**
|
|
163
|
-
* JSON array containing a list of the display parameter values that the OpenID Provider supports.
|
|
164
|
-
*/
|
|
165
|
-
display_values_supported?: string[];
|
|
166
|
-
/**
|
|
167
|
-
* JSON array containing a list of the Claim Types that the OpenID Provider supports.
|
|
168
|
-
*/
|
|
169
|
-
claim_types_supported?: string[];
|
|
170
|
-
/**
|
|
171
|
-
* JSON array containing a list of the Claim Names of the Claims that
|
|
172
|
-
* the OpenID Provider MAY be able to supply values for.
|
|
173
|
-
*/
|
|
174
|
-
claims_supported?: string[];
|
|
175
|
-
/**
|
|
176
|
-
* URL of a page containing human-readable information that developers
|
|
177
|
-
* might want or need to know when using the OpenID Provider.
|
|
178
|
-
*/
|
|
179
|
-
service_documentation?: string;
|
|
180
|
-
/**
|
|
181
|
-
* Languages and scripts supported for values in Claims being returned, represented as a JSON array
|
|
182
|
-
* of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily
|
|
183
|
-
* supported for all Claim values.
|
|
184
|
-
*/
|
|
185
|
-
claims_locales_supported?: string[];
|
|
186
|
-
/**
|
|
187
|
-
* Languages and scripts supported for the user interface,
|
|
188
|
-
* represented as a JSON array of BCP47 [RFC5646] language tag values.
|
|
189
|
-
*/
|
|
190
|
-
ui_locales_supported?: string[];
|
|
191
|
-
/**
|
|
192
|
-
* Boolean value specifying whether the OP supports use of the claims parameter,
|
|
193
|
-
* with true indicating support. If omitted, the default value is false.
|
|
153
|
+
* JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects
|
|
194
154
|
*/
|
|
195
|
-
|
|
155
|
+
request_object_signing_alg_values_supported?: string[];
|
|
196
156
|
/**
|
|
197
157
|
* Boolean value specifying whether the OP supports use of the request parameter,
|
|
198
158
|
* with true indicating support. If omitted, the default value is false.
|
|
@@ -209,15 +169,26 @@ export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiRespo
|
|
|
209
169
|
*/
|
|
210
170
|
require_request_uri_registration?: boolean;
|
|
211
171
|
/**
|
|
212
|
-
*
|
|
213
|
-
*
|
|
172
|
+
* Supported OAuth 2.0 response_mode values.
|
|
173
|
+
*
|
|
174
|
+
* @remarks
|
|
175
|
+
* Determines how the authorization response is returned:
|
|
176
|
+
* - 'query' - Parameters in URL query string
|
|
177
|
+
* - 'fragment' - Parameters in URL fragment
|
|
178
|
+
* - 'form_post' - Parameters via POST
|
|
214
179
|
*/
|
|
215
|
-
|
|
180
|
+
response_modes_supported?: string[];
|
|
216
181
|
/**
|
|
217
|
-
*
|
|
218
|
-
*
|
|
182
|
+
* Supported OAuth 2.0 response_type values.
|
|
183
|
+
*
|
|
184
|
+
* @remarks
|
|
185
|
+
* Common values include:
|
|
186
|
+
* - 'code' - Authorization Code flow
|
|
187
|
+
* - 'token' - Implicit flow
|
|
188
|
+
* - 'id_token' - OIDC implicit flow
|
|
189
|
+
* - 'code token' - Hybrid flow
|
|
219
190
|
*/
|
|
220
|
-
|
|
191
|
+
response_types_supported?: string[];
|
|
221
192
|
/**
|
|
222
193
|
* JSON array containing a list of client authentication
|
|
223
194
|
* methods supported by this revocation endpoint.
|
|
@@ -232,34 +203,63 @@ export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiRespo
|
|
|
232
203
|
*/
|
|
233
204
|
revocation_endpoint_auth_signing_alg_values_supported?: string[];
|
|
234
205
|
/**
|
|
235
|
-
*
|
|
236
|
-
*
|
|
206
|
+
* Supported OAuth 2.0 scope values.
|
|
207
|
+
* Lists the permission scopes this server can handle.
|
|
208
|
+
*
|
|
209
|
+
* @remarks
|
|
210
|
+
* Common values include:
|
|
211
|
+
* - 'openid' - Required for OIDC flows
|
|
212
|
+
* - 'profile' - Basic user information
|
|
213
|
+
* - 'email' - User's email address
|
|
214
|
+
* - 'address' - User's postal address
|
|
215
|
+
* - 'phone' - User's phone number
|
|
237
216
|
*/
|
|
238
|
-
|
|
217
|
+
scopes_supported?: string[];
|
|
239
218
|
/**
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
* for the signature on the JWT [JWT] used to authenticate the client
|
|
243
|
-
* at the introspection endpoint for the "private_key_jwt" and
|
|
244
|
-
* "client_secret_jwt" authentication methods.
|
|
219
|
+
* URL of a page containing human-readable information that developers
|
|
220
|
+
* might want or need to know when using the OpenID Provider.
|
|
245
221
|
*/
|
|
246
|
-
|
|
222
|
+
service_documentation?: string;
|
|
247
223
|
/**
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
224
|
+
* Supported Subject Identifier types.
|
|
225
|
+
* Defines how the OP identifies users across sessions.
|
|
226
|
+
*
|
|
227
|
+
* @remarks
|
|
228
|
+
* Common values:
|
|
229
|
+
* - 'public' - Same sub value for all clients
|
|
230
|
+
* - 'pairwise' - Different sub values for different clients
|
|
251
231
|
*/
|
|
252
|
-
|
|
232
|
+
subject_types_supported?: string[];
|
|
253
233
|
/**
|
|
254
|
-
*
|
|
255
|
-
* If omitted, the default value is false.
|
|
234
|
+
* JSON array containing a list of Client Authentication methods supported by this Token Endpoint.
|
|
256
235
|
*/
|
|
257
|
-
|
|
236
|
+
token_endpoint_auth_methods_supported?: string[];
|
|
258
237
|
/**
|
|
259
|
-
*
|
|
260
|
-
*
|
|
238
|
+
* JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint
|
|
239
|
+
* for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the
|
|
240
|
+
* private_key_jwt and client_secret_jwt authentication methods.
|
|
261
241
|
*/
|
|
262
|
-
|
|
242
|
+
token_endpoint_auth_signing_alg_values_supported?: string[];
|
|
243
|
+
/**
|
|
244
|
+
* Languages and scripts supported for the user interface,
|
|
245
|
+
* represented as a JSON array of BCP47 [RFC5646] language tag values.
|
|
246
|
+
*/
|
|
247
|
+
ui_locales_supported?: string[];
|
|
248
|
+
/**
|
|
249
|
+
* JSON array containing a list of the JWE [JWE] encryption algorithms (alg values)
|
|
250
|
+
* [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
|
|
251
|
+
*/
|
|
252
|
+
userinfo_encryption_alg_values_supported?: string[];
|
|
253
|
+
/**
|
|
254
|
+
* JSON array containing a list of the JWE encryption algorithms (enc values) [JWA]
|
|
255
|
+
* supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]
|
|
256
|
+
*/
|
|
257
|
+
userinfo_encryption_enc_values_supported?: string[];
|
|
258
|
+
/**
|
|
259
|
+
* JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA]
|
|
260
|
+
* supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
|
|
261
|
+
*/
|
|
262
|
+
userinfo_signing_alg_values_supported?: string[];
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
265
|
* Essential OpenID Connect (OIDC) Provider endpoints configuration.
|
|
@@ -290,15 +290,6 @@ export interface OIDCDiscoveryApiResponse extends OIDCDiscoveryEndpointsApiRespo
|
|
|
290
290
|
* ```
|
|
291
291
|
*/
|
|
292
292
|
export interface OIDCDiscoveryEndpointsApiResponse {
|
|
293
|
-
/**
|
|
294
|
-
* HTTPS URL that the OP asserts as its Issuer Identifier.
|
|
295
|
-
* Must not contain query or fragment components.
|
|
296
|
-
*
|
|
297
|
-
* @remarks
|
|
298
|
-
* This is a crucial identifier for the OpenID Provider and should
|
|
299
|
-
* match the iss claim in issued JWT tokens.
|
|
300
|
-
*/
|
|
301
|
-
issuer?: string;
|
|
302
293
|
/**
|
|
303
294
|
* OAuth 2.0 Authorization Endpoint URL.
|
|
304
295
|
* Used to initiate the authentication and authorization process.
|
|
@@ -309,23 +300,29 @@ export interface OIDCDiscoveryEndpointsApiResponse {
|
|
|
309
300
|
*/
|
|
310
301
|
authorization_endpoint?: string;
|
|
311
302
|
/**
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
* @remarks
|
|
316
|
-
* Clients use this endpoint to exchange authorization codes for tokens
|
|
317
|
-
* and to refresh expired access tokens.
|
|
303
|
+
* URL of an OP iframe that supports cross-origin communications for session state information with the RP
|
|
304
|
+
* Client, using the HTML5 postMessage API.
|
|
318
305
|
*/
|
|
319
|
-
|
|
306
|
+
check_session_iframe?: string;
|
|
320
307
|
/**
|
|
321
|
-
*
|
|
322
|
-
*
|
|
308
|
+
* URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the
|
|
309
|
+
* OP.
|
|
310
|
+
*/
|
|
311
|
+
end_session_endpoint?: string;
|
|
312
|
+
/**
|
|
313
|
+
* URL of the authorization server's OAuth 2.0
|
|
314
|
+
* introspection endpoint.
|
|
315
|
+
*/
|
|
316
|
+
introspection_endpoint?: string;
|
|
317
|
+
/**
|
|
318
|
+
* HTTPS URL that the OP asserts as its Issuer Identifier.
|
|
319
|
+
* Must not contain query or fragment components.
|
|
323
320
|
*
|
|
324
321
|
* @remarks
|
|
325
|
-
*
|
|
326
|
-
*
|
|
322
|
+
* This is a crucial identifier for the OpenID Provider and should
|
|
323
|
+
* match the iss claim in issued JWT tokens.
|
|
327
324
|
*/
|
|
328
|
-
|
|
325
|
+
issuer?: string;
|
|
329
326
|
/**
|
|
330
327
|
* JSON Web Key Set (JWKS) document URL.
|
|
331
328
|
* Contains the cryptographic keys used to secure communications.
|
|
@@ -347,23 +344,26 @@ export interface OIDCDiscoveryEndpointsApiResponse {
|
|
|
347
344
|
*/
|
|
348
345
|
registration_endpoint?: string;
|
|
349
346
|
/**
|
|
350
|
-
* URL
|
|
351
|
-
*
|
|
352
|
-
*/
|
|
353
|
-
end_session_endpoint?: string;
|
|
354
|
-
/**
|
|
355
|
-
* URL of an OP iframe that supports cross-origin communications for session state information with the RP
|
|
356
|
-
* Client, using the HTML5 postMessage API.
|
|
347
|
+
* URL of the authorization server's OAuth 2.0 revocation
|
|
348
|
+
* endpoint.
|
|
357
349
|
*/
|
|
358
|
-
|
|
350
|
+
revocation_endpoint?: string;
|
|
359
351
|
/**
|
|
360
|
-
*
|
|
361
|
-
*
|
|
352
|
+
* OAuth 2.0 Token Endpoint URL.
|
|
353
|
+
* Used to obtain tokens using various grant types.
|
|
354
|
+
*
|
|
355
|
+
* @remarks
|
|
356
|
+
* Clients use this endpoint to exchange authorization codes for tokens
|
|
357
|
+
* and to refresh expired access tokens.
|
|
362
358
|
*/
|
|
363
|
-
|
|
359
|
+
token_endpoint?: string;
|
|
364
360
|
/**
|
|
365
|
-
*
|
|
366
|
-
*
|
|
361
|
+
* UserInfo Endpoint URL.
|
|
362
|
+
* Returns claims about the authenticated end-user.
|
|
363
|
+
*
|
|
364
|
+
* @remarks
|
|
365
|
+
* Requires a valid access token with appropriate scope.
|
|
366
|
+
* May return claims in JWT format if signing/encryption is configured.
|
|
367
367
|
*/
|
|
368
|
-
|
|
368
|
+
userinfo_endpoint?: string;
|
|
369
369
|
}
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface LegacyOIDCEndpoints {
|
|
23
23
|
authorizationEndpoint: string;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
checkSessionIframe: string;
|
|
25
|
+
endSessionEndpoint: string;
|
|
26
|
+
introspectionEndpoint?: string;
|
|
26
27
|
jwksUri: string;
|
|
27
28
|
registrationEndpoint?: string;
|
|
28
29
|
revocationEndpoint: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
endSessionEndpoint: string;
|
|
30
|
+
tokenEndpoint: string;
|
|
31
|
+
userinfoEndpoint: string;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Interface representing OpenID Connect endpoints configuration.
|
|
@@ -36,25 +36,25 @@ export interface LegacyOIDCEndpoints {
|
|
|
36
36
|
*/
|
|
37
37
|
export interface OIDCEndpoints extends Partial<LegacyOIDCEndpoints> {
|
|
38
38
|
/**
|
|
39
|
-
* The
|
|
39
|
+
* The authorization endpoint URL where the authentication request is sent
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
authorization: string;
|
|
42
42
|
/**
|
|
43
43
|
* The OpenID Provider's discovery endpoint URL
|
|
44
44
|
*/
|
|
45
45
|
discovery: string;
|
|
46
46
|
/**
|
|
47
|
-
* The
|
|
48
|
-
*/
|
|
49
|
-
authorization: string;
|
|
50
|
-
/**
|
|
51
|
-
* The userinfo endpoint URL that returns claims about the authenticated user
|
|
47
|
+
* The end session endpoint URL used to terminate the user's session
|
|
52
48
|
*/
|
|
53
|
-
|
|
49
|
+
endSession: string;
|
|
54
50
|
/**
|
|
55
51
|
* The introspection endpoint URL used to validate tokens
|
|
56
52
|
*/
|
|
57
53
|
introspection: string;
|
|
54
|
+
/**
|
|
55
|
+
* The issuer identifier URL for the OpenID Provider
|
|
56
|
+
*/
|
|
57
|
+
issuer: string;
|
|
58
58
|
/**
|
|
59
59
|
* The JSON Web Key Set endpoint URL that provides the public keys to verify tokens
|
|
60
60
|
*/
|
|
@@ -64,7 +64,7 @@ export interface OIDCEndpoints extends Partial<LegacyOIDCEndpoints> {
|
|
|
64
64
|
*/
|
|
65
65
|
revocation: string;
|
|
66
66
|
/**
|
|
67
|
-
* The
|
|
67
|
+
* The userinfo endpoint URL that returns claims about the authenticated user
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
userinfo: string;
|
|
70
70
|
}
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
export declare enum Platform {
|
|
29
29
|
/** Asgardeo cloud identity platform (asgardeo.io domains) */
|
|
30
30
|
Asgardeo = "ASGARDEO",
|
|
31
|
-
/** WSO2 Identity Server (on-prem or custom domains) */
|
|
32
|
-
IdentityServer = "IDENTITY_SERVER",
|
|
33
31
|
/** @experimental WSO2 Asgardeo V2 */
|
|
34
32
|
AsgardeoV2 = "AsgardeoV2",
|
|
33
|
+
/** WSO2 Identity Server (on-prem or custom domains) */
|
|
34
|
+
IdentityServer = "IDENTITY_SERVER",
|
|
35
35
|
/** Unknown or unsupported platform */
|
|
36
36
|
Unknown = "UNKNOWN"
|
|
37
37
|
}
|
|
@@ -16,34 +16,34 @@
|
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
18
|
export interface SchemaAttribute {
|
|
19
|
-
name: string;
|
|
20
|
-
type: string;
|
|
21
|
-
multiValued: boolean;
|
|
22
|
-
description?: string;
|
|
23
|
-
required?: boolean;
|
|
24
19
|
caseExact: boolean;
|
|
25
|
-
|
|
26
|
-
returned: string;
|
|
27
|
-
uniqueness: string;
|
|
20
|
+
description?: string;
|
|
28
21
|
displayName?: string;
|
|
29
22
|
displayOrder?: string;
|
|
23
|
+
multiValued: boolean;
|
|
24
|
+
mutability: string;
|
|
25
|
+
name: string;
|
|
30
26
|
regEx?: string;
|
|
31
|
-
|
|
27
|
+
required?: boolean;
|
|
28
|
+
returned: string;
|
|
32
29
|
sharedProfileValueResolvingMethod?: string;
|
|
33
30
|
subAttributes?: SchemaAttribute[];
|
|
31
|
+
supportedByDefault?: string;
|
|
32
|
+
type: string;
|
|
33
|
+
uniqueness: string;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Represents a SCIM2 schema definition
|
|
37
37
|
*/
|
|
38
38
|
export interface Schema {
|
|
39
|
+
/** Schema attributes */
|
|
40
|
+
attributes: SchemaAttribute[];
|
|
41
|
+
/** Schema description */
|
|
42
|
+
description: string;
|
|
39
43
|
/** Schema identifier */
|
|
40
44
|
id: string;
|
|
41
45
|
/** Schema name */
|
|
42
46
|
name: string;
|
|
43
|
-
/** Schema description */
|
|
44
|
-
description: string;
|
|
45
|
-
/** Schema attributes */
|
|
46
|
-
attributes: SchemaAttribute[];
|
|
47
47
|
}
|
|
48
48
|
export interface FlattenedSchema extends Schema {
|
|
49
49
|
schemaId: string;
|
|
@@ -54,12 +54,12 @@ export interface FlattenedSchema extends Schema {
|
|
|
54
54
|
export declare enum WellKnownSchemaIds {
|
|
55
55
|
/** Core Schema */
|
|
56
56
|
Core = "urn:ietf:params:scim:schemas:core:2.0",
|
|
57
|
-
/** User Schema */
|
|
58
|
-
|
|
57
|
+
/** Custom User Schema */
|
|
58
|
+
CustomUser = "urn:scim:schemas:extension:custom:User",
|
|
59
59
|
/** Enterprise User Schema */
|
|
60
60
|
EnterpriseUser = "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User",
|
|
61
61
|
/** System User Schema */
|
|
62
62
|
SystemUser = "urn:scim:wso2:schema",
|
|
63
|
-
/**
|
|
64
|
-
|
|
63
|
+
/** User Schema */
|
|
64
|
+
User = "urn:ietf:params:scim:schemas:core:2.0:User"
|
|
65
65
|
}
|
package/dist/models/session.d.ts
CHANGED
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
*/
|
|
18
18
|
export interface SessionData {
|
|
19
19
|
access_token: string;
|
|
20
|
-
|
|
20
|
+
created_at: number;
|
|
21
21
|
expires_in: string;
|
|
22
|
-
|
|
22
|
+
id_token: string;
|
|
23
23
|
refresh_token?: string;
|
|
24
|
-
|
|
24
|
+
scope: string;
|
|
25
25
|
session_state: string;
|
|
26
|
-
|
|
26
|
+
token_type: string;
|
|
27
27
|
}
|
|
28
28
|
export interface UserSession {
|
|
29
29
|
scopes: string[];
|
package/dist/models/store.d.ts
CHANGED
|
@@ -22,15 +22,6 @@ import { OIDCEndpoints } from './oidc-endpoints';
|
|
|
22
22
|
* memory cache, or distributed caches like Redis or Memcached.
|
|
23
23
|
*/
|
|
24
24
|
export interface Storage {
|
|
25
|
-
/**
|
|
26
|
-
* Stores a value with the specified key.
|
|
27
|
-
*
|
|
28
|
-
* @param key - The unique identifier for the stored value
|
|
29
|
-
* @param value - The string value to store
|
|
30
|
-
* @returns A promise that resolves when the value is successfully stored
|
|
31
|
-
* @throws Error if storage operation fails
|
|
32
|
-
*/
|
|
33
|
-
setData(key: string, value: string): Promise<void>;
|
|
34
25
|
/**
|
|
35
26
|
* Retrieves a value by its key.
|
|
36
27
|
*
|
|
@@ -47,6 +38,15 @@ export interface Storage {
|
|
|
47
38
|
* @throws Error if removal fails or the key doesn't exist
|
|
48
39
|
*/
|
|
49
40
|
removeData(key: string): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Stores a value with the specified key.
|
|
43
|
+
*
|
|
44
|
+
* @param key - The unique identifier for the stored value
|
|
45
|
+
* @param value - The string value to store
|
|
46
|
+
* @returns A promise that resolves when the value is successfully stored
|
|
47
|
+
* @throws Error if storage operation fails
|
|
48
|
+
*/
|
|
49
|
+
setData(key: string, value: string): Promise<void>;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Represents the possible value types that can be stored in the temporary data storage.
|
package/dist/models/user.d.ts
CHANGED
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { Schema } from './scim2-schema';
|
|
19
19
|
export interface KnownUser {
|
|
20
|
-
|
|
20
|
+
displayName?: string;
|
|
21
21
|
email?: string;
|
|
22
|
-
givenName?: string;
|
|
23
22
|
familyName?: string;
|
|
24
|
-
|
|
23
|
+
givenName?: string;
|
|
24
|
+
username?: string;
|
|
25
25
|
}
|
|
26
26
|
export interface User extends KnownUser {
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
}
|
|
29
29
|
export interface UserProfile {
|
|
30
|
-
schemas: Schema[];
|
|
31
|
-
profile: User;
|
|
32
30
|
flattenedProfile: User;
|
|
31
|
+
profile: User;
|
|
32
|
+
schemas: Schema[];
|
|
33
33
|
}
|