もちろんこれも可能です。 Startupクラスには、好きなだけ多くの外部IdPを登録できます。 Identity Serverのサンプルクイックスタートリポジトリも確認してください。
このコードはAzureAdとGoogleを外部IdPとして登録します。 これを設定するには、アプリケーションをdevelopers.googleおよびAzureAdに登録してアプリケーションを認証する必要があります。
app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions
{
ClientId = Configuration["AzureAd:clientid"],
Authority = Configuration["AzureAd:authority"],
ClientSecret = Configuration["AzureAd:secret"],
PostLogoutRedirectUri = "/signed-out",
AuthenticationScheme = "AzureAd",
ResponseType = OpenIdConnectResponseType.CodeIdToken,
SaveToken = true,
});
app.UseGoogleAuthentication(new GoogleOptions
{
ClientId = Configuration["Google:clientid"],
ClientSecret = Configuration["Google:secret"],
AuthenticationScheme = "Google",
SaveTokens = true
});