@azure/msal package
Classes
Account |
accountIdentifier combination of idToken.uid and idToken.utid homeAccountIdentifier combination of clientInfo.uid and clientInfo.utid userName idToken.preferred_username name idToken.name idToken idToken sid idToken.sid - session identifier environment idtoken.issuer (the authority that issues the token) |
Logger | |
ScopeSet | |
UserAgentApplication |
UserAgentApplication class Object Instance that the developer can use to make loginXX OR acquireTokenXX functions |
AuthorityFactory | |
TrustedAuthority | |
AuthError |
General error class thrown by the MSAL.js library. |
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 .js library. |
InteractionRequiredAuthError |
Error thrown when the user is required to perform an interactive token request. |
ServerError |
Error thrown when there is an error with the server code, for example, unavailability. |
ApiEvent | |
DefaultEvent | |
HttpEvent | |
TelemetryEvent | |
TelemetryManager | |
WindowUtils |
Interfaces
ILoggerCallback | |
IClientConfigurationErrorMessage | |
CompletedEvents | |
EventCount | |
EventCountByCorrelationId | |
InProgressEvents | |
NetworkInformation | |
TelemetryConfig | |
TelemetryPlatform |
Type Aliases
AuthResponse | |
AuthenticationParameters | |
AuthOptions | |
CacheLocation |
Cache location options supported by MSAL are:
|
CacheOptions |
Use this to configure the below cache configuration options:
|
Configuration |
Use the configuration object to configure MSAL and initialize the UserAgentApplication. This object allows you to configure important elements of MSAL functionality:
|
FrameworkOptions |
App/Framework specific environment support
|
SystemOptions |
Library Specific Options
|
TelemetryOptions |
Telemetry Config Options
|
StringDict |
Key-Value type to support queryParams, extraQueryParams and claims |
authResponseCallback |
A type alias for an authResponseCallback function. <xref:(authResponseCallback%3Atype)> |
errorReceivedCallback |
A type alias for a errorReceivedCallback function. <xref:(errorReceivedCallback%3Atype)> |
tokenReceivedCallback |
A type alias for a tokenReceivedCallback function. <xref:(tokenReceivedCallback%3Atype)> |
XhrResponse | |
OpenIdConfiguration |
Response type for openid-configuration endpoints |
TelemetryEmitter | |
InteractionType | |
LibraryStateObject |
Enums
LogLevel | |
API_CODE | |
API_EVENT_IDENTIFIER | |
ErrorCacheKeys | |
PersistentCacheKeys | |
ServerHashParamKeys |
Keys in the hashParams |
Functions
Function Details
buildResponseStateOnly(string)
function buildResponseStateOnly(state: string): AuthResponse
Parameters
- state
-
string
Returns
validateClaimsRequest(AuthenticationParameters)
function validateClaimsRequest(request: AuthenticationParameters)
Parameters
- request
- AuthenticationParameters
buildConfiguration({ auth: { authority?: string, authorityMetadata?: string, clientId: string, knownAuthorities?: Array<string>, navigateToLoginRequestUrl?: boolean, postLogoutRedirectUri?: string | () => string, redirectUri?: string | () => string, validateAuthority?: boolean }, cache: { cacheLocation?: CacheLocation, storeAuthStateInCookie?: boolean }, framework: { isAngular?: boolean, protectedResourceMap?: Map<string, Array<string>>, unprotectedResources?: Array<string> }, system: { loadFrameTimeout?: number, logger?: Logger, navigateFrameWait?: number, telemetry?: TelemetryOptions, tokenRenewalOffsetSeconds?: number } })
MSAL function that sets the default options when not explicitly configured from app developer
function buildConfiguration(__namedParameters: { auth: { authority?: string, authorityMetadata?: string, clientId: string, knownAuthorities?: Array<string>, navigateToLoginRequestUrl?: boolean, postLogoutRedirectUri?: string | () => string, redirectUri?: string | () => string, validateAuthority?: boolean }, cache: { cacheLocation?: CacheLocation, storeAuthStateInCookie?: boolean }, framework: { isAngular?: boolean, protectedResourceMap?: Map<string, Array<string>>, unprotectedResources?: Array<string> }, system: { loadFrameTimeout?: number, logger?: Logger, navigateFrameWait?: number, telemetry?: TelemetryOptions, tokenRenewalOffsetSeconds?: number } }): Configuration
Parameters
- __namedParameters
-
{ auth: { authority?: string, authorityMetadata?: string, clientId: string, knownAuthorities?: Array<string>, navigateToLoginRequestUrl?: boolean, postLogoutRedirectUri?: string | () => string, redirectUri?: string | () => string, validateAuthority?: boolean }, cache: { cacheLocation?: CacheLocation, storeAuthStateInCookie?: boolean }, framework: { isAngular?: boolean, protectedResourceMap?: Map<string, Array<string>>, unprotectedResources?: Array<string> }, system: { loadFrameTimeout?: number, logger?: Logger, navigateFrameWait?: number, telemetry?: TelemetryOptions, tokenRenewalOffsetSeconds?: number } }
Returns
TConfiguration object
libraryVersion()
MSAL JS Library Version
function libraryVersion(): string
Returns
string