@azure/msal-common 14.0.0-alpha.2 → 14.0.0-beta.1
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/account/AuthToken.js +1 -1
- package/dist/account/CcsCredential.d.ts +5 -4
- package/dist/account/CcsCredential.d.ts.map +1 -1
- package/dist/account/CcsCredential.js +5 -6
- package/dist/account/CcsCredential.js.map +1 -1
- package/dist/account/ClientInfo.js +1 -1
- package/dist/authority/Authority.d.ts +1 -0
- package/dist/authority/Authority.d.ts.map +1 -1
- package/dist/authority/Authority.js +15 -27
- package/dist/authority/Authority.js.map +1 -1
- package/dist/authority/AuthorityFactory.js +1 -1
- package/dist/authority/AuthorityMetadata.js +1 -1
- package/dist/authority/AuthorityOptions.d.ts +9 -8
- package/dist/authority/AuthorityOptions.d.ts.map +1 -1
- package/dist/authority/AuthorityOptions.js +9 -10
- package/dist/authority/AuthorityOptions.js.map +1 -1
- package/dist/authority/AuthorityType.d.ts +7 -6
- package/dist/authority/AuthorityType.d.ts.map +1 -1
- package/dist/authority/AuthorityType.js +7 -8
- package/dist/authority/AuthorityType.js.map +1 -1
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.js +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.js +1 -1
- package/dist/authority/OpenIdConfigResponse.js +1 -1
- package/dist/authority/ProtocolMode.d.ts +5 -4
- package/dist/authority/ProtocolMode.d.ts.map +1 -1
- package/dist/authority/ProtocolMode.js +5 -6
- package/dist/authority/ProtocolMode.js.map +1 -1
- package/dist/authority/RegionDiscovery.js +1 -1
- package/dist/cache/CacheManager.js +1 -1
- package/dist/cache/entities/AccessTokenEntity.js +1 -1
- package/dist/cache/entities/AccountEntity.js +1 -1
- package/dist/cache/entities/AppMetadataEntity.js +1 -1
- package/dist/cache/entities/AuthorityMetadataEntity.js +1 -1
- package/dist/cache/entities/CacheRecord.js +1 -1
- package/dist/cache/entities/CredentialEntity.js +1 -1
- package/dist/cache/entities/IdTokenEntity.js +1 -1
- package/dist/cache/entities/RefreshTokenEntity.js +1 -1
- package/dist/cache/entities/ServerTelemetryEntity.js +1 -1
- package/dist/cache/entities/ThrottlingEntity.js +1 -1
- package/dist/cache/persistence/TokenCacheContext.js +1 -1
- package/dist/client/AuthorizationCodeClient.js +1 -1
- package/dist/client/BaseClient.js +1 -1
- package/dist/client/RefreshTokenClient.js +1 -1
- package/dist/client/SilentFlowClient.d.ts.map +1 -1
- package/dist/client/SilentFlowClient.js +8 -1
- package/dist/client/SilentFlowClient.js.map +1 -1
- package/dist/config/ClientConfiguration.d.ts +11 -1
- package/dist/config/ClientConfiguration.d.ts.map +1 -1
- package/dist/config/ClientConfiguration.js +6 -2
- package/dist/config/ClientConfiguration.js.map +1 -1
- package/dist/crypto/ICrypto.js +1 -1
- package/dist/crypto/JoseHeader.js +1 -1
- package/dist/crypto/PopTokenGenerator.d.ts +5 -4
- package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/dist/crypto/PopTokenGenerator.js +5 -6
- package/dist/crypto/PopTokenGenerator.js.map +1 -1
- package/dist/error/AuthError.js +1 -1
- package/dist/error/ClientAuthError.js +1 -1
- package/dist/error/ClientConfigurationError.d.ts +8 -0
- package/dist/error/ClientConfigurationError.d.ts.map +1 -1
- package/dist/error/ClientConfigurationError.js +12 -2
- package/dist/error/ClientConfigurationError.js.map +1 -1
- package/dist/error/InteractionRequiredAuthError.js +1 -1
- package/dist/error/JoseHeaderError.js +1 -1
- package/dist/error/ServerError.js +1 -1
- package/dist/index.cjs.js +548 -571
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/logger/Logger.js +1 -1
- package/dist/network/INetworkModule.js +1 -1
- package/dist/network/NetworkManager.js +1 -1
- package/dist/network/ThrottlingUtils.js +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.js +2 -2
- package/dist/request/AuthenticationHeaderParser.js +1 -1
- package/dist/request/RequestParameterBuilder.js +1 -1
- package/dist/request/RequestValidator.js +2 -3
- package/dist/request/RequestValidator.js.map +1 -1
- package/dist/request/ScopeSet.js +1 -1
- package/dist/response/ResponseHandler.js +1 -1
- package/dist/telemetry/performance/PerformanceClient.js +1 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts +73 -71
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.js +72 -74
- package/dist/telemetry/performance/PerformanceEvent.js.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.d.ts +3 -7
- package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.js +7 -21
- package/dist/telemetry/performance/StubPerformanceClient.js.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.js +1 -1
- package/dist/url/UrlString.js +1 -1
- package/dist/utils/Constants.d.ts +193 -179
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.js +174 -194
- package/dist/utils/Constants.js.map +1 -1
- package/dist/utils/ProtocolUtils.js +1 -1
- package/dist/utils/StringUtils.js +1 -1
- package/dist/utils/TimeUtils.js +1 -1
- package/package.json +14 -7
|
@@ -46,95 +46,100 @@ export declare const OIDC_SCOPES: string[];
|
|
|
46
46
|
/**
|
|
47
47
|
* Request header names
|
|
48
48
|
*/
|
|
49
|
-
export declare
|
|
50
|
-
CONTENT_TYPE
|
|
51
|
-
RETRY_AFTER
|
|
52
|
-
CCS_HEADER
|
|
53
|
-
WWWAuthenticate
|
|
54
|
-
AuthenticationInfo
|
|
55
|
-
X_MS_REQUEST_ID
|
|
56
|
-
X_MS_HTTP_VERSION
|
|
57
|
-
}
|
|
49
|
+
export declare const HeaderNames: {
|
|
50
|
+
readonly CONTENT_TYPE: "Content-Type";
|
|
51
|
+
readonly RETRY_AFTER: "Retry-After";
|
|
52
|
+
readonly CCS_HEADER: "X-AnchorMailbox";
|
|
53
|
+
readonly WWWAuthenticate: "WWW-Authenticate";
|
|
54
|
+
readonly AuthenticationInfo: "Authentication-Info";
|
|
55
|
+
readonly X_MS_REQUEST_ID: "x-ms-request-id";
|
|
56
|
+
readonly X_MS_HTTP_VERSION: "x-ms-httpver";
|
|
57
|
+
};
|
|
58
|
+
export type HeaderNames = typeof HeaderNames[keyof typeof HeaderNames];
|
|
58
59
|
/**
|
|
59
60
|
* Persistent cache keys MSAL which stay while user is logged in.
|
|
60
61
|
*/
|
|
61
|
-
export declare
|
|
62
|
-
ID_TOKEN
|
|
63
|
-
CLIENT_INFO
|
|
64
|
-
ADAL_ID_TOKEN
|
|
65
|
-
ERROR
|
|
66
|
-
ERROR_DESC
|
|
67
|
-
ACTIVE_ACCOUNT
|
|
68
|
-
ACTIVE_ACCOUNT_FILTERS
|
|
69
|
-
}
|
|
62
|
+
export declare const PersistentCacheKeys: {
|
|
63
|
+
readonly ID_TOKEN: "idtoken";
|
|
64
|
+
readonly CLIENT_INFO: "client.info";
|
|
65
|
+
readonly ADAL_ID_TOKEN: "adal.idtoken";
|
|
66
|
+
readonly ERROR: "error";
|
|
67
|
+
readonly ERROR_DESC: "error.description";
|
|
68
|
+
readonly ACTIVE_ACCOUNT: "active-account";
|
|
69
|
+
readonly ACTIVE_ACCOUNT_FILTERS: "active-account-filters";
|
|
70
|
+
};
|
|
71
|
+
export type PersistentCacheKeys = typeof PersistentCacheKeys[keyof typeof PersistentCacheKeys];
|
|
70
72
|
/**
|
|
71
73
|
* String constants related to AAD Authority
|
|
72
74
|
*/
|
|
73
|
-
export declare
|
|
74
|
-
COMMON
|
|
75
|
-
ORGANIZATIONS
|
|
76
|
-
CONSUMERS
|
|
77
|
-
}
|
|
75
|
+
export declare const AADAuthorityConstants: {
|
|
76
|
+
readonly COMMON: "common";
|
|
77
|
+
readonly ORGANIZATIONS: "organizations";
|
|
78
|
+
readonly CONSUMERS: "consumers";
|
|
79
|
+
};
|
|
80
|
+
export type AADAuthorityConstants = typeof AADAuthorityConstants[keyof typeof AADAuthorityConstants];
|
|
78
81
|
/**
|
|
79
82
|
* Keys in the hashParams sent by AAD Server
|
|
80
83
|
*/
|
|
81
|
-
export declare
|
|
82
|
-
CLIENT_ID
|
|
83
|
-
REDIRECT_URI
|
|
84
|
-
RESPONSE_TYPE
|
|
85
|
-
RESPONSE_MODE
|
|
86
|
-
GRANT_TYPE
|
|
87
|
-
CLAIMS
|
|
88
|
-
SCOPE
|
|
89
|
-
ERROR
|
|
90
|
-
ERROR_DESCRIPTION
|
|
91
|
-
ACCESS_TOKEN
|
|
92
|
-
ID_TOKEN
|
|
93
|
-
REFRESH_TOKEN
|
|
94
|
-
EXPIRES_IN
|
|
95
|
-
STATE
|
|
96
|
-
NONCE
|
|
97
|
-
PROMPT
|
|
98
|
-
SESSION_STATE
|
|
99
|
-
CLIENT_INFO
|
|
100
|
-
CODE
|
|
101
|
-
CODE_CHALLENGE
|
|
102
|
-
CODE_CHALLENGE_METHOD
|
|
103
|
-
CODE_VERIFIER
|
|
104
|
-
CLIENT_REQUEST_ID
|
|
105
|
-
X_CLIENT_SKU
|
|
106
|
-
X_CLIENT_VER
|
|
107
|
-
X_CLIENT_OS
|
|
108
|
-
X_CLIENT_CPU
|
|
109
|
-
X_CLIENT_CURR_TELEM
|
|
110
|
-
X_CLIENT_LAST_TELEM
|
|
111
|
-
X_MS_LIB_CAPABILITY
|
|
112
|
-
X_APP_NAME
|
|
113
|
-
X_APP_VER
|
|
114
|
-
POST_LOGOUT_URI
|
|
115
|
-
ID_TOKEN_HINT
|
|
116
|
-
DEVICE_CODE
|
|
117
|
-
CLIENT_SECRET
|
|
118
|
-
CLIENT_ASSERTION
|
|
119
|
-
CLIENT_ASSERTION_TYPE
|
|
120
|
-
TOKEN_TYPE
|
|
121
|
-
REQ_CNF
|
|
122
|
-
OBO_ASSERTION
|
|
123
|
-
REQUESTED_TOKEN_USE
|
|
124
|
-
ON_BEHALF_OF
|
|
125
|
-
FOCI
|
|
126
|
-
CCS_HEADER
|
|
127
|
-
RETURN_SPA_CODE
|
|
128
|
-
NATIVE_BROKER
|
|
129
|
-
LOGOUT_HINT
|
|
130
|
-
}
|
|
84
|
+
export declare const AADServerParamKeys: {
|
|
85
|
+
readonly CLIENT_ID: "client_id";
|
|
86
|
+
readonly REDIRECT_URI: "redirect_uri";
|
|
87
|
+
readonly RESPONSE_TYPE: "response_type";
|
|
88
|
+
readonly RESPONSE_MODE: "response_mode";
|
|
89
|
+
readonly GRANT_TYPE: "grant_type";
|
|
90
|
+
readonly CLAIMS: "claims";
|
|
91
|
+
readonly SCOPE: "scope";
|
|
92
|
+
readonly ERROR: "error";
|
|
93
|
+
readonly ERROR_DESCRIPTION: "error_description";
|
|
94
|
+
readonly ACCESS_TOKEN: "access_token";
|
|
95
|
+
readonly ID_TOKEN: "id_token";
|
|
96
|
+
readonly REFRESH_TOKEN: "refresh_token";
|
|
97
|
+
readonly EXPIRES_IN: "expires_in";
|
|
98
|
+
readonly STATE: "state";
|
|
99
|
+
readonly NONCE: "nonce";
|
|
100
|
+
readonly PROMPT: "prompt";
|
|
101
|
+
readonly SESSION_STATE: "session_state";
|
|
102
|
+
readonly CLIENT_INFO: "client_info";
|
|
103
|
+
readonly CODE: "code";
|
|
104
|
+
readonly CODE_CHALLENGE: "code_challenge";
|
|
105
|
+
readonly CODE_CHALLENGE_METHOD: "code_challenge_method";
|
|
106
|
+
readonly CODE_VERIFIER: "code_verifier";
|
|
107
|
+
readonly CLIENT_REQUEST_ID: "client-request-id";
|
|
108
|
+
readonly X_CLIENT_SKU: "x-client-SKU";
|
|
109
|
+
readonly X_CLIENT_VER: "x-client-VER";
|
|
110
|
+
readonly X_CLIENT_OS: "x-client-OS";
|
|
111
|
+
readonly X_CLIENT_CPU: "x-client-CPU";
|
|
112
|
+
readonly X_CLIENT_CURR_TELEM: "x-client-current-telemetry";
|
|
113
|
+
readonly X_CLIENT_LAST_TELEM: "x-client-last-telemetry";
|
|
114
|
+
readonly X_MS_LIB_CAPABILITY: "x-ms-lib-capability";
|
|
115
|
+
readonly X_APP_NAME: "x-app-name";
|
|
116
|
+
readonly X_APP_VER: "x-app-ver";
|
|
117
|
+
readonly POST_LOGOUT_URI: "post_logout_redirect_uri";
|
|
118
|
+
readonly ID_TOKEN_HINT: "id_token_hint";
|
|
119
|
+
readonly DEVICE_CODE: "device_code";
|
|
120
|
+
readonly CLIENT_SECRET: "client_secret";
|
|
121
|
+
readonly CLIENT_ASSERTION: "client_assertion";
|
|
122
|
+
readonly CLIENT_ASSERTION_TYPE: "client_assertion_type";
|
|
123
|
+
readonly TOKEN_TYPE: "token_type";
|
|
124
|
+
readonly REQ_CNF: "req_cnf";
|
|
125
|
+
readonly OBO_ASSERTION: "assertion";
|
|
126
|
+
readonly REQUESTED_TOKEN_USE: "requested_token_use";
|
|
127
|
+
readonly ON_BEHALF_OF: "on_behalf_of";
|
|
128
|
+
readonly FOCI: "foci";
|
|
129
|
+
readonly CCS_HEADER: "X-AnchorMailbox";
|
|
130
|
+
readonly RETURN_SPA_CODE: "return_spa_code";
|
|
131
|
+
readonly NATIVE_BROKER: "nativebroker";
|
|
132
|
+
readonly LOGOUT_HINT: "logout_hint";
|
|
133
|
+
};
|
|
134
|
+
export type AADServerParamKeys = typeof AADServerParamKeys[keyof typeof AADServerParamKeys];
|
|
131
135
|
/**
|
|
132
136
|
* Claims request keys
|
|
133
137
|
*/
|
|
134
|
-
export declare
|
|
135
|
-
ACCESS_TOKEN
|
|
136
|
-
XMS_CC
|
|
137
|
-
}
|
|
138
|
+
export declare const ClaimsRequestKeys: {
|
|
139
|
+
readonly ACCESS_TOKEN: "access_token";
|
|
140
|
+
readonly XMS_CC: "xms_cc";
|
|
141
|
+
};
|
|
142
|
+
export type ClaimsRequestKeys = typeof ClaimsRequestKeys[keyof typeof ClaimsRequestKeys];
|
|
138
143
|
/**
|
|
139
144
|
* we considered making this "enum" in the request instead of string, however it looks like the allowed list of
|
|
140
145
|
* prompt values kept changing over past couple of years. There are some undocumented prompt values for some
|
|
@@ -151,17 +156,18 @@ export declare const PromptValue: {
|
|
|
151
156
|
/**
|
|
152
157
|
* SSO Types - generated to populate hints
|
|
153
158
|
*/
|
|
154
|
-
export declare
|
|
155
|
-
ACCOUNT
|
|
156
|
-
SID
|
|
157
|
-
LOGIN_HINT
|
|
158
|
-
ID_TOKEN
|
|
159
|
-
DOMAIN_HINT
|
|
160
|
-
ORGANIZATIONS
|
|
161
|
-
CONSUMERS
|
|
162
|
-
ACCOUNT_ID
|
|
163
|
-
HOMEACCOUNT_ID
|
|
164
|
-
}
|
|
159
|
+
export declare const SSOTypes: {
|
|
160
|
+
readonly ACCOUNT: "account";
|
|
161
|
+
readonly SID: "sid";
|
|
162
|
+
readonly LOGIN_HINT: "login_hint";
|
|
163
|
+
readonly ID_TOKEN: "id_token";
|
|
164
|
+
readonly DOMAIN_HINT: "domain_hint";
|
|
165
|
+
readonly ORGANIZATIONS: "organizations";
|
|
166
|
+
readonly CONSUMERS: "consumers";
|
|
167
|
+
readonly ACCOUNT_ID: "accountIdentifier";
|
|
168
|
+
readonly HOMEACCOUNT_ID: "homeAccountIdentifier";
|
|
169
|
+
};
|
|
170
|
+
export type SSOTypes = typeof SSOTypes[keyof typeof SSOTypes];
|
|
165
171
|
/**
|
|
166
172
|
* allowed values for codeVerifier
|
|
167
173
|
*/
|
|
@@ -169,71 +175,71 @@ export declare const CodeChallengeMethodValues: {
|
|
|
169
175
|
PLAIN: string;
|
|
170
176
|
S256: string;
|
|
171
177
|
};
|
|
172
|
-
/**
|
|
173
|
-
* The method used to encode the code verifier for the code challenge parameter. can be one
|
|
174
|
-
* of plain or s256. if excluded, code challenge is assumed to be plaintext. for more
|
|
175
|
-
* information, see the pkce rcf: https://tools.ietf.org/html/rfc7636
|
|
176
|
-
*/
|
|
177
|
-
export declare const CodeChallengeMethodValuesArray: string[];
|
|
178
178
|
/**
|
|
179
179
|
* allowed values for response_mode
|
|
180
180
|
*/
|
|
181
|
-
export declare
|
|
182
|
-
QUERY
|
|
183
|
-
FRAGMENT
|
|
184
|
-
FORM_POST
|
|
185
|
-
}
|
|
181
|
+
export declare const ResponseMode: {
|
|
182
|
+
readonly QUERY: "query";
|
|
183
|
+
readonly FRAGMENT: "fragment";
|
|
184
|
+
readonly FORM_POST: "form_post";
|
|
185
|
+
};
|
|
186
|
+
export type ResponseMode = typeof ResponseMode[keyof typeof ResponseMode];
|
|
186
187
|
/**
|
|
187
188
|
* allowed grant_type
|
|
188
189
|
*/
|
|
189
|
-
export declare
|
|
190
|
-
IMPLICIT_GRANT
|
|
191
|
-
AUTHORIZATION_CODE_GRANT
|
|
192
|
-
CLIENT_CREDENTIALS_GRANT
|
|
193
|
-
RESOURCE_OWNER_PASSWORD_GRANT
|
|
194
|
-
REFRESH_TOKEN_GRANT
|
|
195
|
-
DEVICE_CODE_GRANT
|
|
196
|
-
JWT_BEARER
|
|
197
|
-
}
|
|
190
|
+
export declare const GrantType: {
|
|
191
|
+
readonly IMPLICIT_GRANT: "implicit";
|
|
192
|
+
readonly AUTHORIZATION_CODE_GRANT: "authorization_code";
|
|
193
|
+
readonly CLIENT_CREDENTIALS_GRANT: "client_credentials";
|
|
194
|
+
readonly RESOURCE_OWNER_PASSWORD_GRANT: "password";
|
|
195
|
+
readonly REFRESH_TOKEN_GRANT: "refresh_token";
|
|
196
|
+
readonly DEVICE_CODE_GRANT: "device_code";
|
|
197
|
+
readonly JWT_BEARER: "urn:ietf:params:oauth:grant-type:jwt-bearer";
|
|
198
|
+
};
|
|
199
|
+
export type GrantType = typeof GrantType[keyof typeof GrantType];
|
|
198
200
|
/**
|
|
199
201
|
* Account types in Cache
|
|
200
202
|
*/
|
|
201
|
-
export declare
|
|
202
|
-
MSSTS_ACCOUNT_TYPE
|
|
203
|
-
ADFS_ACCOUNT_TYPE
|
|
204
|
-
MSAV1_ACCOUNT_TYPE
|
|
205
|
-
GENERIC_ACCOUNT_TYPE
|
|
206
|
-
}
|
|
203
|
+
export declare const CacheAccountType: {
|
|
204
|
+
readonly MSSTS_ACCOUNT_TYPE: "MSSTS";
|
|
205
|
+
readonly ADFS_ACCOUNT_TYPE: "ADFS";
|
|
206
|
+
readonly MSAV1_ACCOUNT_TYPE: "MSA";
|
|
207
|
+
readonly GENERIC_ACCOUNT_TYPE: "Generic";
|
|
208
|
+
};
|
|
209
|
+
export type CacheAccountType = typeof CacheAccountType[keyof typeof CacheAccountType];
|
|
207
210
|
/**
|
|
208
211
|
* Separators used in cache
|
|
209
212
|
*/
|
|
210
|
-
export declare
|
|
211
|
-
CACHE_KEY_SEPARATOR
|
|
212
|
-
CLIENT_INFO_SEPARATOR
|
|
213
|
-
}
|
|
213
|
+
export declare const Separators: {
|
|
214
|
+
readonly CACHE_KEY_SEPARATOR: "-";
|
|
215
|
+
readonly CLIENT_INFO_SEPARATOR: ".";
|
|
216
|
+
};
|
|
217
|
+
export type Separators = typeof Separators[keyof typeof Separators];
|
|
214
218
|
/**
|
|
215
219
|
* Credential Type stored in the cache
|
|
216
220
|
*/
|
|
217
|
-
export declare
|
|
218
|
-
ID_TOKEN
|
|
219
|
-
ACCESS_TOKEN
|
|
220
|
-
ACCESS_TOKEN_WITH_AUTH_SCHEME
|
|
221
|
-
REFRESH_TOKEN
|
|
222
|
-
}
|
|
221
|
+
export declare const CredentialType: {
|
|
222
|
+
readonly ID_TOKEN: "IdToken";
|
|
223
|
+
readonly ACCESS_TOKEN: "AccessToken";
|
|
224
|
+
readonly ACCESS_TOKEN_WITH_AUTH_SCHEME: "AccessToken_With_AuthScheme";
|
|
225
|
+
readonly REFRESH_TOKEN: "RefreshToken";
|
|
226
|
+
};
|
|
227
|
+
export type CredentialType = typeof CredentialType[keyof typeof CredentialType];
|
|
223
228
|
/**
|
|
224
229
|
* Combine all cache types
|
|
225
230
|
*/
|
|
226
|
-
export declare
|
|
227
|
-
ADFS
|
|
228
|
-
MSA
|
|
229
|
-
MSSTS
|
|
230
|
-
GENERIC
|
|
231
|
-
ACCESS_TOKEN
|
|
232
|
-
REFRESH_TOKEN
|
|
233
|
-
ID_TOKEN
|
|
234
|
-
APP_METADATA
|
|
235
|
-
UNDEFINED
|
|
236
|
-
}
|
|
231
|
+
export declare const CacheType: {
|
|
232
|
+
readonly ADFS: 1001;
|
|
233
|
+
readonly MSA: 1002;
|
|
234
|
+
readonly MSSTS: 1003;
|
|
235
|
+
readonly GENERIC: 1004;
|
|
236
|
+
readonly ACCESS_TOKEN: 2001;
|
|
237
|
+
readonly REFRESH_TOKEN: 2002;
|
|
238
|
+
readonly ID_TOKEN: 2003;
|
|
239
|
+
readonly APP_METADATA: 3001;
|
|
240
|
+
readonly UNDEFINED: 9999;
|
|
241
|
+
};
|
|
242
|
+
export type CacheType = typeof CacheType[keyof typeof CacheType];
|
|
237
243
|
/**
|
|
238
244
|
* More Cache related constants
|
|
239
245
|
*/
|
|
@@ -244,12 +250,13 @@ export declare const AUTHORITY_METADATA_CONSTANTS: {
|
|
|
244
250
|
CACHE_KEY: string;
|
|
245
251
|
REFRESH_TIME_SECONDS: number;
|
|
246
252
|
};
|
|
247
|
-
export declare
|
|
248
|
-
CONFIG
|
|
249
|
-
CACHE
|
|
250
|
-
NETWORK
|
|
251
|
-
HARDCODED_VALUES
|
|
252
|
-
}
|
|
253
|
+
export declare const AuthorityMetadataSource: {
|
|
254
|
+
readonly CONFIG: "config";
|
|
255
|
+
readonly CACHE: "cache";
|
|
256
|
+
readonly NETWORK: "network";
|
|
257
|
+
readonly HARDCODED_VALUES: "hardcoded_values";
|
|
258
|
+
};
|
|
259
|
+
export type AuthorityMetadataSource = typeof AuthorityMetadataSource[keyof typeof AuthorityMetadataSource];
|
|
253
260
|
export declare const SERVER_TELEM_CONSTANTS: {
|
|
254
261
|
SCHEMA_VERSION: number;
|
|
255
262
|
MAX_CUR_HEADER_BYTES: number;
|
|
@@ -265,11 +272,12 @@ export declare const SERVER_TELEM_CONSTANTS: {
|
|
|
265
272
|
/**
|
|
266
273
|
* Type of the authentication request
|
|
267
274
|
*/
|
|
268
|
-
export declare
|
|
269
|
-
BEARER
|
|
270
|
-
POP
|
|
271
|
-
SSH
|
|
272
|
-
}
|
|
275
|
+
export declare const AuthenticationScheme: {
|
|
276
|
+
readonly BEARER: "Bearer";
|
|
277
|
+
readonly POP: "pop";
|
|
278
|
+
readonly SSH: "ssh-cert";
|
|
279
|
+
};
|
|
280
|
+
export type AuthenticationScheme = typeof AuthenticationScheme[keyof typeof AuthenticationScheme];
|
|
273
281
|
/**
|
|
274
282
|
* Constants related to throttling
|
|
275
283
|
*/
|
|
@@ -286,47 +294,53 @@ export declare const Errors: {
|
|
|
286
294
|
/**
|
|
287
295
|
* Password grant parameters
|
|
288
296
|
*/
|
|
289
|
-
export declare
|
|
290
|
-
username
|
|
291
|
-
password
|
|
292
|
-
}
|
|
297
|
+
export declare const PasswordGrantConstants: {
|
|
298
|
+
readonly username: "username";
|
|
299
|
+
readonly password: "password";
|
|
300
|
+
};
|
|
301
|
+
export type PasswordGrantConstants = typeof PasswordGrantConstants[keyof typeof PasswordGrantConstants];
|
|
293
302
|
/**
|
|
294
303
|
* Response codes
|
|
295
304
|
*/
|
|
296
|
-
export declare
|
|
297
|
-
httpSuccess
|
|
298
|
-
httpBadRequest
|
|
299
|
-
}
|
|
305
|
+
export declare const ResponseCodes: {
|
|
306
|
+
readonly httpSuccess: 200;
|
|
307
|
+
readonly httpBadRequest: 400;
|
|
308
|
+
};
|
|
309
|
+
export type ResponseCodes = typeof ResponseCodes[keyof typeof ResponseCodes];
|
|
300
310
|
/**
|
|
301
311
|
* Region Discovery Sources
|
|
302
312
|
*/
|
|
303
|
-
export declare
|
|
304
|
-
FAILED_AUTO_DETECTION
|
|
305
|
-
INTERNAL_CACHE
|
|
306
|
-
ENVIRONMENT_VARIABLE
|
|
307
|
-
IMDS
|
|
308
|
-
}
|
|
313
|
+
export declare const RegionDiscoverySources: {
|
|
314
|
+
readonly FAILED_AUTO_DETECTION: "1";
|
|
315
|
+
readonly INTERNAL_CACHE: "2";
|
|
316
|
+
readonly ENVIRONMENT_VARIABLE: "3";
|
|
317
|
+
readonly IMDS: "4";
|
|
318
|
+
};
|
|
319
|
+
export type RegionDiscoverySources = typeof RegionDiscoverySources[keyof typeof RegionDiscoverySources];
|
|
309
320
|
/**
|
|
310
321
|
* Region Discovery Outcomes
|
|
311
322
|
*/
|
|
312
|
-
export declare
|
|
313
|
-
CONFIGURED_MATCHES_DETECTED
|
|
314
|
-
CONFIGURED_NO_AUTO_DETECTION
|
|
315
|
-
CONFIGURED_NOT_DETECTED
|
|
316
|
-
AUTO_DETECTION_REQUESTED_SUCCESSFUL
|
|
317
|
-
AUTO_DETECTION_REQUESTED_FAILED
|
|
318
|
-
}
|
|
319
|
-
export
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
323
|
+
export declare const RegionDiscoveryOutcomes: {
|
|
324
|
+
readonly CONFIGURED_MATCHES_DETECTED: "1";
|
|
325
|
+
readonly CONFIGURED_NO_AUTO_DETECTION: "2";
|
|
326
|
+
readonly CONFIGURED_NOT_DETECTED: "3";
|
|
327
|
+
readonly AUTO_DETECTION_REQUESTED_SUCCESSFUL: "4";
|
|
328
|
+
readonly AUTO_DETECTION_REQUESTED_FAILED: "5";
|
|
329
|
+
};
|
|
330
|
+
export type RegionDiscoveryOutcomes = typeof RegionDiscoveryOutcomes[keyof typeof RegionDiscoveryOutcomes];
|
|
331
|
+
export declare const CacheOutcome: {
|
|
332
|
+
readonly NO_CACHE_HIT: "0";
|
|
333
|
+
readonly FORCE_REFRESH: "1";
|
|
334
|
+
readonly NO_CACHED_ACCESS_TOKEN: "2";
|
|
335
|
+
readonly CACHED_ACCESS_TOKEN_EXPIRED: "3";
|
|
336
|
+
readonly REFRESH_CACHED_ACCESS_TOKEN: "4";
|
|
337
|
+
};
|
|
338
|
+
export type CacheOutcome = typeof CacheOutcome[keyof typeof CacheOutcome];
|
|
339
|
+
export declare const JsonTypes: {
|
|
340
|
+
readonly Jwt: "JWT";
|
|
341
|
+
readonly Jwk: "JWK";
|
|
342
|
+
readonly Pop: "pop";
|
|
343
|
+
};
|
|
344
|
+
export type JsonTypes = typeof JsonTypes[keyof typeof JsonTypes];
|
|
331
345
|
export declare const ONE_DAY_IN_MS = 86400000;
|
|
332
346
|
//# sourceMappingURL=Constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../src/utils/Constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAI/B,CAAC;AAEF,eAAO,MAAM,WAAW,UAAkD,CAAC;AAE3E;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../src/utils/Constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAI/B,CAAC;AAEF,eAAO,MAAM,WAAW,UAAkD,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;CAQd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;CAQtB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAE/F;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAA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