Table of Contents

Class IdentityProviderEndpoint

Namespace
Cratis.Applications.Identity
Assembly
Cratis.Applications.dll

Represents the actual endpoint called for identity details (/.cratis/me).

public class IdentityProviderEndpoint
Inheritance
IdentityProviderEndpoint
Inherited Members

Constructors

IdentityProviderEndpoint(JsonSerializerOptions, IProvideIdentityDetails)

Initializes a new instance of the IdentityProviderEndpoint class.

public IdentityProviderEndpoint(JsonSerializerOptions serializerOptions, IProvideIdentityDetails identityProvider)

Parameters

serializerOptions JsonSerializerOptions

JsonSerializerOptions to use for serialization.

identityProvider IProvideIdentityDetails

IProvideIdentityDetails for providing the identity.

Methods

Handler(HttpRequest, HttpResponse)

Handle the identity request.

public Task Handler(HttpRequest request, HttpResponse response)

Parameters

request HttpRequest

HttpRequest that holds all the request information.

response HttpResponse

HttpResponse that will be written to.

Returns

Task

Awaitable task.