tgstation-server 6.16.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
OidcConnection.cs
Go to the documentation of this file.
1using System.ComponentModel.DataAnnotations;
2
3using Newtonsoft.Json;
4
6{
10 public class OidcConnection
11 {
15 [Required]
16 [RequestOptions(FieldPresence.Required)]
17 [StringLength(Limits.MaximumIndexableStringLength, MinimumLength = 1)]
18 public string? SchemeKey { get; set; }
19
23 [Required]
24 [RequestOptions(FieldPresence.Required)]
25 [StringLength(Limits.MaximumIndexableStringLength, MinimumLength = 1)]
26 public string? ExternalUserId { get; set; }
27 }
28}
Sanity limits to prevent users from overloading.
Definition Limits.cs:9
const int MaximumIndexableStringLength
Length limit for NamedEntity.Names.
Definition Limits.cs:23
Represents a valid OIDC connection.
string? ExternalUserId
The ID of the user in the OIDC proivder ("sub" claim).
string? SchemeKey
The OidcProviderInfo.SchemeKey of the OidcConnection.
FieldPresence
Indicates whether a request field is Required or Ignored.
@ Required
DMAPI validation must suceed for the deployment to succeed.