Class JwtSettings
Settings class for authentication token validation and emission.
public sealed class JwtSettings
- Inheritance
-
JwtSettings
- Inherited Members
Properties
Audience
The aud claim to add to emitted tokens.
public string Audience { get; set; }
Property Value
ClockSkewSeconds
Seconds of allowed tolerance for token validation (aka. "clock skew").
public int ClockSkewSeconds { get; set; }
Property Value
ES256PrivateKeyPEM
Private ECDSA Key (PEM-formatted string) used by the server for signing defibrillator tokens.
public string ES256PrivateKeyPEM { get; init; }
Property Value
ES256PublicKeyPEM
Public ECDSA Key (PEM-formatted string) usable by externals who wish to verify that the defibrillator tokens are signed using ES256PrivateKeyPEM.
public string ES256PublicKeyPEM { get; init; }
Property Value
Issuer
The issuer as which to emit tokens. This value will be put into the iss claim.
public string Issuer { get; set; }
Property Value
LifetimeMinutes
Tokens should expire after this amount of minutes.
public int LifetimeMinutes { get; set; }
Property Value
RSAPrivateKeyPEM
Private RSA Key (PEM-formatted PKCS#1 string) used by the server for signing authentication tokens.
public string RSAPrivateKeyPEM { get; set; }
Property Value
RSAPublicKeyPEM
Public RSA Key (PEM-formatted PKCS#8 string) usable by externals who wish to verify that the authentication tokens are signed using RSAPrivateKeyPEM.
public string RSAPublicKeyPEM { get; set; }
Property Value
SectionName
The name of the settings section inside appsettings.json or the IConfiguration.
public static string SectionName { get; }