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

hiwepy / shiro-cas-spring-boot-starter

Licence: Apache-2.0 license
spring-boot-starter-shiro-cas

Programming Languages

java
68154 projects - #9 most used programming language

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

Auth Center
一站式登录权限管理系统
Stars: ✭ 50 (+212.5%)
Mutual labels:  cas, shiro
Highdsa
2018年本科毕设项目,已更新所有开发和部署文档。基于Dubbo、SSM、Shiro、ELK、ActiveMQ、Redis等实现的一套高可用、高性能、高可扩展的分布式系统架构,实现可支持业务的基础公共服务,API使用Restful风格对外暴露。已经实现的包括:发送邮件服务、FastDFS文件存储服务、ELK实时日志查询服务、Redis缓存服务、Mybatis数据库、阿里短信推送、Goeasy消息推送、Druid监控、ActiveMQ消息队列、shiro权限认证、cas单点登录、权限配置web系统、移动端后台系统。持续更新中......
Stars: ✭ 385 (+2306.25%)
Mutual labels:  cas, shiro
Buji Pac4j
pac4j security library for Shiro: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 444 (+2675%)
Mutual labels:  cas, shiro
Cas Sso Samples
CAS单点登录案例。整合了CAS OAuth2、Apache Shiro、Spring Security等
Stars: ✭ 60 (+275%)
Mutual labels:  cas, shiro
Cas Client Autoconfig Support
Annotation-based configuration support for Apereo CAS Java clients
Stars: ✭ 153 (+856.25%)
Mutual labels:  cas, spring-boot-starter
shiro-pac4j-spring-boot-starter
pac4j + shiro
Stars: ✭ 14 (-12.5%)
Mutual labels:  spring-boot-starter, shiro
Pac4j
Security engine for Java (authentication, authorization, multi frameworks): OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 2,097 (+13006.25%)
Mutual labels:  cas, shiro
doit
spring cloud , CAS , JHipster hybrid sample app
Stars: ✭ 14 (-12.5%)
Mutual labels:  cas, shiro
qynat-spring-boot-starter
A springboot-starter that can achieve Intranet penetration. 一款可以实现内网穿透的springboot-starter。
Stars: ✭ 65 (+306.25%)
Mutual labels:  spring-boot-starter
shib-cas-authn3
Integrates an external CAS Server and Shibboleth IdPv3.
Stars: ✭ 21 (+31.25%)
Mutual labels:  cas
vacomall
☀️☀️ 基于 dubbo 实现的分布式电商平台。
Stars: ✭ 42 (+162.5%)
Mutual labels:  shiro
lemonldap-ng
LemonLDAP::NG main code
Stars: ✭ 49 (+206.25%)
Mutual labels:  cas
crowd-admin
crowd-admin是一个基于Spring,Shiro,Redis/ehcache,Mybatis的通用后台权限管理系统,这里推荐本人另一个基于sprinboot的单点登录系统
Stars: ✭ 51 (+218.75%)
Mutual labels:  shiro
mee-admin
admin、cms、console 等多用途开源后台系统
Stars: ✭ 117 (+631.25%)
Mutual labels:  shiro
cassette
A simple content-addressable storage system for .NET 4.5 and .NET Core
Stars: ✭ 34 (+112.5%)
Mutual labels:  cas
neo4j-java-driver-spring-boot-starter
Automatic configuration of Neo4j's Java Driver for Spring Boot applications
Stars: ✭ 33 (+106.25%)
Mutual labels:  spring-boot-starter
cxf-spring-boot-starter
Enterprise & production ready SOAP webservices powered by Spring Boot & Apache CXF
Stars: ✭ 129 (+706.25%)
Mutual labels:  spring-boot-starter
Quella
Quella是基于SSM+shiro+redis开发的后台脚手架,集成了一些后台通用功能,并集成了一些常用的第三方服务。
Stars: ✭ 52 (+225%)
Mutual labels:  shiro
LazyREST
基于Sping全家桶实现的极速产出RESTful类接口脚手架
Stars: ✭ 21 (+31.25%)
Mutual labels:  shiro
SSM Project
这个一个SSM+shiro+maven+bootstrap的项目实战,经典的图书管理系统。
Stars: ✭ 30 (+87.5%)
Mutual labels:  shiro

