Class SamlServiceCollectionExtensions
Extension methods for setting up SAML related services in an IServiceCollection
.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: ComponentSpace.Saml2.dll
Syntax
public static class SamlServiceCollectionExtensions
Methods
AddCachedConfigurationResolver<TSamlConfigurationResolver>(IServiceCollection, Action<string, object, MemoryCacheEntryOptions>)
Adds the cached configuration resolver.
Declaration
public static IServiceCollection AddCachedConfigurationResolver<TSamlConfigurationResolver>(this IServiceCollection services, Action<string, object, MemoryCacheEntryOptions> memoryCacheEntryOptions = null) where TSamlConfigurationResolver : class, ISamlConfigurationResolver
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The services collection. |
Action<string, object, MemoryCacheEntryOptions> | memoryCacheEntryOptions | The optional delegate called when the memory cache entry options are being set. |
Returns
Type | Description |
---|---|
IServiceCollection | The services collection. |
Type Parameters
Name | Description |
---|---|
TSamlConfigurationResolver |
AddConfigurationResolver<TSamlConfigurationResolver>(IServiceCollection)
Adds the SAML configuration resolver.
Declaration
public static IServiceCollection AddConfigurationResolver<TSamlConfigurationResolver>(this IServiceCollection services) where TSamlConfigurationResolver : class, ISamlConfigurationResolver
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The services collection. |
Returns
Type | Description |
---|---|
IServiceCollection | The services collection. |
Type Parameters
Name | Description |
---|---|
TSamlConfigurationResolver |
AddSaml(IServiceCollection)
Adds the services required to enable SAML support.
Declaration
public static IServiceCollection AddSaml(this IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The services collection. |
Returns
Type | Description |
---|---|
IServiceCollection | The services collection. |
AddSaml(IServiceCollection, IConfiguration)
Adds the services required to enable SAML support.
Declaration
public static IServiceCollection AddSaml(this IServiceCollection services, IConfiguration samlConfigurations)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The services collection. |
IConfiguration | samlConfigurations | The SAML configurations. |
Returns
Type | Description |
---|---|
IServiceCollection | The services collection. |
AddSaml(IServiceCollection, Action<SamlConfigurations>)
Adds the services required to enable SAML support.
Declaration
public static IServiceCollection AddSaml(this IServiceCollection services, Action<SamlConfigurations> configureSaml)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The services collection. |
Action<SamlConfigurations> | configureSaml | The action used to configure SAML. |
Returns
Type | Description |
---|---|
IServiceCollection | The services collection. |