OAuthServer Module
Server builder for composing the OAuth authorization server.
Types
| Type | Description |
|
Builder record for configuring the OAuth server. |
Functions and values
| Function or value |
Description
|
|
Build and configure a WebApplication with all OAuth routes mapped.
|
|
Default builder with sensible defaults. Issuer must be set before building.
|
Full Usage:
withAccessTokenLifetime lifetime builder
Parameters:
TimeSpan
builder : OAuthServerBuilder
Returns: OAuthServerBuilder
|
Set the access token lifetime.
|
Full Usage:
withAccountStore store builder
Parameters:
IAccountStore
builder : OAuthServerBuilder
Returns: OAuthServerBuilder
|
Set a custom account store.
|
Full Usage:
withConsentPath path builder
Parameters:
string
builder : OAuthServerBuilder
Returns: OAuthServerBuilder
|
Set the consent UI path (default: "/consent").
|
Full Usage:
withIssuer issuer builder
Parameters:
string
builder : OAuthServerBuilder
Returns: OAuthServerBuilder
|
Set the issuer URL for the OAuth server.
|
Full Usage:
withPort port builder
Parameters:
int
builder : OAuthServerBuilder
Returns: OAuthServerBuilder
|
Set the port the server listens on.
|
Full Usage:
withRefreshTokenLifetime lifetime builder
Parameters:
TimeSpan
builder : OAuthServerBuilder
Returns: OAuthServerBuilder
|
Set the refresh token lifetime.
|
Full Usage:
withReplayStore store builder
Parameters:
IReplayStore
builder : OAuthServerBuilder
Returns: OAuthServerBuilder
|
Set a custom replay detection store.
|
Full Usage:
withRequestStore store builder
Parameters:
IRequestStore
builder : OAuthServerBuilder
Returns: OAuthServerBuilder
|
Set a custom request store.
|
Full Usage:
withScopesSupported scopes builder
Parameters:
string list
builder : OAuthServerBuilder
Returns: OAuthServerBuilder
|
Set the supported scopes.
|
Full Usage:
withServiceDid did builder
Parameters:
Did
builder : OAuthServerBuilder
Returns: OAuthServerBuilder
|
Set the service DID for the server.
|
Full Usage:
withSigningKey key builder
Parameters:
ECDsa
builder : OAuthServerBuilder
Returns: OAuthServerBuilder
|
Set the signing key for token creation.
|
Full Usage:
withTokenStore store builder
Parameters:
ITokenStore
builder : OAuthServerBuilder
Returns: OAuthServerBuilder
|
Set a custom token store.
|