Table of Contents

Class ServiceCollectionExtensions

Namespace
Cuemon.Extensions.AspNetCore.Authentication
Assembly
Cuemon.Extensions.AspNetCore.Authentication.dll

Extension methods for the Microsoft.Extensions.DependencyInjection.IServiceCollection interface.

public static class ServiceCollectionExtensions
Inheritance
Object
ServiceCollectionExtensions

Methods

AddAuthorizationResponseHandler(IServiceCollection, Action<AuthorizationResponseHandlerOptions>)

Adds a AuthorizationResponseHandler service to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.

public static IServiceCollection AddAuthorizationResponseHandler(this IServiceCollection services, Action<AuthorizationResponseHandlerOptions> setup = null)

Parameters

services IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection to extend.

setup Action<AuthorizationResponseHandlerOptions>

The AuthorizationResponseHandlerOptions which may be configured.

Returns

IServiceCollection

A reference to services so that additional configuration calls can be chained.

Exceptions

System.ArgumentNullException

services cannot be null.

System.ArgumentException

setup failed to configure an instance of AuthorizationResponseHandlerOptions in a valid state.

AddInMemoryDigestAuthenticationNonceTracker(IServiceCollection)

Adds a MemoryNonceTracker service to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.

public static IServiceCollection AddInMemoryDigestAuthenticationNonceTracker(this IServiceCollection services)

Parameters

services IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to.

Returns

IServiceCollection

An Microsoft.Extensions.DependencyInjection.IServiceCollection that can be used to further configure other services.