diff options
Diffstat (limited to 'samples/OAuthServiceProvider/Code')
-rw-r--r-- | samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs b/samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs index 41b1d23..3c8a3be 100644 --- a/samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs +++ b/samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs @@ -83,11 +83,11 @@ OAuth2AuthorizationServer.AsymmetricKey, OAuth2AuthorizationServer.AsymmetricKey)); - string username, scope; + string username; + HashSet<string> scope; var error = resourceServer.VerifyAccess(new HttpRequestInfo(httpDetails, requestUri), out username, out scope); if (error == null) { - string[] scopes = scope.Split(new char[] { ' ' }); - var principal = new OAuthPrincipal(username, scopes); + var principal = new OAuthPrincipal(username, scope.ToArray()); return principal; } else { return null; |