Shiro permission management framework: in-depth analysis of Session management in Shiro

In fact, some of Shiro's learning notes should have been written for a long time, because the late stage of lazy cancer and procrastination has not been implemented. Until today, a project of the company encountered the problem of frequent disconnection of single sign on in the cluster environment. In order to solve this problem, Shiro's releva ...

Posted by CBR on Sat, 02 Nov 2019 05:22:57 -0700

pring boot integrates redis to realize shiro's distributed session sharing

As we know, shiro manages sessions through Session manager, while Session operations are implemented through SessionDao. By default, shiro implements two kinds of SessionDao: cacheingsessiondao and MemorySessionDAO. When we use EhCache caching, we use cacheingsessiondao. When we do not use caching, we choose internal based caching Therefore, if ...

Posted by paschim on Fri, 01 Nov 2019 11:21:02 -0700

Shiro's many Realm certifications

Multi Realm authentication Problem introduction Implementation plan First, MD5 and sha1 encryption are implemented respectively. MD5 Sha1 Realize multi Realm authentication in the project Implement Mapper interface Implement the corresponding mapper.xml file service processing Add multi Realm con ...

Posted by Noctule on Fri, 25 Oct 2019 10:24:54 -0700

JDBC Realm of Apache shiro's built-in Realm

Realm Profile: Again, data domains, Shiro, and connectors for secure data are like jdbc connecting to databases; getting information about authentication and authorization through realm realm effect: Shiro retrieves security data from Realm The default home realm: idae looks at realm inheritance relationships with default implementations a ...

Posted by Gappa on Sun, 13 Oct 2019 11:11:33 -0700

Shiro Integrated SSM Based on URL Privilege Management

After learning shiro, we can say that we try to add Shiro to ssm and do a set of URL-based rights management. Other preparatory work is not much to say, direct operation, see the effect and then understand. Table structure As follows, the database name can be changed by itself, but it should be consistent with the name of the database you cr ...

Posted by luiddog on Thu, 10 Oct 2019 05:32:51 -0700

JAVA Recording Operational Logging Steps

Explain System log plays an important role in daily management and maintenance, but there are many problems in log recording. Irregularity of log records Repeatability of log records Difficult classification of log records At present, there are three main aspects of log records. Entry and exit ...

Posted by BigX on Tue, 08 Oct 2019 18:21:02 -0700

spring-boot-plus integrates SpringBoot+Shiro+JWT privilege management

SpringBoot+Shiro+JWT Privilege Management 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 an ...

Posted by zampu on Tue, 08 Oct 2019 11:11:53 -0700

How to configure swagger with shiro

In order to save the time and cost of developers, swagger plug-ins arise spontaneously, save your time to write development documents, and play happily, without talking nonsense. Next I will explain and explain using the popular swagger-bootstrap-ui plug-in on github, which may be different from swagger in configuration, but the principle is ba ...

Posted by trex005 on Sun, 06 Oct 2019 02:10:47 -0700

Shiro+ehcache Configuration Cache Authentication Information and Authorization Information

<bean id="securityManager" class="org.apache.shiro.web.mgt.DefaultWebSecurityManager"> <property name="realm" ref="userRealm"/> <property name="cacheManager" ref="ehCacheManager"/> </bean> <bean id="ehCacheManager" class="org.apache.shiro.cache.ehcache.EhCach ...

Posted by nigeledge on Mon, 30 Sep 2019 07:21:24 -0700

SpringBoot Integrated Spring Security Getting Started Experience

1. Preface Both Spring Security and Apache Shiro are security frameworks that provide authentication and authorization for Java applications. The difference between them Spring Security: Heavy Safety Framework Apache Shiro: Lightweight Security Framework Refer to another article in the subtitle on shiro's authorization and certification: Spri ...

Posted by Plxply on Sun, 29 Sep 2019 23:50:21 -0700