remember-me

Automatic Login with Rails?

℡╲_俬逩灬. 提交于 2019-12-02 19:50:34
I am trying to get up a simple authentication system with Rails' Restful-Authentication plugin, and am just wondering how it works, b/c I can't seem to figure out what the requirements are for cookies, and how to make it so the browser always remembers you (for 6+ months). Few questions: 1) How do you do remember_me's for ruby's restful_authentication? I can't seem to find a good one-liner to solve this problem... If a user signs up and checks "Remember Me", how does the rails application get the session/cookie without the user doing anything but going to the page the next time they go to the

How to make Android webview remember username and password?

非 Y 不嫁゛ 提交于 2019-12-01 20:29:21
Here with the code in Android Studio. I also add the html code that below the Android Studio code, using javascript to remember the username and password in cookies. It works in some android device only. I don'y know why. I would like to make it works for all the android device. Hope it will be a simple way to do it. Please kindly help. I want the user typed in his username/password one time, it should be filled out on next visit. public class MainActivity extends AppCompatActivity { private Toolbar toolbar; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate

How do I use “Remember Me” authentication with Spring Security and LDAP?

半腔热情 提交于 2019-12-01 11:29:42
I want to use a Spring Security's "Remember me" with LDAP authentication. LDAP authentication configuration is described here , I've just made some tiny changes. Could you explain to me how can i add "Remember me" in that configuration? Or, may be, you can give me a sample which describes how to do it. Thank you. You really just need to give the remember-me attribute a data-source-ref or a token-repository-ref and a user-service-ref. I saw some other examples that used a voter based access-decision-manager-ref in the http element, but that seemed to void the use-expressions="true." The only

How do I use “Remember Me” authentication with Spring Security and LDAP?

孤人 提交于 2019-12-01 09:56:03
问题 I want to use a Spring Security's "Remember me" with LDAP authentication. LDAP authentication configuration is described here, I've just made some tiny changes. Could you explain to me how can i add "Remember me" in that configuration? Or, may be, you can give me a sample which describes how to do it. Thank you. 回答1: You really just need to give the remember-me attribute a data-source-ref or a token-repository-ref and a user-service-ref. I saw some other examples that used a voter based

Remember me in jsp login page [duplicate]

女生的网名这么多〃 提交于 2019-12-01 00:27:56
This question already has an answer here: How do I keep a user logged into my site for months? 2 answers I have a login screen and i am authenticating users by checking credentials from database. But how can i implement Remember me check box ? Like in gmail remember me(stay signed in) is present. I am using sign.jsp and Auth servlet (doPost) and oracle 10g ee for authentication. You can use cookies for this purpose. In your servlet response handler (doPost, doGet etc.) create a cookie in the following way - if(remember_me_is_checked) { Cookie c = new Cookie("userid", userId.toString()); c

Remember me in jsp login page [duplicate]

跟風遠走 提交于 2019-11-30 18:59:36
问题 This question already has answers here : How do I keep a user logged into my site for months? (2 answers) Closed 2 years ago . I have a login screen and i am authenticating users by checking credentials from database. But how can i implement Remember me check box ? Like in gmail remember me(stay signed in) is present. I am using sign.jsp and Auth servlet (doPost) and oracle 10g ee for authentication. 回答1: You can use cookies for this purpose. In your servlet response handler (doPost, doGet

Best way for hashing a “remember me” cookie token

你说的曾经没有我的故事 提交于 2019-11-30 14:59:33
I'm trying to implement a " remember me " feature, following the guidelines provided here: The definitive guide to form-based website authentication , and here: http://fishbowl.pastiche.org/2004/01/19/persistent_login_cookie_best_practice/ It appears that the "cookie token" should be hashed when stored in DB (if an attacker has access to DB, unhashed tokens look like plain login/passwords, allowing to log in on the website). Looking for a good hashing algorithm, I've found this recommended technique using bcrypt : https://stackoverflow.com/a/6337021/488666 I've tried it and found that with the

Is this a reasonable way to implement 'remember me' functionality

北慕城南 提交于 2019-11-30 14:03:16
问题 If a user logs into the site, and says 'remember me', we get the unique identifier for the user, encrypt this with RijndaelManaged with a keysize of 256 and place this in a httponly cookie with a set expiration of say.. 120 days, the expiration is refreshed each successful request to the server. Optionally we generate the initialization vector based upon the user agent and part of the ipv4 address (the last two octets). Obviously theres no real expiration system built into this, the user

Is this a reasonable way to implement 'remember me' functionality

主宰稳场 提交于 2019-11-30 09:24:19
If a user logs into the site, and says 'remember me', we get the unique identifier for the user, encrypt this with RijndaelManaged with a keysize of 256 and place this in a httponly cookie with a set expiration of say.. 120 days, the expiration is refreshed each successful request to the server. Optionally we generate the initialization vector based upon the user agent and part of the ipv4 address (the last two octets). Obviously theres no real expiration system built into this, the user could technically use this encrypted key forever (given we don't change the server side key).. I considered

Laravel 4 Remember me expire time

北城余情 提交于 2019-11-30 05:03:04
I am fairly new to Laravel and had a question regarding the remember me function. I have successfully enabled the "remember me" function by attaching a second argument to the Auth::attempt method like so. if (Auth::attempt(array('email' => $email, 'password' => $password), true)) { // The user is being remembered... } As noted in the documentation, this enables remember me indefinitely or until an user manually logs out. I essentially want to set an expire date on the "remember me" function. Looking at the console, I can see that enabling "remember me" generates a remember_{HASH} cookie. What