All Projects → minlingchao1 → Auth Center

minlingchao1 / Auth Center

一站式登录权限管理系统

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Auth Center

Cas Sso Samples
CAS单点登录案例。整合了CAS OAuth2、Apache Shiro、Spring Security等
Stars: ✭ 60 (+20%)
Mutual labels:  oauth2, shiro, cas
shiro-cas-spring-boot-starter
spring-boot-starter-shiro-cas
Stars: ✭ 16 (-68%)
Mutual labels:  cas, shiro
doit
spring cloud , CAS , JHipster hybrid sample app
Stars: ✭ 14 (-72%)
Mutual labels:  cas, shiro
Spring Boot Demo
spring boot demo 是一个Spring Boot、Spring Cloud的项目示例,根据市场主流的后端技术,共集成了30+个demo,未来将持续更新。该项目包含helloworld(快速入门)、web(ssh项目快速搭建)、aop(切面编程)、data-redis(redis缓存)、quartz(集群任务实现)、shiro(权限管理)、oauth2(四种认证模式)、shign(接口参数防篡改重放)、encoder(用户密码设计)、actuator(服务监控)、cloud-config(配置中心)、cloud-gateway(服务网关)等模块
Stars: ✭ 323 (+546%)
Mutual labels:  oauth2, shiro
Pac4j
Security engine for Java (authentication, authorization, multi frameworks): OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 2,097 (+4094%)
Mutual labels:  shiro, cas
Springboot Learning
基于Gradle构建,使用SpringBoot在各个场景的应用,包括集成消息中间件、前后端分离、数据库、缓存、分布式锁、分布式事务等
Stars: ✭ 340 (+580%)
Mutual labels:  oauth2, shiro
Silhouette
Silhouette is a framework agnostic authentication library for Scala that supports several authentication methods, including OAuth2, OpenID Connect, Credentials, Basic Authentication or custom authentication schemes.
Stars: ✭ 18 (-64%)
Mutual labels:  oauth2, cas
Sso
cas单点登录系统,其中包括cas认证服务,配置中心,监控平台,服务管理的高可用项目
Stars: ✭ 797 (+1494%)
Mutual labels:  oauth2, cas
Buji Pac4j
pac4j security library for Shiro: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 444 (+788%)
Mutual labels:  shiro, cas
Highdsa
2018年本科毕设项目,已更新所有开发和部署文档。基于Dubbo、SSM、Shiro、ELK、ActiveMQ、Redis等实现的一套高可用、高性能、高可扩展的分布式系统架构,实现可支持业务的基础公共服务,API使用Restful风格对外暴露。已经实现的包括:发送邮件服务、FastDFS文件存储服务、ELK实时日志查询服务、Redis缓存服务、Mybatis数据库、阿里短信推送、Goeasy消息推送、Druid监控、ActiveMQ消息队列、shiro权限认证、cas单点登录、权限配置web系统、移动端后台系统。持续更新中......
Stars: ✭ 385 (+670%)
Mutual labels:  shiro, cas
Play Silhouette
Silhouette is an authentication library for Play Framework applications that supports several authentication methods, including OAuth1, OAuth2, OpenID, CAS, 2FA, TOTP, Credentials, Basic Authentication or custom authentication schemes.
Stars: ✭ 826 (+1552%)
Mutual labels:  oauth2, cas
Oauth2 Shiro Jwt
use oauth2, shiro and spring specrity to make an ums system
Stars: ✭ 29 (-42%)
Mutual labels:  oauth2, shiro
React Native Linkedin Sdk
React Native Wrapper for Latest LinkedIn Mobile SDK for Sign-In / Auth and API Access.
Stars: ✭ 37 (-26%)
Mutual labels:  oauth2
Psraw
PowerShell Reddit API Wrapper
Stars: ✭ 42 (-16%)
Mutual labels:  oauth2
Sample Vertx Microservices
Two applications in different branches illustrates how to create asynchronous microservices with Vert.x, Consul and MongoDB, and how to secure them with Vert.x OAuth2 module and Keycloak
Stars: ✭ 37 (-26%)
Mutual labels:  oauth2
Go Starter
An opinionated production-ready SQL-/Swagger-first RESTful JSON API written in Go, highly integrated with VSCode DevContainers by allaboutapps.
Stars: ✭ 37 (-26%)
Mutual labels:  oauth2
Spring Boot Angular Template
Starter Template to create a OAuth2 secured dockerized Spring Boot 2 Application with Angular 8 Frontend
Stars: ✭ 48 (-4%)
Mutual labels:  oauth2
Identityserver4
OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
Stars: ✭ 8,428 (+16756%)
Mutual labels:  oauth2
Go Oauth Example
Implementing OAuth 2.0 with Go
Stars: ✭ 35 (-30%)
Mutual labels:  oauth2
Fake Oauth2 Server
An OAuth2 server implementation to be used for testing
Stars: ✭ 34 (-32%)
Mutual labels:  oauth2

