summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-08-07 08:15:37 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-08-07 08:15:37 -0700
commit0d45d4d3a519f6ae15e504c976d2b2e6a268eddf (patch)
treed18ef0e47fb31d4d68a361650a1b016ea89c0cff
parent384f5a0e7a3e02fb1ded7dfbb8f44d039c0c8258 (diff)
downloadDotNetOpenAuth-0d45d4d3a519f6ae15e504c976d2b2e6a268eddf.zip
DotNetOpenAuth-0d45d4d3a519f6ae15e504c976d2b2e6a268eddf.tar.gz
DotNetOpenAuth-0d45d4d3a519f6ae15e504c976d2b2e6a268eddf.tar.bz2
Renamed LoginPersistence enum values.
-rw-r--r--src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdLogin.cs6
-rw-r--r--src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyControlBase.cs12
2 files changed, 9 insertions, 9 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdLogin.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdLogin.cs
index 2282d9e..b0dce61 100644
--- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdLogin.cs
+++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdLogin.cs
@@ -551,8 +551,8 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
[DefaultValue(RememberMeDefault)]
[Description("Whether a successful authentication should result in a persistent cookie being saved to the browser.")]
public bool RememberMe {
- get { return this.UsePersistentCookie != LoginPersistence.None; }
- set { this.UsePersistentCookie = value ? LoginPersistence.PersistAuthentication : LoginPersistence.None; }
+ get { return this.UsePersistentCookie != LoginPersistence.Session; }
+ set { this.UsePersistentCookie = value ? LoginPersistence.PersistentAuthentication : LoginPersistence.Session; }
}
/// <summary>
@@ -644,7 +644,7 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
// use conditional here to prevent infinite recursion
// with CheckedChanged event.
- bool rememberMe = value != LoginPersistence.None;
+ bool rememberMe = value != LoginPersistence.Session;
if (this.rememberMeCheckBox.Checked != rememberMe) {
this.rememberMeCheckBox.Checked = rememberMe;
}
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyControlBase.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyControlBase.cs
index 45390dd..ed305e8 100644
--- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyControlBase.cs
+++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyControlBase.cs
@@ -105,7 +105,7 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
/// <summary>
/// Default value of <see cref="UsePersistentCookie"/>.
/// </summary>
- private const LoginPersistence UsePersistentCookieDefault = LoginPersistence.None;
+ private const LoginPersistence UsePersistentCookieDefault = LoginPersistence.Session;
/// <summary>
/// Default value of <see cref="LoginMode"/>.
@@ -251,20 +251,20 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
/// The user should only be logged in as long as the browser window remains open.
/// Nothing is persisted to help the user on a return visit. Public kiosk mode.
/// </summary>
- None,
+ Session,
/// <summary>
/// The user should only be logged in as long as the browser window remains open.
/// The OpenID Identifier is persisted to help expedite re-authentication when
/// the user visits the next time.
/// </summary>
- PersistIdentifier,
+ SessionAndPersistentIdentifier,
/// <summary>
/// The user is issued a persistent authentication ticket so that no login is
/// necessary on their return visit.
/// </summary>
- PersistAuthentication,
+ PersistentAuthentication,
}
/// <summary>
@@ -654,13 +654,13 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
}
if (!args.Cancel) {
- if (this.UsePersistentCookie == LoginPersistence.PersistIdentifier) {
+ if (this.UsePersistentCookie == LoginPersistence.SessionAndPersistentIdentifier) {
Page.Response.SetCookie(CreateIdentifierPersistingCookie(response));
}
switch (this.LoginMode) {
case LoginSiteNotification.FormsAuthentication:
- FormsAuthentication.RedirectFromLoginPage(response.ClaimedIdentifier, this.UsePersistentCookie == LoginPersistence.PersistAuthentication);
+ FormsAuthentication.RedirectFromLoginPage(response.ClaimedIdentifier, this.UsePersistentCookie == LoginPersistence.PersistentAuthentication);
break;
case LoginSiteNotification.None:
default: