summaryrefslogtreecommitdiffstats
path: root/projecttemplates/WebFormsRelyingParty/Model.IssuedAccessToken.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-11-12 23:52:27 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2009-11-12 23:52:27 -0800
commit6c7a41277312bfc42aabf5ecbe5fc58e99243f37 (patch)
treeaa432a97b2c7db8532939fd43c7faccca62e2488 /projecttemplates/WebFormsRelyingParty/Model.IssuedAccessToken.cs
parentf7c578cc7c7713de3348a839d0d9caeba643a33d (diff)
downloadDotNetOpenAuth-6c7a41277312bfc42aabf5ecbe5fc58e99243f37.zip
DotNetOpenAuth-6c7a41277312bfc42aabf5ecbe5fc58e99243f37.tar.gz
DotNetOpenAuth-6c7a41277312bfc42aabf5ecbe5fc58e99243f37.tar.bz2
Fixed a bunch of bugs in the project template's oauth sp implementation.
Diffstat (limited to 'projecttemplates/WebFormsRelyingParty/Model.IssuedAccessToken.cs')
-rw-r--r--projecttemplates/WebFormsRelyingParty/Model.IssuedAccessToken.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/projecttemplates/WebFormsRelyingParty/Model.IssuedAccessToken.cs b/projecttemplates/WebFormsRelyingParty/Model.IssuedAccessToken.cs
index b2eb132..ab064c3 100644
--- a/projecttemplates/WebFormsRelyingParty/Model.IssuedAccessToken.cs
+++ b/projecttemplates/WebFormsRelyingParty/Model.IssuedAccessToken.cs
@@ -45,6 +45,12 @@ namespace WebFormsRelyingParty {
// We don't really have the concept of a single username, but we
// can use any of the authentication tokens instead since that
// is what the rest of the web site expects.
+ if (!this.UserReference.IsLoaded) {
+ this.UserReference.Load();
+ }
+ if (!this.User.AuthenticationTokens.IsLoaded) {
+ this.User.AuthenticationTokens.Load();
+ }
return this.User.AuthenticationTokens.First().ClaimedIdentifier;
}
}