All Projects → hiwepy → shiro-pac4j-spring-boot-starter

hiwepy / shiro-pac4j-spring-boot-starter

Licence: Apache-2.0 license
pac4j + shiro

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to shiro-pac4j-spring-boot-starter

shiro-cas-spring-boot-starter
spring-boot-starter-shiro-cas
Stars: ✭ 16 (+14.29%)
Mutual labels:  spring-boot-starter, shiro
localstack-spring-boot-starter
SpringBoot Starter for Localstack
Stars: ✭ 38 (+171.43%)
Mutual labels:  spring-boot-starter
Bucket4j Spring Boot Starter
Spring Boot Starter for Bucket4j
Stars: ✭ 127 (+807.14%)
Mutual labels:  spring-boot-starter
Tutorial Soap Spring Boot Cxf
Tutorial how to create, test, deploy, monitor SOAP-Webservices using Spring Boot and Apache CXF
Stars: ✭ 167 (+1092.86%)
Mutual labels:  spring-boot-starter
Spring Backend Boilerplate
The modularized backend boilerplate based on Spring Boot Framework, easy to get started and add your business part.
Stars: ✭ 134 (+857.14%)
Mutual labels:  spring-boot-starter
Rocketmq Spring Boot Starter
rocketmq-spring-boot-starter
Stars: ✭ 178 (+1171.43%)
Mutual labels:  spring-boot-starter
Logback Access Spring Boot Starter
Spring Boot Starter for Logback-access
Stars: ✭ 118 (+742.86%)
Mutual labels:  spring-boot-starter
logback-access-spring-boot-starter
Spring Boot Starter for Logback-access.
Stars: ✭ 153 (+992.86%)
Mutual labels:  spring-boot-starter
cloud-note
无道云笔记,原生JSP的仿有道云笔记项目
Stars: ✭ 66 (+371.43%)
Mutual labels:  shiro
Opentracing Toolbox
Best-of-breed OpenTracing utilities, instrumentations and extensions
Stars: ✭ 161 (+1050%)
Mutual labels:  spring-boot-starter
Cas Client Autoconfig Support
Annotation-based configuration support for Apereo CAS Java clients
Stars: ✭ 153 (+992.86%)
Mutual labels:  spring-boot-starter
Grpc Spring Boot Starter
Spring Boot starter module for gRPC framework.
Stars: ✭ 1,829 (+12964.29%)
Mutual labels:  spring-boot-starter
Graphql Spqr Spring Boot Starter
Spring Boot 2 starter powered by GraphQL SPQR
Stars: ✭ 187 (+1235.71%)
Mutual labels:  spring-boot-starter
Jasypt Spring Boot
Jasypt integration for Spring boot
Stars: ✭ 1,948 (+13814.29%)
Mutual labels:  spring-boot-starter
CampusForum
校园论坛
Stars: ✭ 62 (+342.86%)
Mutual labels:  shiro
Cassandre Trading Bot
Cassandre makes it easy to create your Java crypto trading bot. Our Spring boot starter takes care of exchange connections, accounts, orders, trades, and positions.
Stars: ✭ 120 (+757.14%)
Mutual labels:  spring-boot-starter
Grpc Spring Boot Starter
Spring Boot starter module for gRPC framework.
Stars: ✭ 2,190 (+15542.86%)
Mutual labels:  spring-boot-starter
Riptide
Client-side response routing for Spring
Stars: ✭ 169 (+1107.14%)
Mutual labels:  spring-boot-starter
faucet-pipeline-spring-boot-starter
faucet-pipeline for Spring Boot
Stars: ✭ 17 (+21.43%)
Mutual labels:  spring-boot-starter
rbac-shiro
基于shiro的分布式权限管理系统。超级管理员:admin 密码:123456q 试用账号:test_001 密码:123456q; QQ交流群:333597649 Rbac Shiro
Stars: ✭ 52 (+271.43%)
Mutual labels:  shiro

shiro-pac4j-spring-boot-starter

说明

基于开源项目 buji-pac4j + pac4j 实现的Shiro单点登录 Spring Boot Starter 实现

  1. Apache Shiro是一个强大且易用的Java安全框架,执行身份验证、授权、密码学和会话管理。使用Shiro的易于理解的API,您可以快速、轻松地获得任何应用程序,从最小的移动应用程序到最大的网络和企业应用程序。
  2. shiro-pac4j-spring-boot-starter 是在引用 shiro-spring-boot-startershiro-spring-boot-web-startershiro-biz-spring-boot-starter 的基础上整合 pac4j 的 Spring Boot 整合;
  3. 整合 Pac4j 实现与Cas认证的对接,借助Pac4j已有的丰富认证协议实现,可使我们的程序具备多种认证协议的支持能力,可在后期很方便的对接其他认证协议;如 OAuth2、OpenID 等

Maven

<dependency>
	<groupId>com.github.hiwepy</groupId>
	<artifactId>shiro-pac4j-spring-boot-starter</artifactId>
	<version>${project.version}</version>
</dependency>

配置参考

application.yml

################################################################################################################  
###Shiro 权限控制基本配置:  
################################################################################################################
shiro:
  enabled: true
  validate-captcha: false
  login-url: /authz/login
  redirect-url: /authz/index
  success-url: /index
  unauthorized-url: /error
  failure-url: /error
  annotations: 
    enabled: true
  web: 
    enabled: true
  filter-chain-definition-map: 
    / : anon
    /*favicon.ico : anon
    /webjars/** : anon
    /assets/** : anon
    /html/** : anon
    /error* : anon
    /logo/** : anon
    /kaptcha* : anon
    /sockets/** : anon
    /logout : logout
    /callback : cas
    /index : sessionExpired,sessionControl,authc
    /** : sessionExpired,sessionControl,authc
  pac4j:
    cas:
      accept-any-proxy: true
      authorizers: securityheaders, cas
      enabled: true
      encoding: UTF-8
      cas-client-name: cas
      cas-server-login-url: http://127.0.0.1:10000/cas/login
      cas-server-logout-url: http://127.0.0.1:10000/cas/logout
      cas-server-url-prefix: http://127.0.0.1:10000/cas
      client-name: cas
      server-callback-url: /callback
      server-name: http://127.0.0.1:8080

参考资料

http://shiro.apache.org/documentation.html

http://www.pac4j.org/

http://jinnianshilongnian.iteye.com/blog/2018398

http://blog.csdn.net/change_on/article/details/76302161

http://blog.csdn.net/ywslakers123/article/details/78288112

Jeebiz 技术社区

Jeebiz 技术社区 微信公共号小程序,欢迎关注反馈意见和一起交流,关注公众号回复「Jeebiz」拉你入群。

公共号 小程序
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].