OLD | NEW |
(Empty) | |
| 1 using System; |
| 2 using System.Collections.Generic; |
| 3 using System.Linq; |
| 4 using System.Text; |
| 5 |
| 6 namespace Google.Apis.Auth |
| 7 { |
| 8 /// <summary> |
| 9 /// Google JSON Web Signature as specified in https://developers.google.com/
accounts/docs/OAuth2ServiceAccount. |
| 10 /// </summary> |
| 11 public class GoogleJsonWebSignature |
| 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 |
| 16 /// <summary> |
| 17 /// The header as specified in https://developers.google.com/accounts/do
cs/OAuth2ServiceAccount#formingheader. |
| 18 /// </summary> |
| 19 public class Header : JsonWebSignature.Header |
| 20 { |
| 21 } |
| 22 |
| 23 /// <summary> |
| 24 /// The payload as specified in· |
| 25 /// https://developers.google.com/accounts/docs/OAuth2ServiceAccount#for
mingclaimset. |
| 26 /// </summary> |
| 27 public class Payload : JsonWebSignature.Payload |
| 28 { |
| 29 /// <summary> |
| 30 /// a space-delimited list of the permissions the application reques
ts or <c>null</c>. |
| 31 /// </summary> |
| 32 [Newtonsoft.Json.JsonPropertyAttribute("scope")] |
| 33 public string Scope { get; set; } |
| 34 |
| 35 /// <summary> |
| 36 /// The email address of the user for which the application is reque
sting delegated access. |
| 37 /// </summary> |
| 38 [Newtonsoft.Json.JsonPropertyAttribute("prn")] |
| 39 public string Prn { get; set; } |
| 40 } |
| 41 } |
| 42 } |
OLD | NEW |