Function StackAuth
New OAuth Provider
Initializes and configures an authentication provider
Configuration
- Provider Type: (Required) – Currently support one of (Amazon, Google, Facebook, Github, Twitch, and Slack)
- Client Id: (Required) – Client id of the OAuth provider.
- Client Secret: (Required) – Client secret of the OAuth provider.
- Redirect Uri: (Required) – The redirect callback url
- Scopes: (Required) – Requested scopes based on the provider type.
Outputs
Returns a *OAuthProvider
instance, which should be registered once with a unique name.
This name can later be referenced when using functions like Get Access Token
.