OAuthSettings.this - multiple declarations

Function OAuthSettings.this

Construct OAuthSettings from JSON object.

this (
  in const(vibe.data.json.Json) config
) @safe immutable;

The following keys must be in the JSON object:

Key Type Description
provider string or object The registered name of the authentication provider to be used or an object with the following keys:
Key Type Description
name string (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.
authUri string Authentication uri
tokenUri string Token uri
clientId string The client ID to use in client authentication for the given provider.
clientSecret string The client secret to use in client authentication for the given provider.
redirectUri string The uri identifying this application, the user agent will be redirected to this uri (with some query parameters added) after authorization.

Function OAuthSettings.this

Construct OAuthSettings providing settings directly.

this (
  string provider,
  string clientId,
  string clientSecret,
  string redirectUri
) nothrow @safe immutable;

Parameters

NameDescription
provider The registered name of the authentication provider.
clientId The client ID to use in client authentication for provider.
clientSecret The client secret to use in client authentication for provider.
redirectUri The uri identifying this application, the user agent will be redirected to this uri (with some query parameters added) after authorization.