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

Side by Side Diff: 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/
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:
View unified diff | Download patch
« no previous file with comments | « Src/GoogleApis.Auth/GoogleApis.Auth.csproj ('k') | Src/GoogleApis.Auth/JsonWebSignature.cs » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « Src/GoogleApis.Auth/GoogleApis.Auth.csproj ('k') | Src/GoogleApis.Auth/JsonWebSignature.cs » ('j') | no next file with comments »

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