Constructors
constructor
-
Parameters
-
msalConfig: NodeAuthOptions
-
persistenceEnabled: boolean
-
-
Methods
acquireTokenByClientCredential
- acquireTokenByClientCredential(request: ClientCredentialRequest): Promise<AuthenticationResult>
-
Parameters
-
request: ClientCredentialRequest
Returns Promise<AuthenticationResult>
acquireTokenByCode
- acquireTokenByCode(request: AuthorizationCodeRequest): Promise<AuthenticationResult>
-
Parameters
-
request: AuthorizationCodeRequest
Returns Promise<AuthenticationResult>
acquireTokenByDeviceCode
- acquireTokenByDeviceCode(request: DeviceCodeRequest): Promise<AuthenticationResult>
-
Parameters
-
request: DeviceCodeRequest
Returns Promise<AuthenticationResult>
acquireTokenFromCache
- acquireTokenFromCache(scopes: string[]): Promise<AccessToken | null>
-
Parameters
Returns Promise<AccessToken | null>
getAuthCodeUrl
- getAuthCodeUrl(request: { redirectUri: string; scopes: string[] }): Promise<string>
-
Parameters
-
request: { redirectUri: string; scopes: string[] }
-
redirectUri: string
-
scopes: string[]
Returns Promise<string>
prepareClientApplications
- prepareClientApplications(): any