diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-12 02:44:39 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-12 02:44:39 -0700 |
commit | bc0e1952c150871c5c7f12d9d82d5e6cb2c69bfc (patch) | |
tree | 5e0db0db1c0b10c70b7868820f93367422b9d6dd /src | |
parent | 48e154398f0656649e9a00ed26b4f2a6f9bd8b27 (diff) | |
download | DotNetOpenAuth-bc0e1952c150871c5c7f12d9d82d5e6cb2c69bfc.zip DotNetOpenAuth-bc0e1952c150871c5c7f12d9d82d5e6cb2c69bfc.tar.gz DotNetOpenAuth-bc0e1952c150871c5c7f12d9d82d5e6cb2c69bfc.tar.bz2 |
Fixed UsePersistentCookie persistence in control base class.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyControlBase.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyControlBase.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyControlBase.cs index a35d532..825b438 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyControlBase.cs +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyControlBase.cs @@ -400,6 +400,12 @@ namespace DotNetOpenAuth.OpenId.RelyingParty { var response = this.RelyingParty.GetResponse(); if (response != null) { + string persistentString = response.GetCallbackArgument(UsePersistentCookieCallbackKey); + bool persistentBool; + if (persistentString != null && bool.TryParse(persistentString, out persistentBool)) { + this.UsePersistentCookie = persistentBool; + } + switch (response.Status) { case AuthenticationStatus.Authenticated: this.OnLoggedIn(response); |