@azure/msal-browser 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. |
BrowserAuthError |
Browser library error class thrown by the MSAL.js library for SPAs |
BrowserConfigurationAuthError |
Browser library error class thrown by the MSAL.js library for SPAs |
BrowserPerformanceClient | |
BrowserPerformanceMeasurement | |
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. |
EventHandler | |
EventMessageUtils | |
InteractionRequiredAuthError |
Error thrown when user interaction is required. |
LocalStorage | |
Logger |
Class which facilitates logging of messages to a specific place. |
MemoryStorage | |
NavigationClient | |
PublicClientApplication |
The PublicClientApplication class is the object exposed by the library to perform authentication and authorization functions in Single Page Applications to obtain JWT tokens as described in the OAuth 2.0 Authorization Code Flow with PKCE specification. |
PublicClientNext |
PublicClientNext is an early look at the planned implementation of PublicClientApplication in the next major version of MSAL.js. It contains support for multiple API implementations based on the runtime environment that it is running in. The goals of these changes are to provide a clean separation of behavior between different operating contexts (Nested App Auth, Platform Brokers, Plain old Browser, etc.) while still providing a consistent API surface for developers. Please use PublicClientApplication for any prod/real-world scenarios. Note: PublicClientNext is experimental and subject to breaking changes without following semver |
ServerError |
Error thrown when there is an error with the server code, for example, unavailability. |
SessionStorage | |
SignedHttpRequest | |
StubPerformanceClient | |
UrlString |
Url object class which can perform various transformations on url strings. |
AuthFlowActionRequiredStateBase |
Base class for the action requried state in an authentication flow. |
AuthFlowStateBase |
Base class for the state of an authentication flow. |
CustomAuthAccountData | |
CustomAuthApiError |
Custom Auth API error. |
CustomAuthError | |
CustomAuthPublicClientApplication | |
GetAccessTokenResult | |
GetAccountError |
The error class for get account errors. |
GetAccountResult | |
GetCurrentAccountAccessTokenError |
The error class for getting the current account access token errors. |
HttpError | |
InvalidArgumentError | |
InvalidConfigurationError | |
MethodNotImplementedError | |
MsalCustomAuthError | |
NoCachedAccountFoundError | |
ParsedUrlError | |
ResetPasswordCodeRequiredState |
Base class for the action requried state in an authentication flow. |
ResetPasswordCompletedState |
Represents the state that indicates the successful completion of a password reset operation. |
ResetPasswordError | |
ResetPasswordFailedState |
State of a reset password operation that has failed. |
ResetPasswordPasswordRequiredState |
Base class for the action requried state in an authentication flow. |
ResetPasswordResendCodeError | |
ResetPasswordResendCodeResult | |
ResetPasswordStartResult | |
ResetPasswordState |
Base class for the action requried state in an authentication flow. |
ResetPasswordSubmitCodeError | |
ResetPasswordSubmitCodeResult | |
ResetPasswordSubmitPasswordError | |
ResetPasswordSubmitPasswordResult | |
SignInCodeRequiredState |
Base class for the action requried state in an authentication flow. |
SignInCompletedState |
Represents the completed state of the sign-in operation. This state indicates that the sign-in process has finished successfully. |
SignInContinuationState |
Base class for the action requried state in an authentication flow. |
SignInError | |
SignInFailedState |
Represents the state of a sign-in operation that has been failed. |
SignInPasswordRequiredState |
Base class for the action requried state in an authentication flow. |
SignInResendCodeError | |
SignInResendCodeResult | |
SignInResult | |
SignInState |
Base class for the action requried state in an authentication flow. |
SignInSubmitCodeError | |
SignInSubmitCodeResult | |
SignInSubmitPasswordError | |
SignInSubmitPasswordResult | |
SignOutError |
The error class for sign-out errors. |
SignOutResult | |
SignUpAttributesRequiredState |
Base class for the action requried state in an authentication flow. |
SignUpCodeRequiredState |
Base class for the action requried state in an authentication flow. |
SignUpCompletedState |
Represents the state of a sign-up operation that has been completed scuccessfully. |
SignUpError | |
SignUpFailedState |
Represents the state of a sign-up operation that has failed. |
SignUpPasswordRequiredState |
Base class for the action requried state in an authentication flow. |
SignUpResendCodeError | |
SignUpResendCodeResult | |
SignUpResult | |
SignUpState |
Base class for the action requried state in an authentication flow. |
SignUpSubmitAttributesError | |
SignUpSubmitAttributesResult | |
SignUpSubmitCodeError | |
SignUpSubmitCodeResult | |
SignUpSubmitPasswordError | |
SignUpSubmitPasswordResult | |
UnexpectedError | |
UnsupportedEnvironmentError | |
UserAccountAttributeError | |
UserAlreadySignedInError |
Interfaces
IController | |
ILoggerCallback | |
INavigationClient | |
INetworkModule |
Client network interface to send backend requests. |
IPerformanceClient | |
IPublicClientApplication | |
ITokenCache | |
IWindowStorage | |
ICustomAuthPublicClientApplication |
Type Aliases
AccountInfo |
Account object with the following signature:
|
ApiId | |
AuthenticationResult | |
AuthenticationScheme | |
AuthorizationCodeRequest | |
AuthorizationUrlRequest |
This type is deprecated and will be removed on the next major version update |
AzureCloudInstance | |
AzureCloudOptions |
AzureCloudInstance specific options
|
BrokerConnectionEvent |
Payload for the BrokerConnectionEstablished event |
BrowserAuthOptions |
Use this to configure the auth options in the Configuration object |
BrowserCacheLocation | |
BrowserSystemOptions | |
BrowserTelemetryOptions |
Telemetry Options |
CacheLookupPolicy | |
CacheOptions |
Use this to configure the below cache configuration options: |
ClearCacheRequest |
ClearCacheRequest
|
Configuration |
This object allows you to configure important elements of MSAL functionality and is passed into the constructor of PublicClientApplication |
EndSessionPopupRequest |
EndSessionPopupRequest
|
EndSessionRequest |
EndSessionRequest
|
EventCallbackFunction | |
EventError | |
EventMessage | |
EventPayload | |
EventType | |
ExternalTokenResponse |
Response object used for loading external tokens to cache.
|
IdTokenClaims |
Type which describes Id Token claims known by MSAL. |
InProgressPerformanceEvent | |
InitializeApplicationRequest |
InitializeApplicationRequest: Request object passed by user to initialize application
|
InteractionStatus | |
JsonWebTokenTypes | |
LoadTokenOptions | |
NavigationOptions |
Additional information passed to the navigateInternal and navigateExternal functions |
NetworkRequestOptions |
Options allowed by network request APIs. |
NetworkResponse | |
PerformanceCallbackFunction | |
PerformanceEvent |
Performance measurement taken by the library, including metadata about the request and application. |
PopupEvent | |
PopupPosition | |
PopupRequest |
PopupRequest: Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow) with a popup window.
|
PopupSize | |
PopupWindowAttributes |
Popup configurations for setting dimensions and position of popup window |
ProtocolMode | |
RedirectRequest |
RedirectRequest: Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow) with a full page redirect.
|
ServerResponseType | |
SignedHttpRequestOptions | |
SilentRequest |
SilentRequest: Request object passed by user to retrieve tokens from the cache, renew an expired token with a refresh token, or retrieve a code (first leg of authorization code grant flow) in a hidden iframe.
|
SsoSilentRequest |
Request object passed by user to ssoSilent to retrieve a Code from the server (first leg of authorization code grant flow)
|
TenantProfile |
Account details that vary across tenants for the same user |
WrapperSKU | |
AccessTokenRetrievalInputs | |
AccountRetrievalInputs | |
CustomAuthConfiguration | |
GetAccessTokenResultState |
The possible states for the GetAccessTokenResult. This includes:
|
GetAccountResultState |
The possible states for the GetAccountResult. This includes:
|
ResetPasswordInputs | |
ResetPasswordResendCodeResultState |
The possible states for the ResetPasswordResendCodeResult. This includes:
|
ResetPasswordStartResultState |
The possible states for the ResetPasswordStartResult. This includes:
|
ResetPasswordSubmitCodeResultState |
The possible states for the ResetPasswordSubmitCodeResult. This includes:
|
ResetPasswordSubmitPasswordResultState |
The possible states for the ResetPasswordSubmitPasswordResult. This includes:
|
SignInInputs | |
SignInResendCodeResultState |
The possible states for the SignInResendCodeResult. This includes:
|
SignInResultState |
The possible states for the SignInResult. This includes:
|
SignInSubmitCredentialResultState |
The possible states of the SignInSubmitCredentialResult. This includes:
|
SignInWithContinuationTokenInputs | |
SignOutResultState |
The possible states for the SignOutResult. This includes:
|
SignUpInputs | |
SignUpResendCodeResultState |
The possible states for the SignUpResendCodeResult. This includes:
|
SignUpResultState |
The possible states for the SignUpResult. This includes:
|
SignUpSubmitAttributesResultState |
The possible states for the SignUpSubmitAttributesResult. This includes:
|
SignUpSubmitCodeResultState |
The possible states for the SignUpSubmitCodeResult. This includes:
|
SignUpSubmitPasswordResultState |
The possible states for the SignUpSubmitPasswordResult. This includes:
|
UserAccountAttributes |
Enums
InteractionType | |
PerformanceEvents |
Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient. |
LogLevel |
Log message level. |
Functions
create |
creates NestedAppAuthController and passes it to the PublicClientApplication, falls back to StandardController if NestedAppAuthController is not available |
create |
creates PublicClientApplication using StandardController |
is |
Checks if the platform broker is available in the current environment. |
Function Details
createNestablePublicClientApplication(Configuration)
creates NestedAppAuthController and passes it to the PublicClientApplication, falls back to StandardController if NestedAppAuthController is not available
function createNestablePublicClientApplication(configuration: Configuration): Promise<IPublicClientApplication>
Parameters
- configuration
- Configuration
Returns
Promise<IPublicClientApplication>
IPublicClientApplication
createStandardPublicClientApplication(Configuration)
creates PublicClientApplication using StandardController
function createStandardPublicClientApplication(configuration: Configuration): Promise<IPublicClientApplication>
Parameters
- configuration
- Configuration
Returns
Promise<IPublicClientApplication>
IPublicClientApplication
isPlatformBrokerAvailable(LoggerOptions, IPerformanceClient, string)
Checks if the platform broker is available in the current environment.
function isPlatformBrokerAvailable(loggerOptions?: LoggerOptions, perfClient?: IPerformanceClient, correlationId?: string): Promise<boolean>
Parameters
- loggerOptions
- @azure/msal-common.LoggerOptions
- perfClient
- IPerformanceClient
- correlationId
-
string
Returns
Promise<boolean>