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

Side by Side Diff: Src/GoogleApis.Auth/OAuth2/Requests/AuthorizationRequestUrl.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
OLDNEW
(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 URL for an authorization web page to allow the end use r to authorize the application to·
23 /// access their protected resources, as specified in http://tools.ietf.org/ html/rfc6749#section-3.1.
24 /// </summary>
25 public class AuthorizationRequestUrl
26 {
27 /// <summary>
28 /// Gets or sets the response type which must be <c>code</c> for request ing an authorization code or·
29 /// <c>token</c> for requesting an access token (implicit grant), or spa ce separated registered extension·
30 /// values. See http://tools.ietf.org/html/rfc6749#section-3.1.1 for mor e details
31 /// </summary>
32 [Google.Apis.Util.RequestParameterAttribute("response_type", Google.Apis .Util.RequestParameterType.Query)]
33 public string ResponseType { get; set; }
34
35 /// <summary>Gets or sets the client identifier.</summary>
36 [Google.Apis.Util.RequestParameterAttribute("client_id", Google.Apis.Uti l.RequestParameterType.Query)]
37 public string ClientId { get; set; }
38
39 /// <summary>
40 /// Gets or sets the URI that the authorization server directs the resou rce owner's user-agent back to the·
41 /// client after a successful authorization grant, as specified in·
42 /// http://tools.ietf.org/html/rfc6749#section-3.1.2 or <c>null</c> for none.
43 /// </summary>
44 [Google.Apis.Util.RequestParameterAttribute("redirect_uri", Google.Apis. Util.RequestParameterType.Query)]
45 public string RedirectUri { get; set; }
46
47 /// <summary>
48 /// Gets or sets space-separated list of scopes, as specified in http:// tools.ietf.org/html/rfc6749#section-3.3
49 /// or <c>null</c> for none.
50 /// </summary>
51 [Google.Apis.Util.RequestParameterAttribute("scope", Google.Apis.Util.Re questParameterType.Query)]
52 public string Scope { get; set; }
53
54 /// <summary>
55 /// Gets or sets the state (an opaque value used by the client to mainta in state between the request and·
56 /// callback, as mentioned in http://tools.ietf.org/html/rfc6749#section -3.1.2.2 or <c>null</c> for none.
57 /// </summary>
58 [Google.Apis.Util.RequestParameterAttribute("state", Google.Apis.Util.Re questParameterType.Query)]
59 public string State { get; set; }
60
61 private readonly Uri authorizationServerEncodedUrl;
62 /// <summary>
63 /// Gets the authorization server encoded URL.
64 /// </summary>
65 public Uri AuthorizationServerEncodedUrl
66 {
67 get { return authorizationServerEncodedUrl; }
68 }
69
70 /// <summary>Constructs a new authorization request with the specified U RI.</summary>
71 /// <param name="authorizationServerEncodedUrl">Authorization server enc oded URI</param>
72 public AuthorizationRequestUrl(Uri authorizationServerEncodedUrl)
73 {
74 this.authorizationServerEncodedUrl = authorizationServerEncodedUrl;
75 }
76 }
77 }
OLDNEW

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