tgstation-server 6.16.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
OidcConfiguration.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.IdentityModel.JsonWebTokens;
4
6{
10 public sealed class OidcConfiguration
11 {
15 private const string DefaultGroupClaimName = "tgstation-server-group-id";
16
20 public Uri? Authority { get; set; }
21
25 public string? ClientId { get; set; }
26
30 public string? ClientSecret { get; set; }
31
35 public string? FriendlyName { get; set; }
36
40 public string? ReturnPath { get; set; } = "/app";
41
45 public string? ThemeColour { get; set; }
46
50 public Uri? ThemeIconUrl { get; set; }
51
55 public string UsernameClaim { get; set; } = JwtRegisteredClaimNames.PreferredUsername;
56
60 public string GroupIdClaim { get; set; } = DefaultGroupClaimName;
61 }
62}
Configuration for an OpenID Connect provider.
string GroupIdClaim
Claim name used to set user groups in OIDC strict mode.
string? ReturnPath
The path to return to once OIDC authentication is complete. On success the "code" and "state" query s...
string UsernameClaim
The name of the claim used to set the user's name.
const string DefaultGroupClaimName
The default value of GroupIdClaim.
string? FriendlyName
The provider's name as it should be displayed to the user.
Uri? ThemeIconUrl
Image URL that should be used to theme this OIDC provider.
Uri? Authority
The Uri containing the .well-known endpoint for the provider.
string? ThemeColour
Colour that should be used to theme this OIDC provider.