@azure/msal-common package
Classes
| AuthError |
General error class thrown by the MSAL.js library. |
| AuthenticationHeaderParser |
This is a helper class that parses supported HTTP response authentication headers to extract and return header challenge values that can be used outside the basic authorization flows. |
| CacheError |
Error thrown when there is an error with the cache |
| ClientAuthError |
Error thrown when there is an error in the client code running on the browser. |
| ClientConfigurationError |
Error thrown when there is an error in configuration of the MSAL.js library. |
| InteractionRequiredAuthError |
Error thrown when user interaction is required. |
| Logger |
Class which facilitates logging of messages to a specific place. |
| NetworkError |
Represents network related errors |
| PerformanceClient | |
| PlatformBrokerError |
Error class for MSAL Runtime errors that preserves detailed broker information |
| ProtocolUtils |
Class which provides helpers for OAuth 2.0 protocol specific values |
| ScopeSet |
The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions to ensure uniqueness of strings. |
| ServerError |
Error thrown when there is an error with the server code, for example, unavailability. |
| StubPerformanceClient | |
| UrlString |
Url object class which can perform various transformations on url strings. |
| TokenCacheContext |
This class instance helps track the memory changes facilitating decisions to read from and write to the persistent cache |
Interfaces
| ICrypto |
Interface for crypto functions used by library |
| ILoggerCallback | |
| INetworkModule |
Client network interface to send backend requests. |
| IPerformanceClient | |
| IPerformanceMeasurement | |
| IUri |
Interface which describes URI components. |
| PreQueueEvent | |
| IAppTokenProvider | |
| ICachePlugin | |
| IGuidGenerator | |
| INativeBrokerPlugin | |
| ISerializableTokenCache | |
Type Aliases
| AccessTokenEntity |
Access token cache type |
| AccountFilter |
Account: <home_account_id>-<environment>-<realm*> |
| AccountInfo |
Account object with the following signature:
|
| ActiveAccountFilters | |
| AppMetadataEntity |
App Metadata Cache Type |
| ApplicationTelemetry |
Telemetry information sent on request
|
| AuthenticationResult |
Result returned from the authority's token endpoint.
|
| AuthorityOptions | |
| AuthorizationCodePayload |
Response returned after processing the code response query string or fragment. |
| AuthorizeResponse |
Response properties that may be returned by the /authorize endpoint |
| AzureCloudOptions |
AzureCloudInstance specific options
|
| AzureRegion | |
| AzureRegionConfiguration | |
| BaseAuthRequest |
BaseAuthRequest
|
| CacheOptions |
Use this to configure credential cache preferences in the ClientConfiguration object
|
| CcsCredential | |
| ClientInfo |
Client info object which consists of: uid: user id utid: tenant id xms_tdbr: optional, only for non-US tenants |
| CommonAuthorizationCodeRequest |
Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow)
|
| CommonAuthorizationUrlRequest |
Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow)
|
| CommonEndSessionRequest |
CommonEndSessionRequest
|
| CommonRefreshTokenRequest |
CommonRefreshTokenRequest
|
| CommonSilentFlowRequest |
SilentFlow parameters passed by the user to retrieve credentials silently
|
| CredentialEntity |
Credential Cache Type |
| CredentialFilter |
Credential: <home_account_id*>-<environment>-<credential_type>-<client_id>-<realm*>-<target*>-<scheme*> |
| ExternalTokenResponse |
Response object used for loading external tokens to cache.
|
| IdTokenEntity |
Id Token Cache Type |
| InProgressPerformanceEvent | |
| LibraryStateObject |
Type which defines the object that is stringified, encoded and sent in the state value. Contains the following:
|
| LoggerOptions |
Use this to configure the logging that MSAL does, by configuring logger options in the Configuration object
|
| NetworkRequestOptions |
Options allowed by network request APIs. |
| NetworkResponse | |
| OIDCOptions |
Options for the OIDC protocol mode. |
| PerformanceCallbackFunction | |
| PerformanceEvent |
Performance measurement taken by the library, including metadata about the request and application. |
| PkceCodes |
The PkceCodes type describes the structure of objects that contain PKCE code challenge and verifier pairs |
| QueueMeasurement |
Queue measurement type |
| RefreshTokenEntity |
Refresh Token Cache Type |
| RequestStateObject |
Type which defines the stringified and encoded object sent to the service in the authorize request. |
| RequestThumbprint |
Type representing a unique request thumbprint. |
| ServerAuthorizationTokenResponse |
Deserialized response object from server authorization code request.
In case of error:
|
| ServerTelemetryEntity | |
| ServerTelemetryRequest | |
| ShrOptions | |
| SignedHttpRequest | |
| SignedHttpRequestParameters | |
| StaticAuthorityOptions | |
| StoreInCache |
Controls whether tokens should be stored in the cache or not. If set to false, tokens may still be acquired and returned but will not be cached for later retrieval. |
| StringDict |
Key-Value type to support queryParams, extraQueryParams and claims |
| SubMeasurement | |
| SystemOptions |
Use this to configure token renewal info in the Configuration object
|
| TenantProfile |
Account details that vary across tenants for the same user |
| ThrottlingEntity | |
| TokenClaims |
Type which describes Id Token claims known by MSAL. |
| TokenKeys | |
| AppTokenProviderParameters |
Input object for the IAppTokenProvider extensiblity. MSAL will create this object, which can be used to help create an AppTokenProviderResult.
|
| AppTokenProviderResult |
Output object for IAppTokenProvider extensiblity.
|
| ClientAssertion |
Client Assertion credential for Confidential Clients |
| ClientAssertionCallback | |
| ClientAssertionConfig | |
| CommonClientCredentialRequest |
CommonClientCredentialRequest
|
| CommonDeviceCodeRequest |
Parameters for Oauth2 device code flow.
|
| CommonOnBehalfOfRequest |
|
| CommonUsernamePasswordRequest |
CommonUsernamePassword parameters passed by the user to retrieve credentials Note: The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely. This flow is added for internal testing.
|
| DeviceCodeResponse |
DeviceCode returned by the security token service device code endpoint containing information necessary for device code flow.
|
| NativeRequest | |
| NativeSignOutRequest | |
| ServerDeviceCodeResponse | |
Enums
| LogLevel |
Log message level. |
| PerformanceEventStatus |
State of the performance event. |
| PerformanceEvents |
Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient. |
Functions
| build |
|
| build |
Function to build a client info object from server clientInfo string |
| build |
Function to build a client info object from cached homeAccountId string |
| build |
|
| build |
Build tenant profile |
| create |
|
| create |
Helper function to wrap browser errors in a CacheError object |
| create |
|
| create |
|
| create |
Creates an InteractionRequiredAuthError |
| create |
Creates NetworkError object for a failed network request |
| format |
|
| get |
|
| get |
Gets tenantId from available ID token claims to set as credential realm with the following precedence:
|
| tenant |
Returns true if tenantId matches the utid portion of homeAccountId |
| update |
Replaces account info that varies by tenant profile sourced from the ID token claims passed in with the tenant-specific account info |
Variables
| AADAuthority |
String constants related to AAD Authority |
| Authentication |
Type of the authentication request |
| Authority |
Authority types supported by MSAL. |
| Azure |
|
| Cache |
Account types in Cache |
| Cache |
Specifies the reason for fetching the access token from the identity provider |
| Cache |
Combine all cache types |
| Ccs |
|
| Claims |
Claims request keys |
| Credential |
Credential Type stored in the cache |
| Encoding |
|
| Grant |
allowed grant_type |
| Header |
Request header names |
| Http |
|
| Http |
|
| Json |
|
| OAuth |
Allowed values for response_type |
| Password |
Password grant parameters |
| Persistent |
Persistent cache keys MSAL which stay while user is logged in. |
| Protocol |
Protocol modes supported by MSAL. |
| Response |
allowed values for response_mode |
| Server |
allowed values for server response type |
| Auth |
AuthErrorMessage class containing string constants used by error codes and messages. |
| Client |
String constants used by error codes and messages. |
| Client |
ClientConfigurationErrorMessage class containing string constants used by error codes and messages. |
| Code |
allowed values for codeVerifier |
| Constants | |
| DEFAULT_CRYPTO_IMPLEMENTATION | |
| DEFAULT_SYSTEM_OPTIONS | |
| DEFAULT_TOKEN_RENEWAL_OFFSET_SEC | |
| Errors | |
| Int |
|
| Interaction |
Interaction required errors defined by the SDK |
| OIDC_DEFAULT_SCOPES | |
| ONE_DAY_IN_MS | |
| Prompt |
we considered making this "enum" in the request instead of string, however it looks like the allowed list of prompt values kept changing over past couple of years. There are some undocumented prompt values for some internal partners too, hence the choice of generic "string" type instead of the "enum" |
| Stubbed |
|
| THE_FAMILY_ID | |
| Throttling |
Constants related to throttling |
| version |
Function Details
buildAccountToCache(CacheManager, Authority, string, (input: string) => string, string, TokenClaims, string, string, null | string, AuthorizationCodePayload, string, Logger)
function buildAccountToCache(cacheStorage: CacheManager, authority: Authority, homeAccountId: string, base64Decode: (input: string) => string, correlationId: string, idTokenClaims?: TokenClaims, clientInfo?: string, environment?: string, claimsTenantId?: null | string, authCodePayload?: AuthorizationCodePayload, nativeAccountId?: string, logger?: Logger): AccountEntity
Parameters
- cacheStorage
-
CacheManager
- authority
-
Authority
- homeAccountId
-
string
- base64Decode
-
(input: string) => string
- correlationId
-
string
- idTokenClaims
- TokenClaims
- clientInfo
-
string
- environment
-
string
- claimsTenantId
-
null | string
- authCodePayload
- AuthorizationCodePayload
- nativeAccountId
-
string
- logger
- Logger
Returns
AccountEntity
buildClientInfo(string, (input: string) => string)
Function to build a client info object from server clientInfo string
function buildClientInfo(rawClientInfo: string, base64Decode: (input: string) => string): ClientInfo
Parameters
- rawClientInfo
-
string
- base64Decode
-
(input: string) => string
Returns
buildClientInfoFromHomeAccountId(string)
Function to build a client info object from cached homeAccountId string
function buildClientInfoFromHomeAccountId(homeAccountId: string): ClientInfo
Parameters
- homeAccountId
-
string
Returns
buildStaticAuthorityOptions(Partial<AuthorityOptions>)
function buildStaticAuthorityOptions(authOptions: Partial<AuthorityOptions>): StaticAuthorityOptions
Parameters
- authOptions
-
Partial<AuthorityOptions>
Returns
buildTenantProfile(string, string, string, TokenClaims)
Build tenant profile
function buildTenantProfile(homeAccountId: string, localAccountId: string, tenantId: string, idTokenClaims?: TokenClaims): TenantProfile
Parameters
- homeAccountId
-
string
Home account identifier for this account object
- localAccountId
-
string
Local account identifer for this account object
- tenantId
-
string
Full tenant or organizational id that this account belongs to
- idTokenClaims
- TokenClaims
Claims from the ID token
Returns
createAuthError(string, string)
function createAuthError(code: string, additionalMessage?: string): AuthError
Parameters
- code
-
string
- additionalMessage
-
string
Returns
createCacheError(unknown)
Helper function to wrap browser errors in a CacheError object
function createCacheError(e: unknown): CacheError
Parameters
- e
-
unknown
Returns
createClientAuthError(string, string)
function createClientAuthError(errorCode: string, additionalMessage?: string): ClientAuthError
Parameters
- errorCode
-
string
- additionalMessage
-
string
Returns
createClientConfigurationError(string)
function createClientConfigurationError(errorCode: string): ClientConfigurationError
Parameters
- errorCode
-
string
Returns
createInteractionRequiredAuthError(string)
Creates an InteractionRequiredAuthError
function createInteractionRequiredAuthError(errorCode: string): InteractionRequiredAuthError
Parameters
- errorCode
-
string
Returns
createNetworkError(AuthError, number, Record<string, string>, Error)
Creates NetworkError object for a failed network request
function createNetworkError(error: AuthError, httpStatus?: number, responseHeaders?: Record<string, string>, additionalError?: Error): NetworkError
Parameters
- error
- AuthError
Error to be thrown back to the caller
- httpStatus
-
number
Status code of the network request
- responseHeaders
-
Record<string, string>
Response headers of the network request, when available
- additionalError
-
Error
Returns
NetworkError object
formatAuthorityUri(string)
function formatAuthorityUri(authorityUri: string): string
Parameters
- authorityUri
-
string
Returns
string
getRequestThumbprint(string, BaseAuthRequest, string)
function getRequestThumbprint(clientId: string, request: BaseAuthRequest, homeAccountId?: string): RequestThumbprint
Parameters
- clientId
-
string
- request
- BaseAuthRequest
- homeAccountId
-
string
Returns
getTenantIdFromIdTokenClaims(TokenClaims)
Gets tenantId from available ID token claims to set as credential realm with the following precedence:
- tid - if the token is acquired from an Azure AD tenant tid will be present
- tfp - if the token is acquired from a modern B2C tenant tfp should be present
- acr - if the token is acquired from a legacy B2C tenant acr should be present Downcased to match the realm case-insensitive comparison requirements
function getTenantIdFromIdTokenClaims(idTokenClaims?: TokenClaims): string | null
Parameters
- idTokenClaims
- TokenClaims
Returns
string | null
tenantIdMatchesHomeTenant(string, string)
Returns true if tenantId matches the utid portion of homeAccountId
function tenantIdMatchesHomeTenant(tenantId?: string, homeAccountId?: string): boolean
Parameters
- tenantId
-
string
- homeAccountId
-
string
Returns
boolean
updateAccountTenantProfileData(AccountInfo, TenantProfile, TokenClaims, string)
Replaces account info that varies by tenant profile sourced from the ID token claims passed in with the tenant-specific account info
function updateAccountTenantProfileData(baseAccountInfo: AccountInfo, tenantProfile?: TenantProfile, idTokenClaims?: TokenClaims, idTokenSecret?: string): AccountInfo
Parameters
- baseAccountInfo
- AccountInfo
- tenantProfile
- TenantProfile
- idTokenClaims
- TokenClaims
- idTokenSecret
-
string
Returns
Variable Details
AADAuthorityConstants
String constants related to AAD Authority
AADAuthorityConstants: { COMMON: "common", CONSUMERS: "consumers", ORGANIZATIONS: "organizations" }
Type
{ COMMON: "common", CONSUMERS: "consumers", ORGANIZATIONS: "organizations" }
AuthenticationScheme
Type of the authentication request
AuthenticationScheme: { BEARER: "Bearer", POP: "pop", SSH: "ssh-cert" }
Type
{ BEARER: "Bearer", POP: "pop", SSH: "ssh-cert" }
AuthorityType
Authority types supported by MSAL.
AuthorityType: { Adfs: 1, Ciam: 3, Default: 0, Dsts: 2 }
Type
{ Adfs: 1, Ciam: 3, Default: 0, Dsts: 2 }
AzureCloudInstance
AzureCloudInstance: { AzureChina: "https://login.chinacloudapi.cn", AzureGermany: "https://login.microsoftonline.de", AzurePpe: "https://login.windows-ppe.net", AzurePublic: "https://login.microsoftonline.com", AzureUsGovernment: "https://login.microsoftonline.us", None: "none" }
Type
{ AzureChina: "https://login.chinacloudapi.cn", AzureGermany: "https://login.microsoftonline.de", AzurePpe: "https://login.windows-ppe.net", AzurePublic: "https://login.microsoftonline.com", AzureUsGovernment: "https://login.microsoftonline.us", None: "none" }
CacheAccountType
Account types in Cache
CacheAccountType: { ADFS_ACCOUNT_TYPE: "ADFS", GENERIC_ACCOUNT_TYPE: "Generic", MSAV1_ACCOUNT_TYPE: "MSA", MSSTS_ACCOUNT_TYPE: "MSSTS" }
Type
{ ADFS_ACCOUNT_TYPE: "ADFS", GENERIC_ACCOUNT_TYPE: "Generic", MSAV1_ACCOUNT_TYPE: "MSA", MSSTS_ACCOUNT_TYPE: "MSSTS" }
CacheOutcome
Specifies the reason for fetching the access token from the identity provider
CacheOutcome: { CACHED_ACCESS_TOKEN_EXPIRED: "3", FORCE_REFRESH_OR_CLAIMS: "1", NOT_APPLICABLE: "0", NO_CACHED_ACCESS_TOKEN: "2", PROACTIVELY_REFRESHED: "4" }
Type
{ CACHED_ACCESS_TOKEN_EXPIRED: "3", FORCE_REFRESH_OR_CLAIMS: "1", NOT_APPLICABLE: "0", NO_CACHED_ACCESS_TOKEN: "2", PROACTIVELY_REFRESHED: "4" }
CacheType
Combine all cache types
CacheType: { ACCESS_TOKEN: 2001, ADFS: 1001, APP_METADATA: 3001, GENERIC: 1004, ID_TOKEN: 2003, MSA: 1002, MSSTS: 1003, REFRESH_TOKEN: 2002, UNDEFINED: 9999 }
Type
{ ACCESS_TOKEN: 2001, ADFS: 1001, APP_METADATA: 3001, GENERIC: 1004, ID_TOKEN: 2003, MSA: 1002, MSSTS: 1003, REFRESH_TOKEN: 2002, UNDEFINED: 9999 }
CcsCredentialType
CcsCredentialType: { HOME_ACCOUNT_ID: "home_account_id", UPN: "UPN" }
Type
{ HOME_ACCOUNT_ID: "home_account_id", UPN: "UPN" }
ClaimsRequestKeys
Claims request keys
ClaimsRequestKeys: { ACCESS_TOKEN: "access_token", XMS_CC: "xms_cc" }
Type
{ ACCESS_TOKEN: "access_token", XMS_CC: "xms_cc" }
CredentialType
Credential Type stored in the cache
CredentialType: { ACCESS_TOKEN: "AccessToken", ACCESS_TOKEN_WITH_AUTH_SCHEME: "AccessToken_With_AuthScheme", ID_TOKEN: "IdToken", REFRESH_TOKEN: "RefreshToken" }
Type
{ ACCESS_TOKEN: "AccessToken", ACCESS_TOKEN_WITH_AUTH_SCHEME: "AccessToken_With_AuthScheme", ID_TOKEN: "IdToken", REFRESH_TOKEN: "RefreshToken" }
EncodingTypes
EncodingTypes: { BASE64: "base64", HEX: "hex", UTF8: "utf-8" }
Type
{ BASE64: "base64", HEX: "hex", UTF8: "utf-8" }
GrantType
allowed grant_type
GrantType: { AUTHORIZATION_CODE_GRANT: "authorization_code", CLIENT_CREDENTIALS_GRANT: "client_credentials", DEVICE_CODE_GRANT: "device_code", IMPLICIT_GRANT: "implicit", JWT_BEARER: "urn:ietf:params:oauth:grant-type:jwt-bearer", REFRESH_TOKEN_GRANT: "refresh_token", RESOURCE_OWNER_PASSWORD_GRANT: "password" }
Type
{ AUTHORIZATION_CODE_GRANT: "authorization_code", CLIENT_CREDENTIALS_GRANT: "client_credentials", DEVICE_CODE_GRANT: "device_code", IMPLICIT_GRANT: "implicit", JWT_BEARER: "urn:ietf:params:oauth:grant-type:jwt-bearer", REFRESH_TOKEN_GRANT: "refresh_token", RESOURCE_OWNER_PASSWORD_GRANT: "password" }
HeaderNames
Request header names
HeaderNames: { AuthenticationInfo: "Authentication-Info", CCS_HEADER: "X-AnchorMailbox", CONTENT_LENGTH: "Content-Length", CONTENT_TYPE: "Content-Type", RETRY_AFTER: "Retry-After", WWWAuthenticate: "WWW-Authenticate", X_MS_HTTP_VERSION: "x-ms-httpver", X_MS_REQUEST_ID: "x-ms-request-id" }
Type
{ AuthenticationInfo: "Authentication-Info", CCS_HEADER: "X-AnchorMailbox", CONTENT_LENGTH: "Content-Length", CONTENT_TYPE: "Content-Type", RETRY_AFTER: "Retry-After", WWWAuthenticate: "WWW-Authenticate", X_MS_HTTP_VERSION: "x-ms-httpver", X_MS_REQUEST_ID: "x-ms-request-id" }
HttpMethod
HttpMethod: { GET: "GET", POST: "POST" }
Type
{ GET: "GET", POST: "POST" }
HttpStatus
HttpStatus: { BAD_REQUEST: 400, CLIENT_ERROR: 400, CLIENT_ERROR_RANGE_END: 499, CLIENT_ERROR_RANGE_START: 400, GATEWAY_TIMEOUT: 504, GONE: 410, MULTI_SIDED_ERROR: 600, NOT_FOUND: 404, REDIRECT: 302, REQUEST_TIMEOUT: 408, SERVER_ERROR: 500, SERVER_ERROR_RANGE_END: 599, SERVER_ERROR_RANGE_START: 500, SERVICE_UNAVAILABLE: 503, SUCCESS: 200, SUCCESS_RANGE_END: 299, SUCCESS_RANGE_START: 200, TOO_MANY_REQUESTS: 429, UNAUTHORIZED: 401 }
Type
{ BAD_REQUEST: 400, CLIENT_ERROR: 400, CLIENT_ERROR_RANGE_END: 499, CLIENT_ERROR_RANGE_START: 400, GATEWAY_TIMEOUT: 504, GONE: 410, MULTI_SIDED_ERROR: 600, NOT_FOUND: 404, REDIRECT: 302, REQUEST_TIMEOUT: 408, SERVER_ERROR: 500, SERVER_ERROR_RANGE_END: 599, SERVER_ERROR_RANGE_START: 500, SERVICE_UNAVAILABLE: 503, SUCCESS: 200, SUCCESS_RANGE_END: 299, SUCCESS_RANGE_START: 200, TOO_MANY_REQUESTS: 429, UNAUTHORIZED: 401 }
JsonWebTokenTypes
JsonWebTokenTypes: { Jwk: "JWK", Jwt: "JWT", Pop: "pop" }
Type
{ Jwk: "JWK", Jwt: "JWT", Pop: "pop" }
OAuthResponseType
Allowed values for response_type
OAuthResponseType: { CODE: "code", IDTOKEN_TOKEN: "id_token token", IDTOKEN_TOKEN_REFRESHTOKEN: "id_token token refresh_token" }
Type
{ CODE: "code", IDTOKEN_TOKEN: "id_token token", IDTOKEN_TOKEN_REFRESHTOKEN: "id_token token refresh_token" }
PasswordGrantConstants
Password grant parameters
PasswordGrantConstants: { password: "password", username: "username" }
Type
{ password: "password", username: "username" }
PersistentCacheKeys
Persistent cache keys MSAL which stay while user is logged in.
PersistentCacheKeys: { ACTIVE_ACCOUNT_FILTERS: "active-account-filters" }
Type
{ ACTIVE_ACCOUNT_FILTERS: "active-account-filters" }
ProtocolMode
Protocol modes supported by MSAL.
ProtocolMode: { AAD: "AAD", EAR: "EAR", OIDC: "OIDC" }
Type
{ AAD: "AAD", EAR: "EAR", OIDC: "OIDC" }
ResponseMode
allowed values for response_mode
ResponseMode: { FORM_POST: "form_post", FRAGMENT: "fragment", QUERY: "query" }
Type
{ FORM_POST: "form_post", FRAGMENT: "fragment", QUERY: "query" }
ServerResponseType
Warning
This API is now deprecated.
Use ResponseMode instead
allowed values for server response type
ServerResponseType: { FRAGMENT: "fragment", QUERY: "query" }
Type
{ FRAGMENT: "fragment", QUERY: "query" }
AuthErrorMessage
Warning
This API is now deprecated.
Use AuthErrorCodes instead
AuthErrorMessage class containing string constants used by error codes and messages.
AuthErrorMessage: { postRequestFailed: { code: string, desc: string }, unexpectedError: { code: string, desc: string } }
Type
{ postRequestFailed: { code: string, desc: string }, unexpectedError: { code: string, desc: string } }
ClientAuthErrorMessage
Warning
This API is now deprecated.
Use ClientAuthErrorCodes instead
String constants used by error codes and messages.
ClientAuthErrorMessage: { DeviceCodeExpired: { code: string, desc: string }, DeviceCodePollingCancelled: { code: string, desc: string }, DeviceCodeUnknownError: { code: string, desc: string }, NoAccountInSilentRequest: { code: string, desc: string }, appendScopeSetError: { code: string, desc: string }, authTimeNotFoundError: { code: string, desc: string }, bindingKeyNotRemovedError: { code: string, desc: string }, clientInfoDecodingError: { code: string, desc: string }, clientInfoEmptyError: { code: string, desc: string }, emptyInputScopeSetError: { code: string, desc: string }, endpointResolutionError: { code: string, desc: string }, hashNotDeserialized: { code: string, desc: string }, invalidAssertion: { code: string, desc: string }, invalidCacheEnvironment: { code: string, desc: string }, invalidCacheRecord: { code: string, desc: string }, invalidClientCredential: { code: string, desc: string }, invalidStateError: { code: string, desc: string }, keyIdMissing: { code: string, desc: string }, logoutNotSupported: { code: string, desc: string }, maxAgeTranspired: { code: string, desc: string }, missingTenantIdError: { code: string, desc: string }, multipleMatchingAccounts: { code: string, desc: string }, multipleMatchingAppMetadata: { code: string, desc: string }, multipleMatchingTokens: { code: string, desc: string }, nestedAppAuthBridgeDisabled: { code: string, desc: string }, networkError: { code: string, desc: string }, noAccountFound: { code: string, desc: string }, noAuthorizationCodeFromServer: { code: string, desc: string }, noCryptoObj: { code: string, desc: string }, noNetworkConnectivity: { code: string, desc: string }, nonceMismatchError: { code: string, desc: string }, nullOrEmptyToken: { code: string, desc: string }, platformBrokerError: { code: string, desc: string }, removeEmptyScopeError: { code: string, desc: string }, stateMismatchError: { code: string, desc: string }, stateNotFoundError: { code: string, desc: string }, tokenClaimsRequired: { code: string, desc: string }, tokenParsingError: { code: string, desc: string }, tokenRefreshRequired: { code: string, desc: string }, tokenRequestCannotBeMade: { code: string, desc: string }, unableToGetOpenidConfigError: { code: string, desc: string }, unexpectedCredentialType: { code: string, desc: string }, userCanceledError: { code: string, desc: string }, userTimeoutReached: { code: string, desc: string } }
Type
{ DeviceCodeExpired: { code: string, desc: string }, DeviceCodePollingCancelled: { code: string, desc: string }, DeviceCodeUnknownError: { code: string, desc: string }, NoAccountInSilentRequest: { code: string, desc: string }, appendScopeSetError: { code: string, desc: string }, authTimeNotFoundError: { code: string, desc: string }, bindingKeyNotRemovedError: { code: string, desc: string }, clientInfoDecodingError: { code: string, desc: string }, clientInfoEmptyError: { code: string, desc: string }, emptyInputScopeSetError: { code: string, desc: string }, endpointResolutionError: { code: string, desc: string }, hashNotDeserialized: { code: string, desc: string }, invalidAssertion: { code: string, desc: string }, invalidCacheEnvironment: { code: string, desc: string }, invalidCacheRecord: { code: string, desc: string }, invalidClientCredential: { code: string, desc: string }, invalidStateError: { code: string, desc: string }, keyIdMissing: { code: string, desc: string }, logoutNotSupported: { code: string, desc: string }, maxAgeTranspired: { code: string, desc: string }, missingTenantIdError: { code: string, desc: string }, multipleMatchingAccounts: { code: string, desc: string }, multipleMatchingAppMetadata: { code: string, desc: string }, multipleMatchingTokens: { code: string, desc: string }, nestedAppAuthBridgeDisabled: { code: string, desc: string }, networkError: { code: string, desc: string }, noAccountFound: { code: string, desc: string }, noAuthorizationCodeFromServer: { code: string, desc: string }, noCryptoObj: { code: string, desc: string }, noNetworkConnectivity: { code: string, desc: string }, nonceMismatchError: { code: string, desc: string }, nullOrEmptyToken: { code: string, desc: string }, platformBrokerError: { code: string, desc: string }, removeEmptyScopeError: { code: string, desc: string }, stateMismatchError: { code: string, desc: string }, stateNotFoundError: { code: string, desc: string }, tokenClaimsRequired: { code: string, desc: string }, tokenParsingError: { code: string, desc: string }, tokenRefreshRequired: { code: string, desc: string }, tokenRequestCannotBeMade: { code: string, desc: string }, unableToGetOpenidConfigError: { code: string, desc: string }, unexpectedCredentialType: { code: string, desc: string }, userCanceledError: { code: string, desc: string }, userTimeoutReached: { code: string, desc: string } }
ClientConfigurationErrorMessage
Warning
This API is now deprecated.
Use ClientConfigurationErrorCodes instead
ClientConfigurationErrorMessage class containing string constants used by error codes and messages.
ClientConfigurationErrorMessage: { authorityMismatch: { code: string, desc: string }, authorityUriInsecure: { code: string, desc: string }, cannotAllowPlatformBroker: { code: string, desc: string }, cannotSetOIDCOptions: { code: string, desc: string }, claimsRequestParsingError: { code: string, desc: string }, emptyScopesError: { code: string, desc: string }, invalidAuthenticationHeader: { code: string, desc: string }, invalidAuthorityMetadata: { code: string, desc: string }, invalidAuthorizePostBodyParameters: { code: string, desc: string }, invalidClaimsRequest: { code: string, desc: string }, invalidCloudDiscoveryMetadata: { code: string, desc: string }, invalidCodeChallengeMethod: { code: string, desc: string }, invalidCodeChallengeParams: { code: string, desc: string }, invalidPlatformBrokerConfiguration: { code: string, desc: string }, invalidRequestMethodForEAR: { code: string, desc: string }, logoutRequestEmptyError: { code: string, desc: string }, missingNonceAuthenticationHeader: { code: string, desc: string }, missingSshJwk: { code: string, desc: string }, missingSshKid: { code: string, desc: string }, redirectUriNotSet: { code: string, desc: string }, tokenRequestEmptyError: { code: string, desc: string }, untrustedAuthority: { code: string, desc: string }, urlEmptyError: { code: string, desc: string }, urlParseError: { code: string, desc: string } }
Type
{ authorityMismatch: { code: string, desc: string }, authorityUriInsecure: { code: string, desc: string }, cannotAllowPlatformBroker: { code: string, desc: string }, cannotSetOIDCOptions: { code: string, desc: string }, claimsRequestParsingError: { code: string, desc: string }, emptyScopesError: { code: string, desc: string }, invalidAuthenticationHeader: { code: string, desc: string }, invalidAuthorityMetadata: { code: string, desc: string }, invalidAuthorizePostBodyParameters: { code: string, desc: string }, invalidClaimsRequest: { code: string, desc: string }, invalidCloudDiscoveryMetadata: { code: string, desc: string }, invalidCodeChallengeMethod: { code: string, desc: string }, invalidCodeChallengeParams: { code: string, desc: string }, invalidPlatformBrokerConfiguration: { code: string, desc: string }, invalidRequestMethodForEAR: { code: string, desc: string }, logoutRequestEmptyError: { code: string, desc: string }, missingNonceAuthenticationHeader: { code: string, desc: string }, missingSshJwk: { code: string, desc: string }, missingSshKid: { code: string, desc: string }, redirectUriNotSet: { code: string, desc: string }, tokenRequestEmptyError: { code: string, desc: string }, untrustedAuthority: { code: string, desc: string }, urlEmptyError: { code: string, desc: string }, urlParseError: { code: string, desc: string } }
CodeChallengeMethodValues
allowed values for codeVerifier
CodeChallengeMethodValues: { PLAIN: string, S256: string }
Type
{ PLAIN: string, S256: string }
Constants
Constants: { AAD_INSTANCE_DISCOVERY_ENDPT: string, AAD_TENANT_DOMAIN_SUFFIX: string, ADFS: string, AUTHORIZATION_PENDING: string, AZURE_REGION_AUTO_DISCOVER_FLAG: string, CIAM_AUTH_URL: string, CLAIMS: string, CODE_GRANT_TYPE: string, CONSUMER_UTID: string, DEFAULT_AUTHORITY: string, DEFAULT_AUTHORITY_HOST: string, DEFAULT_COMMON_TENANT: string, DSTS: string, EMAIL_SCOPE: string, EMPTY_STRING: string, FORWARD_SLASH: string, IMDS_ENDPOINT: string, IMDS_TIMEOUT: number, IMDS_VERSION: string, INVALID_INSTANCE: string, KNOWN_PUBLIC_CLOUDS: string[], LIBRARY_NAME: string, NOT_APPLICABLE: string, NOT_AVAILABLE: string, NOT_DEFINED: string, NO_ACCOUNT: string, OFFLINE_ACCESS_SCOPE: string, OPENID_SCOPE: string, PROFILE_SCOPE: string, REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX: string, RESOURCE_DELIM: string, RT_GRANT_TYPE: string, S256_CODE_CHALLENGE_METHOD: string, SHR_NONCE_VALIDITY: number, SKU: string, URL_FORM_CONTENT_TYPE: string }
Type
{ AAD_INSTANCE_DISCOVERY_ENDPT: string, AAD_TENANT_DOMAIN_SUFFIX: string, ADFS: string, AUTHORIZATION_PENDING: string, AZURE_REGION_AUTO_DISCOVER_FLAG: string, CIAM_AUTH_URL: string, CLAIMS: string, CODE_GRANT_TYPE: string, CONSUMER_UTID: string, DEFAULT_AUTHORITY: string, DEFAULT_AUTHORITY_HOST: string, DEFAULT_COMMON_TENANT: string, DSTS: string, EMAIL_SCOPE: string, EMPTY_STRING: string, FORWARD_SLASH: string, IMDS_ENDPOINT: string, IMDS_TIMEOUT: number, IMDS_VERSION: string, INVALID_INSTANCE: string, KNOWN_PUBLIC_CLOUDS: string[], LIBRARY_NAME: string, NOT_APPLICABLE: string, NOT_AVAILABLE: string, NOT_DEFINED: string, NO_ACCOUNT: string, OFFLINE_ACCESS_SCOPE: string, OPENID_SCOPE: string, PROFILE_SCOPE: string, REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX: string, RESOURCE_DELIM: string, RT_GRANT_TYPE: string, S256_CODE_CHALLENGE_METHOD: string, SHR_NONCE_VALIDITY: number, SKU: string, URL_FORM_CONTENT_TYPE: string }
DEFAULT_CRYPTO_IMPLEMENTATION
DEFAULT_SYSTEM_OPTIONS
DEFAULT_TOKEN_RENEWAL_OFFSET_SEC
DEFAULT_TOKEN_RENEWAL_OFFSET_SEC: 300
Type
300
Errors
Errors: { CLIENT_MISMATCH_ERROR: string, INVALID_GRANT_ERROR: string }
Type
{ CLIENT_MISMATCH_ERROR: string, INVALID_GRANT_ERROR: string }
IntFields
IntFields: ReadonlySet<string>
Type
ReadonlySet<string>
InteractionRequiredAuthErrorMessage
Warning
This API is now deprecated.
Use InteractionRequiredAuthErrorCodes instead
Interaction required errors defined by the SDK
InteractionRequiredAuthErrorMessage: { bad_token: { code: string, desc: string }, interrupted_user: { code: string, desc: string }, native_account_unavailable: { code: string, desc: string }, noTokensFoundError: { code: string, desc: string } }
Type
{ bad_token: { code: string, desc: string }, interrupted_user: { code: string, desc: string }, native_account_unavailable: { code: string, desc: string }, noTokensFoundError: { code: string, desc: string } }
OIDC_DEFAULT_SCOPES
OIDC_DEFAULT_SCOPES: string[]
Type
string[]
ONE_DAY_IN_MS
ONE_DAY_IN_MS: 86400000
Type
86400000
PromptValue
we considered making this "enum" in the request instead of string, however it looks like the allowed list of prompt values kept changing over past couple of years. There are some undocumented prompt values for some internal partners too, hence the choice of generic "string" type instead of the "enum"
PromptValue: { CONSENT: string, CREATE: string, LOGIN: string, NONE: string, NO_SESSION: string, SELECT_ACCOUNT: string }
Type
{ CONSENT: string, CREATE: string, LOGIN: string, NONE: string, NO_SESSION: string, SELECT_ACCOUNT: string }
StubbedNetworkModule
THE_FAMILY_ID
THE_FAMILY_ID: "1"
Type
"1"
ThrottlingConstants
Constants related to throttling
ThrottlingConstants: { DEFAULT_MAX_THROTTLE_TIME_SECONDS: number, DEFAULT_THROTTLE_TIME_SECONDS: number, THROTTLING_PREFIX: string, X_MS_LIB_CAPABILITY_VALUE: string }
Type
{ DEFAULT_MAX_THROTTLE_TIME_SECONDS: number, DEFAULT_THROTTLE_TIME_SECONDS: number, THROTTLING_PREFIX: string, X_MS_LIB_CAPABILITY_VALUE: string }
version
version: "15.16.0"
Type
"15.16.0"