Class OAuthSettings
Settings for an OAuth 2.0 client application.
class OAuthSettings
;
One client application may hold multiple settings objects when using various authentication servers.
Instances of this class must be immutable.
Constructors
Name | Description |
---|---|
this
(config)
|
Construct OAuthSettings from JSON object. |
this
(provider, clientId, clientSecret, redirectUri)
|
Construct OAuthSettings providing settings directly. |
Fields
Name | Type | Description |
---|---|---|
clientId
|
string | |
clientSecret
|
string | |
provider
|
OAuthProvider | |
redirectUri
|
string |
Methods
Name | Description |
---|---|
clientSession
(scopes)
|
Obtain a new session using client credentials. |
userAuthUri
(httpSession, extraParams, scopes)
|
User login helper method. |
userSession
(httpSession, state, authorizationCode)
|
User login helper method, complementary to userAuthUri .
|
userSession
(username, password, scopes)
|
Start a session on behalf of the resource owner, using username and password for authentication. |