PM> Install-Package Auth.NET
Add the following configuration :
{
"Authentication": {
"Google": {
"ClientId": "{...}",
"ClientSecret": "{...}"
},
"Microsoft": {
"ClientId": "{...}",
"ClientSecret": "{...}"
}
}
}
Add the following lines :
public void ConfigureServices(IServiceCollection services)
{
services.AddGoogleAuth(Configuration);
services.AddMicrosoftAuth(Configuration);
}
@inject MicrosoftAuth MicrosoftAuth
private async Task OnMicrosoftClick()
{
await MicrosoftAuth.Connect("openid");
}