summaryrefslogtreecommitdiffstats
path: root/projecttemplates/RelyingPartyLogic/OAuthAuthenticationModule.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-03 08:33:33 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-03 08:33:33 -0800
commit1fdcca1a8019189237e86907f220307e2ccd61c9 (patch)
tree785a8c82ec1d8884fc51c201c23040923cbfa6fc /projecttemplates/RelyingPartyLogic/OAuthAuthenticationModule.cs
parent88dd1128c0c696263dd8fb5991681635d57a4d72 (diff)
downloadDotNetOpenAuth-1fdcca1a8019189237e86907f220307e2ccd61c9.zip
DotNetOpenAuth-1fdcca1a8019189237e86907f220307e2ccd61c9.tar.gz
DotNetOpenAuth-1fdcca1a8019189237e86907f220307e2ccd61c9.tar.bz2
Removes OAuthPrincipal in favor of ClaimsPrincipal.
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/OAuthAuthenticationModule.cs')
-rw-r--r--projecttemplates/RelyingPartyLogic/OAuthAuthenticationModule.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/projecttemplates/RelyingPartyLogic/OAuthAuthenticationModule.cs b/projecttemplates/RelyingPartyLogic/OAuthAuthenticationModule.cs
index 452a898..3d37e1f 100644
--- a/projecttemplates/RelyingPartyLogic/OAuthAuthenticationModule.cs
+++ b/projecttemplates/RelyingPartyLogic/OAuthAuthenticationModule.cs
@@ -8,6 +8,7 @@ namespace RelyingPartyLogic {
using System;
using System.Collections.Generic;
using System.Linq;
+ using System.Security.Claims;
using System.Security.Principal;
using System.Threading;
using System.Threading.Tasks;
@@ -84,7 +85,7 @@ namespace RelyingPartyLogic {
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.Web.Security.RoleManagerEventArgs"/> instance containing the event data.</param>
private void roleManager_GetRoles(object sender, RoleManagerEventArgs e) {
- if (this.application.User is DotNetOpenAuth.OAuth.ChannelElements.OAuthPrincipal) {
+ if (this.application.User is ClaimsPrincipal) {
e.RolesPopulated = true;
}
}