IPublicClientApplication interface

Podrobnosti metody

acquireTokenByCode(AuthorizationCodeRequest)

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

Parametry

Návraty

acquireTokenPopup(PopupRequest)

function acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult>

Parametry

request
PopupRequest

Návraty

acquireTokenRedirect(RedirectRequest)

function acquireTokenRedirect(request: RedirectRequest): Promise<void>

Parametry

request
RedirectRequest

Návraty

Promise<void>

acquireTokenSilent(SilentRequest)

function acquireTokenSilent(silentRequest: SilentRequest): Promise<AuthenticationResult>

Parametry

silentRequest
SilentRequest

Návraty

addEventCallback(EventCallbackFunction, EventType[])

function addEventCallback(callback: EventCallbackFunction, eventTypes?: EventType[]): null | string

Parametry

eventTypes

EventType[]

Návraty

null | string

addPerformanceCallback(PerformanceCallbackFunction)

function addPerformanceCallback(callback: PerformanceCallbackFunction): string

Parametry

Návraty

string

clearCache(ClearCacheRequest)

function clearCache(logoutRequest?: ClearCacheRequest): Promise<void>

Parametry

logoutRequest
ClearCacheRequest

Návraty

Promise<void>

disableAccountStorageEvents()

function disableAccountStorageEvents()

enableAccountStorageEvents()

function enableAccountStorageEvents()

getAccount(AccountFilter)

function getAccount(accountFilter: AccountFilter): null | AccountInfo

Parametry

accountFilter
AccountFilter

Návraty

null | AccountInfo

getAccountByHomeId(string)

function getAccountByHomeId(homeAccountId: string): null | AccountInfo

Parametry

homeAccountId

string

Návraty

null | AccountInfo

getAccountByLocalId(string)

function getAccountByLocalId(localId: string): null | AccountInfo

Parametry

localId

string

Návraty

null | AccountInfo

getAccountByUsername(string)

function getAccountByUsername(userName: string): null | AccountInfo

Parametry

userName

string

Návraty

null | AccountInfo

getActiveAccount()

function getActiveAccount(): null | AccountInfo

Návraty

null | AccountInfo

getAllAccounts()

function getAllAccounts(): AccountInfo[]

Návraty

getLogger()

function getLogger(): Logger

Návraty

getTokenCache()

function getTokenCache(): ITokenCache

Návraty

handleRedirectPromise(string)

function handleRedirectPromise(hash?: string): Promise<null | AuthenticationResult>

Parametry

hash

string

Návraty

Promise<null | AuthenticationResult>

hydrateCache(AuthenticationResult, PopupRequest | RedirectRequest | SilentRequest | Partial<Omit<CommonAuthorizationUrlRequest, "responseMode" | "earJwk" | "codeChallenge" | "codeChallengeMethod" | "requestedClaimsHash" | "platformBroker">>)

function hydrateCache(result: AuthenticationResult, request: PopupRequest | RedirectRequest | SilentRequest | Partial<Omit<CommonAuthorizationUrlRequest, "responseMode" | "earJwk" | "codeChallenge" | "codeChallengeMethod" | "requestedClaimsHash" | "platformBroker">>): Promise<void>

Parametry

request

PopupRequest | RedirectRequest | SilentRequest | Partial<Omit<CommonAuthorizationUrlRequest, "responseMode" | "earJwk" | "codeChallenge" | "codeChallengeMethod" | "requestedClaimsHash" | "platformBroker">>

Návraty

Promise<void>

initialize(InitializeApplicationRequest)

function initialize(request?: InitializeApplicationRequest): Promise<void>

Parametry

Návraty

Promise<void>

initializeWrapperLibrary(WrapperSKU, string)

function initializeWrapperLibrary(sku: WrapperSKU, version: string)

Parametry

version

string

loginPopup(PopupRequest)

function loginPopup(request?: PopupRequest): Promise<AuthenticationResult>

Parametry

request
PopupRequest

Návraty

loginRedirect(RedirectRequest)

function loginRedirect(request?: RedirectRequest): Promise<void>

Parametry

request
RedirectRequest

Návraty

Promise<void>

logout(EndSessionRequest)

function logout(logoutRequest?: EndSessionRequest): Promise<void>

Parametry

logoutRequest
EndSessionRequest

Návraty

Promise<void>

logoutPopup(EndSessionPopupRequest)

function logoutPopup(logoutRequest?: EndSessionPopupRequest): Promise<void>

Parametry

logoutRequest
EndSessionPopupRequest

Návraty

Promise<void>

logoutRedirect(EndSessionRequest)

function logoutRedirect(logoutRequest?: EndSessionRequest): Promise<void>

Parametry

logoutRequest
EndSessionRequest

Návraty

Promise<void>

removeEventCallback(string)

function removeEventCallback(callbackId: string)

Parametry

callbackId

string

removePerformanceCallback(string)

function removePerformanceCallback(callbackId: string): boolean

Parametry

callbackId

string

Návraty

boolean

setActiveAccount(null | AccountInfo)

function setActiveAccount(account: null | AccountInfo)

Parametry

account

null | AccountInfo

setLogger(Logger)

function setLogger(logger: Logger)

Parametry

logger
Logger

setNavigationClient(INavigationClient)

function setNavigationClient(navigationClient: INavigationClient)

Parametry

navigationClient
INavigationClient

ssoSilent(Partial<Omit<CommonAuthorizationUrlRequest, "responseMode" | "earJwk" | "codeChallenge" | "codeChallengeMethod" | "requestedClaimsHash" | "platformBroker">>)

function ssoSilent(request: Partial<Omit<CommonAuthorizationUrlRequest, "responseMode" | "earJwk" | "codeChallenge" | "codeChallengeMethod" | "requestedClaimsHash" | "platformBroker">>): Promise<AuthenticationResult>

Parametry

request

Partial<Omit<CommonAuthorizationUrlRequest, "responseMode" | "earJwk" | "codeChallenge" | "codeChallengeMethod" | "requestedClaimsHash" | "platformBroker">>

Návraty