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

Delta Between Two Patch Sets: Src/GoogleApis.Auth.WP/OAuth2/AuthorizationCodeBroker.cs

Issue 94340043: Issue 463: Provide a signout\logout method (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Left Patch Set: error in reviewing - uploading again Created 9 years, 10 months ago
Right Patch Set: Gus' comments Created 9 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
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
11 distributed under the License is distributed on an "AS IS" BASIS, 11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and 13 See the License for the specific language governing permissions and
14 limitations under the License. 14 limitations under the License.
15 */ 15 */
16 16
17 using System; 17 using System;
18 using System.Threading; 18 using System.Threading;
19 using System.Threading.Tasks; 19 using System.Threading.Tasks;
20 using System.Windows; 20 using System.Windows;
21 using System.Windows.Controls; 21 using System.Windows.Controls;
22 using Microsoft.Phone.Controls; 22 using Microsoft.Phone.Controls;
23 23
24 using Google.Apis.Auth.OAuth2.Requests; 24 using Google.Apis.Auth.OAuth2.Requests;
25 using Google.Apis.Auth.OAuth2.Responses; 25 using Google.Apis.Auth.OAuth2.Responses;
26 26
27 namespace Google.Apis.Auth.OAuth2 27 namespace Google.Apis.Auth.OAuth2
28 { 28 {
29 /// <summary> 29 /// <summary>
30 /// OAuth 2.0 verification code receiver for Window Phone that opens an embe dded Google account form to enter the 30 /// OAuth 2.0 verification code receiver for Windows Phone that opens an emb edded Google account form to enter the
31 /// user's credentials and accepts the application access to its token. 31 /// user's credentials and accepts the application access to its token.
32 /// </summary> 32 /// </summary>
33 public class AuthorizationCodeBroker : ICodeReceiver 33 public class AuthorizationCodeBroker : ICodeReceiver
34 { 34 {
35 #region ICodeReceiver Members 35 #region ICodeReceiver Members
36 36
37 public string RedirectUri 37 public string RedirectUri
38 { 38 {
39 get { return GoogleAuthConsts.LocalhostRedirectUri; } 39 get { return GoogleAuthConsts.LocalhostRedirectUri; }
40 } 40 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 finally 81 finally
82 { 82 {
83 // Change back to the old layout. 83 // Change back to the old layout.
84 webAuthControl.Visibility = Visibility.Collapsed; 84 webAuthControl.Visibility = Visibility.Collapsed;
85 oauthLayout.Children.Remove(webAuthControl); 85 oauthLayout.Children.Remove(webAuthControl);
86 rootPage.Content = currentLayout; 86 rootPage.Content = currentLayout;
87 } 87 }
88 } 88 }
89 } 89 }
90 } 90 }
LEFTRIGHT

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