Shiro implements RememberMe functionality

This article describes and implements the RememberMe function in Shiro. 1 introduce Shiron provides the ability to remember me, such as when visiting websites like Taobao, closing the browser and remembering who you are the next time you open it, and accessing it without having to sign in again the next time you visit. The basic process is as ...

Posted on Thu, 04 Jun 2020 15:23:18 -0700 by V_dirt_God

Realization of permission model based on shiro

1. shiro Apache Shiro is a powerful and easy-to-use Java security framework that performs authentication, authorization, password, and session management. With Shiro's easy to understand API, you can quickly and easily access any application, from the smallest mobile application to the largest network and enterprise application. Authentica ...

Posted on Sat, 23 May 2020 03:24:28 -0700 by lulubell

Multi dimensional current limiting of gateway

github https://github.com/marcosbarbero/spring-cloud-zuul-ratelimit Spring cloud zuul ratelimit description Spring cloud zuul ratelimit is an extension of distributed current limiting strategy integrated with zuul Restrict the flow of the requested target URL (for example, how many times a URL can be called per minute) Restrict the ...

Posted on Thu, 14 May 2020 01:25:46 -0700 by visonardo

Google auth combined with shiro two factor authentication

Login status: if Google auth is null/""/0: do not verify 1: enable dual factor authentication but not set 2: enable dual factor authentication and it has been set After the user logs in, first verify whether the account password is correct. Here, it is not verified by shiro, and it is verified by the background itself. After the ver ...

Posted on Mon, 11 May 2020 07:17:53 -0700 by chipmunken

Two detailed methods of integrating Shiro with Spring Boot

In general, the mainstream solution for permission management in Spring Boot is Spring Security. However, Shiro can also be used only from a technical point of view. Comparison between Spring Security and Shiro: Spring Security is a heavyweight security management framework; Shiro is a lightweight security management framework The concept of S ...

Posted on Mon, 23 Mar 2020 00:53:31 -0700 by djremiasz

Simple implementation of Shilo single sign on

Mode one multiple login sso method of MVC Controller @RequestMapping(value = "ssoLogin.do") public String sso(String userName, String password,HttpServletRequest request, HttpServletResponse response) { AuthUser user = userDao.getUserByname(userName); UsernamePasswordToken token = new UsernamePasswordToken(username, password); //Get the ...

Posted on Wed, 18 Mar 2020 07:36:58 -0700 by daneth1712

CAS single sign on - multiple authentication methods

Today, we will talk about the multiple authentication methods of CAS. In the previous article, we explained the construction of CAS basic services and completed the simple deployment of CAS authentication service center. If you forget, you can review it first—— CAS single sign on (2) - building basic services. There are many ways ...

Posted on Wed, 18 Mar 2020 04:56:42 -0700 by rg_22uk

Shiro -- Integrated SSM framework

1. Configure web.xml <!-- Shiro Frame entrance --> <filter> <filter-name>shiroFilter</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> <init-param> <param-name>targetFilterLifecycle</param-name> ...

Posted on Sat, 07 Mar 2020 07:06:24 -0800 by gabe

Spring boot 2. X integrates redis cache Shiro

1. In the case, shrio logic authentication will frequently query the database and consume performance 2. Transform it and use the cache middleware learned before <!--shiro integration redis cache,Different from the previous cache--> <dependency> <groupId>org.crazycake</groupId&g ...

Posted on Thu, 27 Feb 2020 22:01:12 -0800 by koolswans

Vue Cli3+SpringBoot

Follow today The blogger Learn the back-end registration encryption and login decryption functions. 1. To be honest, I didn't understand the application of Shiro framework in springboot. So I put the code to record what I did: First, the realm class of the realm package: package realm; import com.exa ...

Posted on Mon, 03 Feb 2020 08:07:24 -0800 by Kunax