2using System.Collections.Generic;
5using Swashbuckle.AspNetCore.SwaggerGen;
74 public IDictionary<OAuthProvider, OAuthConfiguration>?
OAuth
82 .Where(property => property.CanWrite && property.SetMethod!.IsPublic)
86 kvp => !publicProperties.All(
87 prop => prop.GetValue(kvp.Value) == prop.PropertyType.GetDefaultValue()))
88 .ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
95 IDictionary<OAuthProvider, OAuthConfiguration>?
oAuth;
109 SchemeKey = oidcConfig.Key,
110 FriendlyName = oidcConfig.Value.FriendlyName ?? oidcConfig.Key,
112 ThemeIconUrl = oidcConfig.Value.ThemeIconUrl,
Represents a configured OIDC provider.
string? ThemeColour
Colour that should be used to theme this OIDC provider.
OAuth configuration options.
Configuration options pertaining to user security.
uint TokenSigningKeyByteCount
Amount of bytes to use in the Microsoft.IdentityModel.Tokens.TokenValidationParameters....
string? CustomTokenSigningKeyBase64
A custom token signing key. Overrides TokenSigningKeyByteCount.
uint TokenClockSkewMinutes
Amount of minutes to skew the clock for Api.Models.Response.TokenResponse validation.
const string Section
The key for the Microsoft.Extensions.Configuration.IConfigurationSection the SecurityConfiguration re...
const uint DefaultTokenSigningKeyByteAmount
Default value of TokenSigningKeyByteCount.
uint OAuthTokenExpiryMinutes
Amount of minutes until Api.Models.Response.TokenResponses generated from OAuth logins expire.
IDictionary< string, OidcConfiguration >? OpenIDConnect
OIDC provider settings keyed by scheme name.
const uint DefaultOAuthTokenExpiryMinutes
Default value of OAuthTokenExpiryMinutes.
IEnumerable< OidcProviderInfo > OidcProviderInfos()
Get the OidcProviderInfos from the SecurityConfiguration.
bool OidcStrictMode
If OIDC strict mode should be enabled. This mode enforces the existence of at least one OpenIDConnect...
const uint DefaultTokenClockSkewMinutes
Default value of TokenClockSkewMinutes.
IDictionary< OAuthProvider, OAuthConfiguration >? oAuth
Backing field for OAuth.
uint TokenExpiryMinutes
Amount of minutes until Api.Models.Response.TokenResponses generated from passwords expire.
const uint DefaultTokenExpiryMinutes
Default value of TokenExpiryMinutes.
IDictionary< OAuthProvider, OAuthConfiguration >? OAuth
OAuth provider settings.