remember-me

How to fix “Invalid remember-me token (Series/token) mismatch” Error?

断了今生、忘了曾经 提交于 2021-02-07 09:18:13
问题 I use Spring Security persistent logins. I persist the remember me token in my database. Sometimes I get the following error: | Error 2013-07-02 13:54:14,859 [http-nio-8080-exec-2] ERROR [/buddyis].[gsp] - Servlet.service() for servlet [gsp] in context with path [/buddyis] threw exception Message: Invalid remember-me token (Series/token) mismatch. Implies previous cookie theft attack. Line | Method ->> 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor - - - - - - - - - - - - - - - -

How to fix “Invalid remember-me token (Series/token) mismatch” Error?

房东的猫 提交于 2021-02-07 09:13:59
问题 I use Spring Security persistent logins. I persist the remember me token in my database. Sometimes I get the following error: | Error 2013-07-02 13:54:14,859 [http-nio-8080-exec-2] ERROR [/buddyis].[gsp] - Servlet.service() for servlet [gsp] in context with path [/buddyis] threw exception Message: Invalid remember-me token (Series/token) mismatch. Implies previous cookie theft attack. Line | Method ->> 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor - - - - - - - - - - - - - - - -

How to rename the table persistent_logins in Spring-Security

纵然是瞬间 提交于 2020-12-05 11:39:08
问题 The default table name that manages remember-me authentication in Spring Security is "persistent_logins". Due to Database naming conventions, I need to rename this table " persistent_logins " to " T_PERSISTENT_LOGINS ". Any help please. 回答1: You'll need to write your own implementation of JdbcTokenRepositoryImpl Create a class extending JdbcDaoSupport and implementing PersistentTokenRepository Configure this class as a bean in your Spring Application Context Config, then set it as the token

Remember-me fails when two or more requests come at the same time. (without Spring Security)

China☆狼群 提交于 2020-04-14 07:41:12
问题 I'm trying to fix a remember-me related problem. This function was built manually, without Spring Security. Here are some details. I wanted to use Spring Security to implement remember-me functionality, but... We don't have user related data in our DB. The data is only accessible with a 3rd party API. And the API returns the data via cookies. And I don't know how to use this with Spring Security. I'm working on a legacy server without Spring Security. Maybe a bit late to implement Spring

Laravel 5.8 : Remember me token not being saved in database

北城以北 提交于 2020-01-25 10:04:12
问题 The token is created as a cookie, I can see it in my browser, but it's not being saved in the database. Here is my User model : <?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable implements MustVerifyEmail { use Notifiable; public $timestamps = false; protected $table = 'accounts'; /** * The attributes that are mass assignable. * * @var array */

Laravel 5.8 : Remember me token not being saved in database

时光总嘲笑我的痴心妄想 提交于 2020-01-25 10:03:13
问题 The token is created as a cookie, I can see it in my browser, but it's not being saved in the database. Here is my User model : <?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable implements MustVerifyEmail { use Notifiable; public $timestamps = false; protected $table = 'accounts'; /** * The attributes that are mass assignable. * * @var array */

Spring Security custom authentication and remember me

只谈情不闲聊 提交于 2020-01-15 06:22:08
问题 I used this tutorial to implement a custom authentication manager. Login and logout works fine. Now I want to use spring security remember-me authentication. As far as I know, remember-me requires a userDetailService. So I implemented a custom userDetailService . On the login page I added a checkbox with name _spring_security_remember_me . But, remember-me doesn't work. The remember-me cookie is not set after succesful login. I think this is a configuration problem or do I need to implement a

How to make Android webview remember username and password?

那年仲夏 提交于 2020-01-11 09:08:34
问题 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

How to make userform in Excel VBA remember password when 'red x' is pressed

喜欢而已 提交于 2020-01-05 23:30:53
问题 I have a userform that calls a function with username/password prompt. The user usually has to run it more times and each time is prompted for the login credentials so I want the userform to remember the user/password once it has been given until the workbook has been closed. It is working fine until the user presses the 'process' button or closes the userform from the 'close' button, but when he/she closes it with the 'red x', the user/pass disappears on the next run. I know that the 'red x'

How can I use a custom configured RememberMeAuthenticationFilter in spring security?

一个人想着一个人 提交于 2020-01-03 03:25:12
问题 I want to use a slightly customized rememberme functionality with spring security (3.1.0). I declare the rememberme tag like this: <security:remember-me key="JNJRMBM" user-service-ref="gymUserDetailService" /> As I have my own rememberme service I need to inject that into the RememberMeAuthenticationFilter which I define like this: <bean id="rememberMeFilter" class="org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter"> <property name="rememberMeServices"