10 lines
449 B
Markdown
10 lines
449 B
Markdown
|
When the app requires multiple providers, chain the provider extension methods behind [AddAuthentication](/dotnet/api/microsoft.extensions.dependencyinjection.authenticationservicecollectionextensions.addauthentication):
|
||
|
|
||
|
```csharp
|
||
|
services.AddAuthentication()
|
||
|
.AddMicrosoftAccount(microsoftOptions => { ... })
|
||
|
.AddGoogle(googleOptions => { ... })
|
||
|
.AddTwitter(twitterOptions => { ... })
|
||
|
.AddFacebook(facebookOptions => { ... });
|
||
|
```
|