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:
| ||||||||||||
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
Name | Description |
---|---|
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. |