new WebAuth()
Helper to perform Auth against Azure AD login page
It will use /authorize
endpoint of the Authorization Server (AS)
with Code Grant
Methods
(async, static) authorize(options) → {Promise.<(BaseTokenItem|AccessTokenItem)>}
Starts the AuthN/AuthZ transaction against the AS in the in-app browser.
In iOS it will use SFSafariViewController
and in Android Chrome Custom Tabs
.
- Source:
- See:
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
parameters to send
|
Returns:
- Type:
-
Promise.<(BaseTokenItem|AccessTokenItem)>
(static) clearSession(options) → {Promise}
Removes Azure session
- Source:
Parameters:
Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
parameters to send
|
Returns:
- Type:
-
Promise