]> source.dussan.org Git - archiva.git/commitdiff
add a secure cookie property for rememberme
authorOlivier Lamy <olamy@apache.org>
Wed, 19 Dec 2012 23:32:52 +0000 (23:32 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 19 Dec 2012 23:32:52 +0000 (23:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1424222 13f79535-47bb-0310-9956-ffa450edef68

redback-configuration/src/main/java/org/apache/archiva/redback/configuration/UserConfigurationKeys.java
redback-configuration/src/main/resources/org/apache/archiva/redback/config-defaults.properties
redback-policy/src/main/java/org/apache/archiva/redback/policy/RememberMeCookieSettings.java

index d0af5700bbae1293e2411b6e996dc189f1d14e02..18f8cc9a615b3faa7ffd6ef9f7dc07ae2ec0fc2e 100644 (file)
@@ -38,7 +38,6 @@ public interface UserConfigurationKeys
 
     String PASSWORD_ENCODER = "security.policy.password.encoder";
 
-
     String EMAIL_VALIDATION_SUBJECT = "email.validation.subject";
 
     String REMEMBER_ME_PATH = "security.rememberme.path";
@@ -47,6 +46,10 @@ public interface UserConfigurationKeys
 
     String REMEMBER_ME_ENABLED = "security.rememberme.enabled";
 
+    String REMEMBERME_TIMEOUT = "security.rememberme.timeout";
+
+    String REMEMBERME_SECURE = "security.rememberme.secure";
+
     String SIGNON_DOMAIN = "security.signon.domain";
 
     String SIGNON_PATH = "security.signon.path";
@@ -105,8 +108,6 @@ public interface UserConfigurationKeys
 
     String EMAIL_VALIDATION_REQUIRED = "email.validation.required";
 
-    String REMEMBERME_TIMEOUT = "security.rememberme.timeout";
-
     String ALPHA_COUNT_MIN = "security.policy.password.rule.alphacount.minimum";
 
     String ALPHA_COUNT_VIOLATION = "user.password.violation.alpha";
index 846b0b8be6e05a33a72619492e98fc7851cd150d..26b6e8d822f6bffc5746fd66c4ad6c90b67208b5 100644 (file)
@@ -72,6 +72,9 @@ email.validation.subject=Welcome
 security.rememberme.enabled=true
 # Timeout in days ( 365 days = 1 year )
 security.rememberme.timeout=365
+security.rememberme.path=/
+security.rememberme.domain=
+security.rememberme.secure=false
 
 # Single Sign On
 # Timeout in minutes
index e42ca9cdaebb5601178ce65017c7d87c35a44c53..d00452ed4e0481d2837fc8f47f87fde04cae622f 100644 (file)
@@ -48,5 +48,6 @@ public class RememberMeCookieSettings
         this.domain = config.getString( UserConfigurationKeys.REMEMBER_ME_DOMAIN );
         this.path = config.getString( UserConfigurationKeys.REMEMBER_ME_PATH );
         this.enabled = config.getBoolean( UserConfigurationKeys.REMEMBER_ME_ENABLED );
+        config.getBoolean( UserConfigurationKeys.REMEMBERME_SECURE );
     }
 }