项目地址

https://github.com/minlingchao1/auth-center

项目说明

auth-center是一个轻量级的权限管理系统。其核心目标是实现公司内部各个系统的权限的集中管理,利用cas单点登录实现系统的一站式登录

特点

  • 单点登录
  • 权限集中管理,提供权限管理中心
  • 集成第三方登录,与现有账号绑定,方便快捷
  • 利用shiro实现权限管理,灵活快捷,可以控制到页面的菜单或者按钮,满足大部分的权限需求

模块介绍

  • auth-cas 单点登录服务器端,所有客户端的用户登录都需要跳转到cas服务器端。提供用户名密码登录和qq登录两种方式
  • auth-cas-shiro-common shiro-cas整合需要的工具类,供所有客户端引入使用,只需要将其作为jar包引入即可
  • auth-core 用于客户端从权限管理端获取信息使用
  • auth-server 所有客户端的权限管理中心,包括角色分配,用户信息获取等功能

使用教程

多版本配置

主要针对web端的配置,这里指auth-server-web

首先在相应的pom.xml中的profiles节点添加如下代码:

<profile>
    <id>dev</id>
    <properties>
        <env>版本名称</env>
    </properties>
    <activation>
        <activeByDefault>true</activeByDefault>
    </activation>
</profile>

在src/main.filters文件夹下创建版本名称-env.properties文件即可

数据库配置

数据表说明

所需要的数据表均在auth-server/auth-server-core中的resource文件夹下

app:应用信息存储表 authorization:授权信息 resource:资源(菜单/按钮) role:角色表 user:用户表 qq_user:qq用户信息 qq_user_ref:qq用户与用户表关联 verify_code:验证码发送表

数据库连接配置

数据库配置文件 auth-server/auth-server-web的resource文件夹下 jdbc.properties

  • jdbc.driver=com.mysql.jdbc.Driver
  • jdbc.url= //数据库地址
  • jdbc.username= //数据库用户名
  • jdbc.password= //密码
  • jdbc.initialSize=0
  • jdbc.maxTotal=20 //最大连接数
  • jdbc.maxIdle=20
  • jdbc.minIdle=1
  • jdbc.maxWaitMillis=60000 //最大等待时间

Redis配置

redis配置文件 auth-server/auth-server-web的resource文件夹下 redis.properties

  • redis.host= //redis地址
  • redis.port= //端口
  • redis.password= //密码
  • redis.expire=100000
  • redis.timeout=10000 //连接超时时间,不要设置的太小
  • redis.default.db=6 //数据库

客户端连接cas配置

cas配置文件 auth-server/auth-server-web的resource文件夹下 cas.properties

  • cas.logout.redirect.url= //退出重定向地址,格式:http://cas_server_url/logout?service=http://client_url_index/
  • cas.login.url= //登录地址 格式 http://cas_server_url/login?service=http://client_url/cas
  • cas.server.url.prefix= //cas服务器地址前缀 格式:http://cas_server_url
  • cas.service= //客户端登录cas地址,格式 http://client_url/cas
  • cas.success.url= //登录成功跳转地址 格式:http://client_url/index/success
  • cas.app.key= //cas登录的应用密钥

启动

在tomcat中启动,默认端口8081

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