Class RefreshServiceOptions
Inherited Members
Namespace: FastEndpoints.Security
Assembly: FastEndpoints.Security.dll
Syntax
public class RefreshServiceOptions
Properties
AccessTokenValidity
specifies how long the access token should be valid for. default is 5 minutes.
Declaration
public TimeSpan AccessTokenValidity { set; }
Property Value
Type | Description |
---|---|
TimeSpan |
Audience
specifies the token audience
Declaration
public string? Audience { set; }
Property Value
Type | Description |
---|---|
string |
Issuer
specifies the token issuer
Declaration
public string? Issuer { set; }
Property Value
Type | Description |
---|---|
string |
RefreshTokenValidity
specifies how long the refresh token should be valid for. default is 4 hours.
Declaration
public TimeSpan RefreshTokenValidity { set; }
Property Value
Type | Description |
---|---|
TimeSpan |
TokenSigningKey
specifies the secret key used to sign the jwt. an exception will be thrown if a value is not specified.
Declaration
public string? TokenSigningKey { set; }
Property Value
Type | Description |
---|---|
string |
TokenSigningStyle
specifies the signing style of the jwt. default is symmetric.
Declaration
public JWTBearer.TokenSigningStyle TokenSigningStyle { set; }
Property Value
Type | Description |
---|---|
JWTBearer.TokenSigningStyle |
Methods
Endpoint(string, Action<EndpointDefinition>)
endpoint configuration action
Declaration
public void Endpoint(string refreshEndpointRoute, Action<EndpointDefinition> ep)
Parameters
Type | Name | Description |
---|---|---|
string | refreshEndpointRoute | the route of the refresh token endpoint |
Action<EndpointDefinition> | ep | the action to be performed on the endpoint definition |