Table of Contents

Class ExternalAuthenticationBuilderExtensions

Namespace
Microsoft.Extensions.DependencyInjection
Assembly
Fdyay.IdentityServer.Federation.dll

Registers external identity providers that broker into the identity server.

public static class ExternalAuthenticationBuilderExtensions
Inheritance
ExternalAuthenticationBuilderExtensions
Inherited Members

Methods

AddExternalOAuth(AuthenticationBuilder, string, string, Action<OAuthOptions>)

Adds an external OAuth 2.0 (social) provider that signs in to the external cookie scheme.

public static AuthenticationBuilder AddExternalOAuth(this AuthenticationBuilder builder, string scheme, string displayName, Action<OAuthOptions> configureOptions)

Parameters

builder AuthenticationBuilder
scheme string
displayName string
configureOptions Action<OAuthOptions>

Returns

AuthenticationBuilder

AddExternalOpenIdConnect(AuthenticationBuilder, string, string, Action<OpenIdConnectOptions>)

Adds an external OpenID Connect provider that signs in to the external cookie scheme.

public static AuthenticationBuilder AddExternalOpenIdConnect(this AuthenticationBuilder builder, string scheme, string displayName, Action<OpenIdConnectOptions> configureOptions)

Parameters

builder AuthenticationBuilder
scheme string
displayName string
configureOptions Action<OpenIdConnectOptions>

Returns

AuthenticationBuilder

Remarks

A session that began at the provider is signed out of there too. Since 0.179.0 a provider whose discovery document has no end_session_endpoint, as Google's has none, is skipped with a warning rather than failing the sign-out.

AddExternalSaml2(AuthenticationBuilder, string, string, Action<SamlSpOptions>)

Adds an external SAML 2.0 provider (native, no third-party library) that brokers into the identity server.

public static AuthenticationBuilder AddExternalSaml2(this AuthenticationBuilder builder, string scheme, string displayName, Action<SamlSpOptions> configureOptions)

Parameters

builder AuthenticationBuilder
scheme string
displayName string
configureOptions Action<SamlSpOptions>

Returns

AuthenticationBuilder