# springboot-shiro-jwt **Repository Path**: myloveyou/springboot-shiro-jwt ## Basic Information - **Project Name**: springboot-shiro-jwt - **Description**: springboot-shiro-jwt 多Realm认证,jwt授权 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 50 - **Created**: 2024-11-06 - **Last Updated**: 2024-11-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # springboot-shiro-jwt #### 介绍 基于Springboot,shiro,mybatis-plus等开源框架构建的单体架构项目 接口文档地址:http://localhost:8888/doc.html #### 新版的shiro默认使用Argon2密码哈希算法 Argon2描述详见:https://argon2-cffi.readthedocs.io/en/stable/argon2.html #### 项目用到的框架/工具简介与其仓库地址 * SpringBoot https://github.com/spring-projects/spring-boot/releases * jwt https://github.com/auth0/java-jwt/tags * mybatis-plus https://github.com/baomidou/mybatis-plus/releases * shiro2 https://github.com/apache/shiro/tags * hutool https://github.com/dromara/hutool/releases * minio https://github.com/minio/minio-java/releases * knife4j https://gitee.com/xiaoym/knife4j/releases * mica-auto https://github.com/lets-mica/mica-auto/releases * spring-javaformat https://github.com/spring-io/spring-javaformat/releases * reflections https://github.com/ronmamo/reflections/releases #### 其它项目 * 配套web前端项目 https://gitee.com/knightdreams/vue3-mobile-login-demo * 配套android项目 https://gitee.com/knightdreams/android-login-demo * 配套管理端项目 https://gitee.com/knightdreams/knightdreams-admin * 微服务架构项目 https://gitee.com/knightdreams/spring-cloud-alibaba-2022 #### 认证流程 ```mermaid flowchart TD Subject.login --> SecurityManager.login SecurityManager.login --> Authenticator.authenticate Authenticator.authenticate --> CustomModularRealmAuthenticator.doMultiRealmAuthentication CustomModularRealmAuthenticator.doMultiRealmAuthentication -- 根据AuthenticationToken匹配Realm --> ModularRealmAuthenticator.doSingleRealmAuthentication ModularRealmAuthenticator.doSingleRealmAuthentication -- 执行匹配到的realm --> Realm.getAuthenticationInfo Realm.getAuthenticationInfo -- 返回AuthenticationInfo --> AuthenticationInfo AuthenticationInfo --> DefaultSecurityManager.createSubject DefaultSecurityManager.createSubject -- 返回subject --> Subject ``` #### 使用说明 使用遇到问题可以加QQ群: [![加入QQ群](https://img.shields.io/badge/689932210-blue.svg)](https://jq.qq.com/?_wv=1027&k=5x1EdC8) 欢迎您进群进行技术交流 如果此项目帮到您的话,欢迎star,您的star就是对我最大的鼓励 可以关注一下我的博客,不定期更新技术文章 https://knightdreams6.github.io/