Class SamlServiceCollectionExtensions
Extension methods for setting up SAML related services in an IServiceCollection
.
Inheritance
System.Object
SamlServiceCollectionExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The services collection. |
System.Action<System.String, System.Object, Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions> | memoryCacheEntryOptions | The optional delegate called when the memory cache entry options are being set. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.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 |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The services collection. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.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 |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The services collection. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.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 |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The services collection. |
Microsoft.Extensions.Configuration.IConfiguration | samlConfigurations | The SAML configurations. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.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 |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The services collection. |
System.Action<SamlConfigurations> | configureSaml | The action used to configure SAML. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | The services collection. |