blob: bc4deeeb1532d4655e8b91ee6ce0000010fc2744 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
using System.Text.Json.Serialization;
namespace VPNAuth.Server.Responses;
public class UserInfo
{
[JsonPropertyName("sub")] public string? Sub { get; set; }
[JsonPropertyName("name")] public string? Name { get; set; }
[JsonPropertyName("given_name")] public string? GivenName { get; set; }
[JsonPropertyName("family_name")] public string? FamilyName { get; set; }
[JsonPropertyName("preferred_username")]
public string? PreferredUsername { get; set; }
[JsonPropertyName("email")] public string? Email { get; set; }
[JsonPropertyName("picture")] public string? Picture { get; set; }
public UserInfo(ConfigUser configUser)
{
Sub = configUser.Sub;
Name = configUser.Name;
GivenName = configUser.GivenName;
FamilyName = configUser.FamilyName;
PreferredUsername = configUser.PreferredUsername;
Email = configUser.Email;
Picture = configUser.Picture;
}
}
|