LEFT | RIGHT |
1 using System; | 1 using System; |
2 using System.Collections.Generic; | 2 using System.Collections.Generic; |
3 using System.Linq; | 3 using System.Linq; |
4 using System.Text; | 4 using System.Text; |
5 | 5 |
6 namespace Google.Apis.Auth | 6 namespace Google.Apis.Auth |
7 { | 7 { |
8 /// <summary> | 8 /// <summary> |
9 /// Google JSON Web Signature as specified in https://developers.google.com/
accounts/docs/OAuth2ServiceAccount. | 9 /// Google JSON Web Signature as specified in https://developers.google.com/
accounts/docs/OAuth2ServiceAccount. |
10 /// </summary> | 10 /// </summary> |
11 public class GoogleJsonWebSignature | 11 public class GoogleJsonWebSignature |
12 { | 12 { |
| 13 // TODO(peleyal): We should provide a way to verify JWS. |
| 14 // Take a look at: https://github.com/googleplus/gplus-verifytoken-cshar
p/blob/master/verifytoken.ashx.cs. |
| 15 |
13 /// <summary> | 16 /// <summary> |
14 /// The header as specified in https://developers.google.com/accounts/do
cs/OAuth2ServiceAccount#formingheader. | 17 /// The header as specified in https://developers.google.com/accounts/do
cs/OAuth2ServiceAccount#formingheader. |
15 /// </summary> | 18 /// </summary> |
16 public class Header : JsonWebSignature.Header | 19 public class Header : JsonWebSignature.Header |
17 { | 20 { |
18 } | 21 } |
19 | 22 |
20 /// <summary> | 23 /// <summary> |
21 /// The payload as specified in· | 24 /// The payload as specified in· |
22 /// https://developers.google.com/accounts/docs/OAuth2ServiceAccount#for
mingclaimset. | 25 /// https://developers.google.com/accounts/docs/OAuth2ServiceAccount#for
mingclaimset. |
23 /// </summary> | 26 /// </summary> |
24 public class Payload : JsonWebSignature.Payload | 27 public class Payload : JsonWebSignature.Payload |
25 { | 28 { |
26 /// <summary> | 29 /// <summary> |
27 /// a space-delimited list of the permissions the application reques
ts or <c>null</c>. | 30 /// a space-delimited list of the permissions the application reques
ts or <c>null</c>. |
28 /// </summary> | 31 /// </summary> |
29 [Newtonsoft.Json.JsonPropertyAttribute("scope")] | 32 [Newtonsoft.Json.JsonPropertyAttribute("scope")] |
30 public string Scope { get; set; } | 33 public string Scope { get; set; } |
31 | 34 |
32 /// <summary> | 35 /// <summary> |
33 /// The email address of the user for which the application is reque
sting delegated access. | 36 /// The email address of the user for which the application is reque
sting delegated access. |
34 /// </summary> | 37 /// </summary> |
35 [Newtonsoft.Json.JsonPropertyAttribute("prn")] | 38 [Newtonsoft.Json.JsonPropertyAttribute("prn")] |
36 public string Prn { get; set; } | 39 public string Prn { get; set; } |
37 } | 40 } |
38 } | 41 } |
39 } | 42 } |
LEFT | RIGHT |