diff options
Diffstat (limited to 'projecttemplates/WebFormsRelyingParty/Model.IssuedAccessToken.cs')
-rw-r--r-- | projecttemplates/WebFormsRelyingParty/Model.IssuedAccessToken.cs | 6 |
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; } } |