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
JsonSerializerOptionsJsonSerializerOptions to use for serialization.
identityProvider
IProvideIdentityDetailsIProvideIdentityDetails for providing the identity.
Methods
Handler(HttpRequest, HttpResponse)
Handle the identity request.
public Task Handler(HttpRequest request, HttpResponse response)
Parameters
request
HttpRequestHttpRequest that holds all the request information.
response
HttpResponseHttpResponse that will be written to.
Returns
- Task
Awaitable task.