|
3 | 3 | // ------------------------------------------------------------------------------
|
4 | 4 |
|
5 | 5 | using System;
|
6 |
| -using Newtonsoft.Json; |
| 6 | +using System.Text.Json.Serialization; |
7 | 7 |
|
8 | 8 | namespace Microsoft.Graph.PowerShell.Authentication.Models
|
9 | 9 | {
|
10 | 10 | internal partial class JwtPayload
|
11 | 11 | {
|
12 |
| - [JsonProperty("exp")] |
| 12 | + [JsonPropertyName("exp")] |
13 | 13 | public long Exp { get; set; }
|
14 | 14 |
|
15 |
| - [JsonProperty("aud")] |
| 15 | + [JsonPropertyName("aud")] |
16 | 16 | public Uri Aud { get; set; }
|
17 | 17 |
|
18 |
| - [JsonProperty("iss")] |
| 18 | + [JsonPropertyName("iss")] |
19 | 19 | public Uri Iss { get; set; }
|
20 | 20 |
|
21 |
| - [JsonProperty("app_displayname")] |
| 21 | + [JsonPropertyName("app_displayname")] |
22 | 22 | public string AppDisplayname { get; set; }
|
23 | 23 |
|
24 |
| - [JsonProperty("appid")] |
| 24 | + [JsonPropertyName("appid")] |
25 | 25 | public string Appid { get; set; }
|
26 | 26 |
|
27 |
| - [JsonProperty("family_name")] |
| 27 | + [JsonPropertyName("family_name")] |
28 | 28 | public string FamilyName { get; set; }
|
29 | 29 |
|
30 |
| - [JsonProperty("given_name")] |
| 30 | + [JsonPropertyName("given_name")] |
31 | 31 | public string GivenName { get; set; }
|
32 | 32 |
|
33 |
| - [JsonProperty("name")] |
| 33 | + [JsonPropertyName("name")] |
34 | 34 | public string Name { get; set; }
|
35 | 35 |
|
36 |
| - [JsonProperty("oid")] |
| 36 | + [JsonPropertyName("oid")] |
37 | 37 | public string Oid { get; set; }
|
38 | 38 |
|
39 |
| - [JsonProperty("scp")] |
| 39 | + [JsonPropertyName("scp")] |
40 | 40 | public string Scp { get; set; }
|
41 | 41 |
|
42 |
| - [JsonProperty("roles")] |
| 42 | + [JsonPropertyName("roles")] |
43 | 43 | public string[] Roles { get; set; }
|
44 | 44 |
|
45 |
| - [JsonProperty("tid")] |
| 45 | + [JsonPropertyName("tid")] |
46 | 46 | public string Tid { get; set; }
|
47 | 47 |
|
48 |
| - [JsonProperty("unique_name")] |
| 48 | + [JsonPropertyName("unique_name")] |
49 | 49 | public string UniqueName { get; set; }
|
50 | 50 |
|
51 |
| - [JsonProperty("upn")] |
| 51 | + [JsonPropertyName("upn")] |
52 | 52 | public string Upn { get; set; }
|
53 | 53 | }
|
54 | 54 | }
|
0 commit comments