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

Delta Between Two Patch Sets: Src/GoogleApis.Auth/JsonWebToken.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: upload only data types and interfaces 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/JsonWebSignature.cs ('k') | Src/GoogleApis.Auth/OAuth2/BearerToken.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 /* 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
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 }
LEFTRIGHT

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