LEFT | RIGHT |
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 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 var error = NewtonsoftJsonSerializer.Instance.Deserialize<TokenE
rrorResponse>(content); | 68 var error = NewtonsoftJsonSerializer.Instance.Deserialize<TokenE
rrorResponse>(content); |
69 throw new TokenResponseException(error); | 69 throw new TokenResponseException(error); |
70 } | 70 } |
71 | 71 |
72 await DeleteTokenAsync(userId, taskCancellationToken); | 72 await DeleteTokenAsync(userId, taskCancellationToken); |
73 } | 73 } |
74 | 74 |
75 /// <summary>An initializer class for Google authorization code flow. </
summary> | 75 /// <summary>An initializer class for Google authorization code flow. </
summary> |
76 public new class Initializer : AuthorizationCodeFlow.Initializer | 76 public new class Initializer : AuthorizationCodeFlow.Initializer |
77 { | 77 { |
78 /// <summary>Gets or sets the revoke token URL.</summary> | 78 /// <summary>Gets or sets the token revocation URL.</summary> |
79 public string RevokeTokenUrl { get; set; } | 79 public string RevokeTokenUrl { get; set; } |
80 | 80 |
81 /// <summary> | 81 /// <summary> |
82 /// Constructs a new initializer. Sets Authorization server URL to· | 82 /// Constructs a new initializer. Sets Authorization server URL to· |
83 /// <seealso cref="GoogleAuthConsts.AuthorizationUrl"/>, and Token s
erver URL to· | 83 /// <seealso cref="GoogleAuthConsts.AuthorizationUrl"/>, and Token s
erver URL to· |
84 /// <seealso cref="GoogleAuthConsts.TokenUrl"/>. | 84 /// <seealso cref="GoogleAuthConsts.TokenUrl"/>. |
85 /// </summary> | 85 /// </summary> |
86 public Initializer() | 86 public Initializer() |
87 : base(GoogleAuthConsts.AuthorizationUrl, GoogleAuthConsts.Token
Url) | 87 : base(GoogleAuthConsts.AuthorizationUrl, GoogleAuthConsts.Token
Url) |
88 { | 88 { |
89 RevokeTokenUrl = GoogleAuthConsts.RevokeTokenUrl; | 89 RevokeTokenUrl = GoogleAuthConsts.RevokeTokenUrl; |
90 } | 90 } |
91 } | 91 } |
92 } | 92 } |
93 } | 93 } |
LEFT | RIGHT |