Bewerken

Delen via


MsalService class

Constructors

MsalService(IPublicClientApplication, Location)

Properties

instance

Methods

acquireTokenPopup(PopupRequest)
acquireTokenRedirect(RedirectRequest)
acquireTokenSilent(SilentRequest)
getLogger()

Gets logger for msal-angular. If no logger set, returns logger instance created with same options as msal-browser

handleRedirectObservable(string)
initialize()
loginPopup(PopupRequest)
loginRedirect(RedirectRequest)
logout(EndSessionRequest)
logoutPopup(EndSessionPopupRequest)
logoutRedirect(EndSessionRequest)
setLogger(Logger)
ssoSilent(SsoSilentRequest)

Constructor Details

MsalService(IPublicClientApplication, Location)

new MsalService(instance: IPublicClientApplication, location: Location)

Parameters

instance

IPublicClientApplication

location

Location

Property Details

instance

instance: IPublicClientApplication

Property Value

IPublicClientApplication

Method Details

acquireTokenPopup(PopupRequest)

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

Parameters

request

PopupRequest

Returns

Observable<AuthenticationResult>

acquireTokenRedirect(RedirectRequest)

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

Parameters

request

RedirectRequest

Returns

Observable<void>

acquireTokenSilent(SilentRequest)

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

Parameters

silentRequest

SilentRequest

Returns

Observable<AuthenticationResult>

getLogger()

Gets logger for msal-angular. If no logger set, returns logger instance created with same options as msal-browser

function getLogger(): Logger

Returns

Logger

handleRedirectObservable(string)

function handleRedirectObservable(hash?: string): Observable<AuthenticationResult>

Parameters

hash

string

Returns

Observable<AuthenticationResult>

initialize()

function initialize(): Observable<void>

Returns

Observable<void>

loginPopup(PopupRequest)

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

Parameters

request

PopupRequest

Returns

Observable<AuthenticationResult>

loginRedirect(RedirectRequest)

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

Parameters

request

RedirectRequest

Returns

Observable<void>

logout(EndSessionRequest)

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

Parameters

logoutRequest

EndSessionRequest

Returns

Observable<void>

logoutPopup(EndSessionPopupRequest)

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

Parameters

logoutRequest

EndSessionPopupRequest

Returns

Observable<void>

logoutRedirect(EndSessionRequest)

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

Parameters

logoutRequest

EndSessionRequest

Returns

Observable<void>

setLogger(Logger)

function setLogger(logger: Logger)

Parameters

logger

Logger

ssoSilent(SsoSilentRequest)

function ssoSilent(request: SsoSilentRequest): Observable<AuthenticationResult>

Parameters

request

SsoSilentRequest

Returns

Observable<AuthenticationResult>