OAuth (Open Authorization) allows users to sign in to your application using their existing accounts from providers like Google, Facebook, and Microsoft.
| Provider | Configuration Setting | Setup Guide |
|---|---|---|
EnableGoogleAuth |
Google OAuth Setup | |
EnableFacebookAuth |
Facebook OAuth Setup | |
| Microsoft | EnableMicrosoftAuth |
Microsoft OAuth Setup |
OAuth settings are stored in appsettings.json:
{
"Authentication": {
"EnableGoogleAuth": false,
"Google": {
"ClientId": "",
"ClientSecret": ""
},
"EnableFacebookAuth": false,
"Facebook": {
"AppId": "",
"AppSecret": ""
},
"EnableMicrosoftAuth": false,
"Microsoft": {
"ClientId": "",
"ClientSecret": ""
}
}
}