OLD | NEW |
(Empty) | |
| 1 /* |
| 2 Copyright 2013 Google Inc |
| 3 |
| 4 Licensed under the Apache License, Version 2.0 (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 |
| 7 |
| 8 http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
| 10 Unless required by applicable law or agreed to in writing, software |
| 11 distributed under the License is distributed on an "AS IS" BASIS, |
| 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 See the License for the specific language governing permissions and |
| 14 limitations under the License. |
| 15 */ |
| 16 |
| 17 using System; |
| 18 |
| 19 namespace Google.Apis.Auth.OAuth2.Requests |
| 20 { |
| 21 /// <summary> |
| 22 /// OAuth 2.0 request for an access token using an authorization code as sp
ecified in· |
| 23 /// http://tools.ietf.org/html/rfc6749#section-4.1.3. |
| 24 /// </summary> |
| 25 public class AuthorizationCodeTokenRequest : TokenRequest |
| 26 { |
| 27 /// <summary>Gets or sets the authorization code received from the autho
rization server.</summary> |
| 28 [Google.Apis.Util.RequestParameterAttribute("code")] |
| 29 public string Code { get; set; } |
| 30 |
| 31 /// <summary> |
| 32 /// Gets or sets the redirect URI parameter matching the redirect URI pa
rameter in the authorization request. |
| 33 /// </summary> |
| 34 [Google.Apis.Util.RequestParameterAttribute("redirect_uri")] |
| 35 public string RedirectUri { get; set; } |
| 36 |
| 37 /// <summary> |
| 38 /// Constructs a new authorization code token request and sets grant_typ
e to <c>authorization_code</c>. |
| 39 /// </summary> |
| 40 public AuthorizationCodeTokenRequest() |
| 41 { |
| 42 GrantType = "authorization_code"; |
| 43 } |
| 44 } |
| 45 } |
OLD | NEW |