OAuthSettings.this

Construct OAuthSettings from JSON object.

The following keys must be in the JSON object:

KeyTypeDescription
providerstring or objectThe registered name of the authentication provider to be used or an object with the following keys:
KeyTypeDescription
namestring(Optional) Name for this provider. If a name is given and automatic registration is enabled, the provider can be referenced by just it's name in subsequent calls.
authUristringAuthentication uri
tokenUristringToken uri
clientIdstringThe client ID to use in client authentication for the given provider.
clientSecretstringThe client secret to use in client authentication for the given provider.
redirectUristringThe uri identifying this application, the user agent will be redirected to this uri (with some query parameters added) after authorization.
  1. this(Json config)
    class OAuthSettings
    immutable
    this
    (
    in Json config
    )
  2. this(string provider, string clientId, string clientSecret, string redirectUri)

Meta