Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(276)

Delta Between Two Patch Sets: Src/GoogleApis.Auth/GoogleJsonWebSignature.cs

Issue 13632059: Issue 351: Reimplement OAuth2 - Step 2 (Auth PCL - only data types) (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Left Patch Set: Created 10 years, 10 months ago
Right Patch Set: minor Created 10 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Src/GoogleApis.Auth/GoogleApis.Auth.csproj ('k') | Src/GoogleApis.Auth/JsonWebSignature.cs » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b