Spring Security: user service UserDetailsService source code analysis

In the previous blog, the blogger introduced the UserDetails interface of Spring Security and its implementation. Spring Security uses the UserDetails instance (the instance of the implementation class) to represent the user. When the client authenticates (provide the user name and password), Spring Security will obtain the corresponding UserDe ...

Posted by Matth_S on Tue, 04 Jan 2022 21:27:20 +0100

I want SMS login, email login and QQ login. What should I do?

@[toc]Today, I want to talk to you about the multi Realm authentication strategy in Shiro ~In the project, if we want multiple login methods such as mobile phone verification code login, third-party QQ login and email login to coexist, we can consider implementing them through multiple realms in Shiro. In specific operations, one Realm just cor ...

Posted by jlive on Tue, 09 Nov 2021 01:42:50 +0100

Spring security uses redis to achieve single sign on

preface This paper uses springsecurity oauth2 + redis to realize single sign on. Now, if you want to use springsecurity to realize single sign on, the more popular method is to use jwt. Although jwt has many advantages and can carry a lot of information, it is stateless, and the server does not need to save its information, so there is a ...

Posted by aximbigfan on Fri, 22 Oct 2021 10:03:43 +0200

Security login authentication process analysis

Recently, when I was writing my graduation project, I used this framework. My partner gave me a demand for multiple login methods. He said that only account and password login were not very good, and asked me to add several methods, such as SMS authentication login, email authentication login, third-party login, etc. (the first two have been im ...

Posted by James138 on Sat, 25 Sep 2021 12:30:40 +0200