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

Side by Side Diff: Src/GoogleApis.Auth/OAuth2/Requests/GoogleAuthorizationCodeRequestUrl.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, 6 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 /// Google-specific implementation of the OAuth 2.0 URL for an authorization web page to allow the end user to·
23 /// authorize the application to access their protected resources and that r eturns an authorization code, as·
24 /// specified in https://developers.google.com/accounts/docs/OAuth2WebServer .
25 /// </summary>
26 public class GoogleAuthorizationCodeRequestUrl : AuthorizationCodeRequestUrl
27 {
28 /// <summary>
29 /// Gets or sets the access type. Set <c>online</c> to request on-line a ccess or <c>offline</c> to request·
30 /// off-line access or <c>null</c> for the default behavior. The default value is <c>offline</c>.
31 /// </summary>
32 [Google.Apis.Util.RequestParameterAttribute("access_type", Google.Apis.U til.RequestParameterType.Query)]
33 public string AccessType { get; set; }
34
35 /// <summary>
36 /// Gets pr sets prompt for consent behavior <c>auto</c> to request auto -approval or<c>force</c> to force the·
37 /// approval UI to show, or <c>null</c> for the default behavior.
38 /// </summary>
39 [Google.Apis.Util.RequestParameterAttribute("approval_prompt", Google.Ap is.Util.RequestParameterType.Query)]
40 public string ApprovalPrompt { get; set; }
41
42 /// <summary>
43 /// Gets or sets the login hint. Sets <c>email address</c> or sub <c>ide ntifier</c>.
44 /// When your application knows which user it is trying to authenticate, it may provide this parameter as a
45 /// hint to the Authentication Server. Passing this hint will either pre -fill the email box on the sign-in form
46 /// or select the proper multi-login session, thereby simplifying the lo gin flow.
47 /// </summary>
48 [Google.Apis.Util.RequestParameterAttribute("login_hint", Google.Apis.Ut il.RequestParameterType.Query)]
49 public string LoginHint { get; set; }
50
51 /// <summary>
52 /// Constructs a new authorization code request with the given authoriza tion server URL. This constructor sets
53 /// the <see cref="AccessType"/> to <c>offline</c>.
54 /// </summary>
55 public GoogleAuthorizationCodeRequestUrl(Uri authorizationServerEncodedU rl)
56 : base(authorizationServerEncodedUrl)
57 {
58 AccessType = "offline";
59 }
60 }
61 }
OLDNEW

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