Class IdentityEndpointMapper

Namespace
Cratis.Arc.Identity
Assembly
Cratis.Arc.Core.dll

Maps identity provider endpoints using the provided endpoint mapper.

public static class IdentityEndpointMapper
Inheritance
IdentityEndpointMapper
Inherited Members

Methods

MapIdentityProviderEndpoint(IEndpointMapper, IServiceProvider)

Maps the identity provider endpoint.

public static void MapIdentityProviderEndpoint(this IEndpointMapper mapper, IServiceProvider serviceProvider)

Parameters

mapper IEndpointMapper

The IEndpointMapper to use.

serviceProvider IServiceProvider

The IServiceProvider.

Remarks

The identity discovery endpoints - /.cratis/users, /.cratis/tenants and /.cratis/identity-details/schema - follow IntrospectionOptions: anonymous in Development and authenticated elsewhere unless configured otherwise, and unmapped when IdentityDiscovery is false. /.cratis/me is always mapped anonymously and answers for the caller itself.

Exceptions

InvalidIntrospectionConfiguration

The discovery exposure settings are invalid, or authentication is explicitly required and the host cannot enforce it.