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

NameDescription
this (config) Construct OAuthSettings from JSON object.
this (provider, clientId, clientSecret, redirectUri) Construct OAuthSettings providing settings directly.

Fields

NameTypeDescription
clientId string
clientSecret string
provider OAuthProvider
redirectUri string

Methods

NameDescription
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.