Bearbeiten

Share via


SilentAuthCodeClient class

Extends

Constructors

SilentAuthCodeClient(BrowserConfiguration, BrowserCacheManager, ICrypto, Logger, EventHandler, INavigationClient, ApiId, IPerformanceClient, NativeMessageHandler, string)

Methods

acquireToken(AuthorizationCodeRequest)

Acquires a token silently by redeeming an authorization code against the /token endpoint

logout()

Currently Unsupported

Inherited Methods

getRedirectUri(string)

Use to get the redirect uri configured in MSAL or null.

Constructor Details

SilentAuthCodeClient(BrowserConfiguration, BrowserCacheManager, ICrypto, Logger, EventHandler, INavigationClient, ApiId, IPerformanceClient, NativeMessageHandler, string)

new SilentAuthCodeClient(config: BrowserConfiguration, storageImpl: BrowserCacheManager, browserCrypto: ICrypto, logger: Logger, eventHandler: EventHandler, navigationClient: INavigationClient, apiId: ApiId, performanceClient: IPerformanceClient, nativeMessageHandler?: NativeMessageHandler, correlationId?: string)

Parameters

storageImpl
BrowserCacheManager
browserCrypto

ICrypto

logger

Logger

eventHandler
EventHandler
navigationClient
INavigationClient
apiId
ApiId
performanceClient

IPerformanceClient

nativeMessageHandler
NativeMessageHandler
correlationId

string

Method Details

acquireToken(AuthorizationCodeRequest)

Acquires a token silently by redeeming an authorization code against the /token endpoint

function acquireToken(request: AuthorizationCodeRequest): Promise<AuthenticationResult>

Parameters

Returns

Promise<AuthenticationResult>

logout()

Currently Unsupported

function logout(): Promise<void>

Returns

Promise<void>

Inherited Method Details

getRedirectUri(string)

Use to get the redirect uri configured in MSAL or null.

function getRedirectUri(requestRedirectUri?: string): string

Parameters

requestRedirectUri

string

Returns

string

Redirect URL

Inherited From BaseInteractionClient.getRedirectUri