RedirectHandler class
- Extends
Constructors
Redirect |
Methods
handle |
Handle authorization code response in the window. |
initiate |
Redirects window to given URL. |
Inherited Methods
handle |
Process auth code response from AAD |
Constructor Details
RedirectHandler(AuthorizationCodeClient, BrowserCacheManager, CommonAuthorizationCodeRequest, Logger, ICrypto)
new RedirectHandler(authCodeModule: AuthorizationCodeClient, storageImpl: BrowserCacheManager, authCodeRequest: CommonAuthorizationCodeRequest, logger: Logger, browserCrypto: ICrypto)
Parameters
- authCodeModule
-
AuthorizationCodeClient
- storageImpl
- BrowserCacheManager
- authCodeRequest
-
CommonAuthorizationCodeRequest
- logger
-
Logger
- browserCrypto
-
ICrypto
Method Details
handleCodeResponseFromHash(string, string, Authority, INetworkModule)
Handle authorization code response in the window.
function handleCodeResponseFromHash(locationHash: string, state: string, authority: Authority, networkModule: INetworkModule): Promise<AuthenticationResult>
Parameters
- locationHash
-
string
- state
-
string
- authority
-
Authority
- networkModule
-
INetworkModule
Returns
Promise<AuthenticationResult>
initiateAuthRequest(string, RedirectParams)
Redirects window to given URL.
function initiateAuthRequest(requestUrl: string, params: RedirectParams): Promise<void>
Parameters
- requestUrl
-
string
- params
- RedirectParams
Returns
Promise<void>
Inherited Method Details
handleCodeResponseFromServer(AuthorizationCodePayload, string, Authority, INetworkModule, boolean)
Process auth code response from AAD
function handleCodeResponseFromServer(authCodeResponse: AuthorizationCodePayload, state: string, authority: Authority, networkModule: INetworkModule, validateNonce?: boolean): Promise<AuthenticationResult>
Parameters
- authCodeResponse
-
AuthorizationCodePayload
- state
-
string
- authority
-
Authority
- networkModule
-
INetworkModule
- validateNonce
-
boolean
Returns
Promise<AuthenticationResult>
Inherited From InteractionHandler.handleCodeResponseFromServer