Oauth2Provider
Reference doc for the `Oauth2Provider`.
Use this to connect authentication providers that support OAuth 2.0.
Methods
Oauth2Provider
Oauth2Config
-
clientID
string
-
clientSecret
string
-
endpoint
Object
-
authorization
string
-
token
string
-
-
query?
Record
<
string
,string
>
-
scopes
string
[]
Oauth2Config.clientID
Type string
The client ID.
This is just a string to identify your app.
Oauth2Config.clientSecret
Type string
The client secret.
This is a private key that’s used to authenticate your app. It should be kept secret.
Oauth2Config.endpoint
Type Object
The URLs of the authorization and token endpoints.
Oauth2Config.endpoint.authorization
Type string
The URL of the authorization endpoint.
Oauth2Config.endpoint.token
Type string
The URL of the token endpoint.
Oauth2Config.query?
Type Record
<
string
, string
>
Any additional parameters that you want to pass to the authorization endpoint.
Oauth2Config.scopes
Type string
[]
A list of OAuth scopes that you want to request.