shiro-cas-spring-boot-starter

说明

基于开源项目 java-cas-client 实现的Shiro 与 Cas 单点登录 Spring Boot Starter 实现

  1. Apache Shiro是一个强大且易用的Java安全框架,执行身份验证、授权、密码学和会话管理。使用Shiro的易于理解的API,您可以快速、轻松地获得任何应用程序,从最小的移动应用程序到最大的网络和企业应用程序。
  2. shiro-cas-spring-boot-starter 是在引用 shiro-spring-boot-startershiro-spring-boot-web-startershiro-biz-spring-boot-starter 的基础上整合 java-cas-client 的 Spring Boot 整合;
  3. 整合 cas-client 实现与 Cas 认证的对接

Maven

<dependency>
	<groupId>${project.groupId}</groupId>
	<artifactId>shiro-cas-spring-boot-starter</artifactId>
	<version>${project.version}</version>
</dependency>

Sample :

https://github.com/vindell/spring-boot-starter-samples/tree/master/shiro-cas-spring-boot-starter

配置参考

application.yml

################################################################################################################  
###Shiro 权限控制基本配置:  
################################################################################################################
shiro:
  annotations: 
    enabled: true
    proxy-target-class: true
  authentication-caching-enabled: false
  authentication-cache-name: SHIRO-AUTHC
  authorization-caching-enabled: false 
  authorization-cache-name: SHIRO-AUTHZ
  caching-enabled: false
  cache:
    type: ehcache
  enabled: true
  kaptcha:
    enabled: true
    retry-times-when-access-denied: 3
  failure-url: /error
  http:
    header:
      access-control-allow-methods: PUT,POST,GET,DELETE,OPTIONS
  login-url: /authz/login/slogin
  redirect-url: /authz/login/index
  success-url: /index
  session-creation-enabled: false
  session-validation-scheduler-enabled: false
  session-validation-interval: 20000
  session-stateless: true
  session-storage-enabled: false
  session-timeout: 1800000
  unauthorized-url: /error
  user-native-session-manager: false
  web: 
    enabled: true
  filter-chain-definition-map: 
    '[/]' : anon
    '[/**/favicon.ico]' : anon
    '[/webjars/**]' : anon
    '[/assets/**]' : anon
    '[/error*]' : anon
    '[/logo/**]' : anon
    '[/swagger-ui.html**]' : anon
    '[/swagger-resources/**]' : anon
    '[/v2/**]' : anon
    '[/kaptcha*]' : anon
    '[/admin]' : anon
    '[/admin/assets/**]' : anon
    '[/admin/applications]' : anon
    '[/admin/applications/**]' : anon
    '[/admin/notifications]' : anon
    '[/admin/notifications/**]' : anon
    '[/admin/instances]' : anon
    '[/admin/instances/**]' : anon
    '[/sockets/**]' : anon
    '[/expiry]' : cros,withinExpiry
    '[/authz/login/slogin]' : cros,authc
    '[/logout]' : logout
    '[/**]' : cros,authc
  cas: 
    accept-any-proxy: true
    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
    enabled: true
    encoding: UTF-8
    server-callback-url: /callback
    server-name: http://127.0.0.1:8080
    ignore-pattern: /webjars/;/assets/;/authz/login;/logout;/callback
    ignore-url-pattern-type: org.apache.shiro.spring.boot.cas.ContainsPatternsUrlPatternMatcherStrategy

参考资料

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

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

https://wiki.jasig.org/display/CASC/Home

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].