diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-07-19 07:54:10 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-07-19 07:54:10 -0700 |
commit | b5c8335f528acbca046ca2844f8e4c12cfa9cba3 (patch) | |
tree | dc1f86b45964c2e4d92a5e61fe0efd317158faf4 /samples/DotNetOpenAuth.ApplicationBlock/InMemoryClientAuthorizationTracker.cs | |
parent | c34d74ed81bcac18961272d52dc5bab21a3394fa (diff) | |
download | DotNetOpenAuth-b5c8335f528acbca046ca2844f8e4c12cfa9cba3.zip DotNetOpenAuth-b5c8335f528acbca046ca2844f8e4c12cfa9cba3.tar.gz DotNetOpenAuth-b5c8335f528acbca046ca2844f8e4c12cfa9cba3.tar.bz2 |
Changed the public API for OAuth 2.0 scope from a space-delimited string to a HashSet<string>
Diffstat (limited to 'samples/DotNetOpenAuth.ApplicationBlock/InMemoryClientAuthorizationTracker.cs')
-rw-r--r-- | samples/DotNetOpenAuth.ApplicationBlock/InMemoryClientAuthorizationTracker.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/samples/DotNetOpenAuth.ApplicationBlock/InMemoryClientAuthorizationTracker.cs b/samples/DotNetOpenAuth.ApplicationBlock/InMemoryClientAuthorizationTracker.cs index 239b3ac..ef3b686 100644 --- a/samples/DotNetOpenAuth.ApplicationBlock/InMemoryClientAuthorizationTracker.cs +++ b/samples/DotNetOpenAuth.ApplicationBlock/InMemoryClientAuthorizationTracker.cs @@ -41,12 +41,10 @@ namespace DotNetOpenAuth.ApplicationBlock { #endregion - internal IAuthorizationState NewAuthorization(string scope, out string clientState) { + internal IAuthorizationState NewAuthorization(HashSet<string> scope, out string clientState) { int counter = Interlocked.Increment(ref this.stateCounter); clientState = counter.ToString(CultureInfo.InvariantCulture); - return this.savedStates[counter] = new AuthorizationState { - Scope = scope, - }; + return this.savedStates[counter] = new AuthorizationState(scope); } } #endif |