summaryrefslogtreecommitdiffstats
path: root/projecttemplates/RelyingPartyLogic/SpecialAccessTokenAnalyzer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/SpecialAccessTokenAnalyzer.cs')
-rw-r--r--projecttemplates/RelyingPartyLogic/SpecialAccessTokenAnalyzer.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/projecttemplates/RelyingPartyLogic/SpecialAccessTokenAnalyzer.cs b/projecttemplates/RelyingPartyLogic/SpecialAccessTokenAnalyzer.cs
index f189433..d4a7e49 100644
--- a/projecttemplates/RelyingPartyLogic/SpecialAccessTokenAnalyzer.cs
+++ b/projecttemplates/RelyingPartyLogic/SpecialAccessTokenAnalyzer.cs
@@ -23,11 +23,11 @@ namespace RelyingPartyLogic {
: base(authorizationServerPublicSigningKey, resourceServerPrivateEncryptionKey) {
}
- public override bool TryValidateAccessToken(DotNetOpenAuth.Messaging.IDirectedProtocolMessage message, string accessToken, out string user, out string scope) {
+ public override bool TryValidateAccessToken(DotNetOpenAuth.Messaging.IDirectedProtocolMessage message, string accessToken, out string user, out HashSet<string> scope) {
bool result = base.TryValidateAccessToken(message, accessToken, out user, out scope);
if (result) {
// Ensure that clients coming in this way always belong to the oauth_client role.
- scope += " " + "oauth_client";
+ scope.Add("oauth_client");
}
return result;