MicrosoftProvider
Reference doc for the `MicrosoftProvider`.
Use this provider to authenticate with Microsoft. Supports both OAuth2 and OIDC.
Using OAuth
Using OIDC
Methods
MicrosoftOidcProvider
Parameters
The config for the provider.config
MicrosoftOidcConfig
Returns Provider
Create a Microsoft OIDC provider.
This is useful if you just want to verify the user’s email address.
MicrosoftProvider
Parameters
The config for the provider.config
MicrosoftConfig
Returns Provider
Create a Microsoft OAuth2 provider.
MicrosoftConfig
-
clientID
string
-
clientSecret
string
-
query?
Record
<
string
,string
>
-
scopes
string
[]
-
tenant
string
MicrosoftConfig.clientID
Type string
The client ID.
This is just a string to identify your app.
MicrosoftConfig.clientSecret
Type string
The client secret.
This is a private key that’s used to authenticate your app. It should be kept secret.
MicrosoftConfig.query?
Type Record
<
string
, string
>
Any additional parameters that you want to pass to the authorization endpoint.
MicrosoftConfig.scopes
Type string
[]
A list of OAuth scopes that you want to request.
MicrosoftConfig.tenant
Type string
The tenant ID of the Microsoft account.
This is usually the same as the client ID.
MicrosoftOidcConfig
MicrosoftOidcConfig.clientID
Type string
The client ID.
This is just a string to identify your app.
MicrosoftOidcConfig.query?
Type Record
<
string
, string
>
Any additional parameters that you want to pass to the authorization endpoint.
MicrosoftOidcConfig.scopes?
Type string
[]
A list of OIDC scopes that you want to request.