Table of Contents

Class JwtSettings

Namespace
GastroSky.Models.Settings
Assembly
GastroSky.Models.dll

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

string

ClockSkewSeconds

Seconds of allowed tolerance for token validation (aka. "clock skew").

public int ClockSkewSeconds { get; set; }

Property Value

int

ES256PrivateKeyPEM

Private ECDSA Key (PEM-formatted string) used by the server for signing defibrillator tokens.

public string ES256PrivateKeyPEM { get; init; }

Property Value

string

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

string

Issuer

The issuer as which to emit tokens. This value will be put into the iss claim.

public string Issuer { get; set; }

Property Value

string

LifetimeMinutes

Tokens should expire after this amount of minutes.

public int LifetimeMinutes { get; set; }

Property Value

int

RSAPrivateKeyPEM

Private RSA Key (PEM-formatted PKCS#1 string) used by the server for signing authentication tokens.

public string RSAPrivateKeyPEM { get; set; }

Property Value

string

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

string

SectionName

The name of the settings section inside appsettings.json or the IConfiguration.

public static string SectionName { get; }

Property Value

string