LEFT | RIGHT |
1 /* | 1 /* |
2 Copyright 2013 Google Inc | 2 Copyright 2013 Google Inc |
3 | 3 |
4 Licensed under the Apache License, Version 2.0 (the "License"); | 4 Licensed under the Apache License, Version 2.0 (the "License"); |
5 you may not use this file except in compliance with the License. | 5 you may not use this file except in compliance with the License. |
6 You may obtain a copy of the License at | 6 You may obtain a copy of the License at |
7 | 7 |
8 http://www.apache.org/licenses/LICENSE-2.0 | 8 http://www.apache.org/licenses/LICENSE-2.0 |
9 | 9 |
10 Unless required by applicable law or agreed to in writing, software | 10 Unless required by applicable law or agreed to in writing, software |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 public string JwtId { get; set; } | 95 public string JwtId { get; set; } |
96 | 96 |
97 /// <summary> | 97 /// <summary> |
98 /// Gets or sets type claim that is used to declare a type for the c
ontents of this JWT Claims Set or· | 98 /// Gets or sets type claim that is used to declare a type for the c
ontents of this JWT Claims Set or· |
99 /// <c>null</c>. | 99 /// <c>null</c>. |
100 /// </summary> | 100 /// </summary> |
101 [Newtonsoft.Json.JsonPropertyAttribute("typ")] | 101 [Newtonsoft.Json.JsonPropertyAttribute("typ")] |
102 public string Type { get; set; } | 102 public string Type { get; set; } |
103 | 103 |
104 /// <summary>Gets the audience property as a list.</summary> | 104 /// <summary>Gets the audience property as a list.</summary> |
| 105 [Newtonsoft.Json.JsonIgnoreAttribute] |
105 public IEnumerable<string> AudienceAsList | 106 public IEnumerable<string> AudienceAsList |
106 { | 107 { |
107 get | 108 get |
108 { | 109 { |
109 var asList = Audience as List<string>; | 110 var asList = Audience as List<string>; |
110 if (asList != null) | 111 if (asList != null) |
111 { | 112 { |
112 return asList; | 113 return asList; |
113 } | 114 } |
114 var list = new List<string>(); | 115 var list = new List<string>(); |
115 var asString = Audience as string; | 116 var asString = Audience as string; |
116 if (asString != null) | 117 if (asString != null) |
117 { | 118 { |
118 list.Add(asString); | 119 list.Add(asString); |
119 } | 120 } |
120 | 121 |
121 return list; | 122 return list; |
122 } | 123 } |
123 } | 124 } |
124 } | 125 } |
125 } | 126 } |
126 } | 127 } |
LEFT | RIGHT |