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 using System.Collections.Generic; |
| 19 using System.Linq; |
| 20 using System.Text; |
| 21 |
| 22 namespace Google.Apis.Auth.OAuth2.Requests |
| 23 { |
| 24 /// <summary> |
| 25 /// OAuth 2.0 request for an access token as specified in http://tools.ietf.
org/html/rfc6749#section-4. |
| 26 /// </summary> |
| 27 public class TokenRequest |
| 28 { |
| 29 /// <summary> |
| 30 /// Gets or sets space-separated list of scopes as specified in http://t
ools.ietf.org/html/rfc6749#section-3.3. |
| 31 /// </summary> |
| 32 [Google.Apis.Util.RequestParameterAttribute("scope")] |
| 33 public string Scope { get; set; } |
| 34 |
| 35 /// <summary> |
| 36 /// Gets or sets the Grant type. Sets <c>authorization_code</c> or <c>pa
ssword</c> or <c>client_credentials</c>· |
| 37 /// or <c>refresh_token</c> or absolute URI of the extension grant type. |
| 38 /// </summary> |
| 39 [Google.Apis.Util.RequestParameterAttribute("grant_type")] |
| 40 public string GrantType { get; set; } |
| 41 |
| 42 /// <summary>Gets or sets the client Identifier.</summary> |
| 43 [Google.Apis.Util.RequestParameterAttribute("client_id")] |
| 44 public string ClientId { get; set; } |
| 45 |
| 46 /// <summary>Gets or sets the client Secret.</summary> |
| 47 [Google.Apis.Util.RequestParameterAttribute("client_secret")] |
| 48 public string ClientSecret { get; set; } |
| 49 } |
| 50 } |
OLD | NEW |