7 Star 48 Fork 27

迷彩 / micai-platform-auth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

迷彩:micai-platform-auth

一.简介

该项目是基于Spring Boot搭建而成,通过Spring Security以及Spring Security Oauth2等,实现RBAC权限模型。其中包含了登录授权功能,以及第三方oauth授权和获取资源信息功能等。

二.OAuth2 协议的授权模式介绍

1.授权码模式(Authorization Code)

功能最完整,流程最严密的授权模式。国内各大服务提供商(微信、QQ、微博、淘宝 、百度)都采用此模式进行授权。可以确定是用户真正同意授权。

2.简化模式(Implicit)

令牌是发放给浏览器的,oauth客户端运行在浏览器中 ,通过JS脚本去申请令牌。不通过第三方应用程序的服务器,直接在浏览器中向认证服务器申请令牌 ,不需要先获取授权码。 直接可以一次请求就可得到令牌,在 redirect_uri 指定的回调地址中传递令牌( access_token )。

3.密码模式(Resource Owner Password Credentials)

将用户名和密码传过去,直接获取 access_token 。用户同意授权动作是在第三方应用上完成 ,而不是在认证服务器上。第三方应用申请令牌时,直接带着用户名密码去向认证服务器申请令牌。这种方式认证服务器无法断定用户是否真的授权了,用户名密码可能是第三方应用盗取来的。

4.客户端证书模式(Client credentials)

用得少。当一个第三应用自己本身需要获取资源(而不是以用户的名义),而不是获取用户的资源时,客户端模式十分有用。

三.令牌管理策略介绍

  • 内存存储采用的是 TokenStore 接口的默认实现类 InMemoryTokenStore , 开发时方便调试,适用单机版。
  • RedisTokenStore 将令牌存储到 Redis 非关系型数据库中,适用于并发高的服务。
  • JdbcTokenStore 基于 JDBC 将令牌存储到 关系型数据库中,可以在不同的服务器之间共享令牌。
  • JwtTokenStore (JSON Web Token)将用户信息直接编码到令牌中,这样后端可以不用存储它,资源服务器可以直接解析获取用户数据。

四.为什么使用jwt令牌方式

当认证服务器和资源服务器不是在同一工程时, 要使用 ResourceServerTokenServices 去远程请求认证服务器来校验 令牌的合法性,如果用户访问量较大时将会影响系统的性能。

此时,采用 JWT 格式就可以解决上面的问题。 因为当用户认证后获取到一个JWT令牌,而这个 JWT 令牌包含了用户基本信息,客户端只需要携带JWT访问资源服 务器,资源服务器会通过事先约定好的算法进行解析出来,然后直接对 JWT 令牌校验,不需要每次远程请求认证服 务器完成授权。

当然并不是说jwt管理令牌是最优的方式,该方式也是存在着一定的不足的......

五.后端技术选型

  • Spring Boot 2.6.0
  • Spring Security 2.6.6
  • Spring Security oauth 2 2.2.6.RELEASE
  • jjwt 0.7.0
  • MyBatis 3.5.5
  • MyBatis-Plus 3.4.3.4
  • MySQL 5.1.30
  • ......

六.后端项目结构:

主要的三个模块项目

  1. platform-auth-server即认证服务
  2. platform-common即公共服务
  3. platform-resources-server即资源服务
micai
    //认证服务
|-- platform-auth-server
|   |-- platform-auth-server.iml
|   |-- pom.xml
|   |-- src
|      |-- main
|           |-- java
|           |   |-- org
|           |       |-- micai
|           |           |-- platform
|           |               |-- authserver
|           |                   |-- AuthServerApplication.java
|           |                   |-- bo		//入参对象
|           |                   |   |-- UserQueryBo.java
|           |                   |-- config		//相关配置
|           |                   |   |-- AuthorizationServerConfiguration.java
|           |                   |   |-- JwtTokenEnhancer.java
|           |                   |   |-- PasswordEncoder.java
|           |                   |   |-- TokenConfig.java
|           |                   |   |-- WebSecurityConfig.java
|           |                   |-- entity		//相关实体类
|           |                   |   |-- Permission.java
|           |                   |   |-- Role.java
|           |                   |   |-- RolePermission.java
|           |                   |   |-- User.java
|           |                   |   |-- UserRole.java
|           |                   |-- filter		//相关过滤器
|           |                   |   |-- JWTAuthenticationFilter.java
|           |                   |   |-- JWTLoginFilter.java
|           |                   |-- handler		//相关处理器
|           |                   |   |-- CustomAuthenticationFailureHandler.java
|           |                   |   |-- Http401AuthenticationEntryPoint.java
|           |                   |   |-- MyMetaObjectHandler.java
|           |                   |-- interceptor		//相关拦截器
|           |                   |   |-- PlusInterceptor.java
|           |                   |-- mapper		//mapper文件
|           |                   |   |-- PermissionMapper.java
|           |                   |   |-- RoleMapper.java
|           |                   |   |-- RolePermissionMapper.java
|           |                   |   |-- UserMapper.java
|           |                   |   |-- UserRoleMapper.java
|           |                   |-- provider		//security相关提供器
|           |                   |   |-- CustomAuthenticationProvider.java
|           |                   |-- service			//相关service类
|           |                       |-- PermissionService.java
|           |                       |-- RolePermissionService.java
|           |                       |-- RoleService.java
|           |                       |-- UserRoleService.java
|           |                       |-- UserService.java
|           |                       |-- impl
|           |                           |-- GrantedAuthorityImpl.java
|           |                           |-- PermissionServiceImpl.java
|           |                           |-- RolePermissionServiceImpl.java
|           |                           |-- RoleServiceImpl.java
|           |                           |-- UserDetailsServiceImpl.java
|           |                           |-- UserRoleServiceImpl.java
|           |                           |-- UserServiceImpl.java
|           |-- resources
|               |-- application-dev.yml
|               |-- application-pro.yml
|               |-- application.yml
    //公共服务
|-- platform-common
|   |-- platform-common.iml
|   |-- pom.xml
|   |-- src
|       |-- main
|           |-- java
|           |   |-- org
|           |       |-- micai
|           |           |-- platform
|           |               |-- common
|           |                   |-- base		//公共包
|           |                       |-- WebStarterAutoConfig.java
|           |                       |-- config		//公共配置
|           |                       |   |-- MicaiPlatformOauthConfig.java
|           |                       |   |-- MicaiPlatformRequestMatcher.java
|           |                       |   |-- MicaiPlatformResourcesConfig.java
|           |                       |   |-- MicaiPlatformTokenConfig.java
|           |                       |-- constant		//常量和常枚举
|           |                       |   |-- ConstantCode.java
|           |                       |   |-- ConstantEnum.java
|           |                       |-- controller		//异常处理controller
|           |                       |   |-- ExceptionController.java
|           |                       |-- exception		//异常处理和自定义异常
|           |                       |   |-- GlobalExceptionHandler.java
|           |                       |   |-- MyAuthException.java
|           |                       |   |-- PlatformException.java
|           |                       |-- result			//自定义返回对象
|           |                       |   |-- Result.java
|           |                       |   |-- UploadResult.java
|           |                       
|           |-- resources
|               |-- META-INF
|                   |-- spring.factories
    //资源服务
|-- platform-resources-server
|   |-- platform-resources-server.iml
|   |-- pom.xml
|   |-- src
|       |-- main
|           |-- java
|           |   |-- org
|           |       |-- micai
|           |           |-- platform
|           |               |-- resourcesserver
|           |                   |-- ResourcesServerApplication.java
|           |                   |-- bo			//入参对象
|           |                   |   |-- MenuDelBo.java
|           |                   |   |-- MenuSaveBo.java
|           |                   |   |-- MenuUpdateBo.java
|           |                   |   |-- OrganDelBo.java
|           |                   |   |-- OrganFindBo.java
|           |                   |   |-- OrganSaveBo.java
|           |                   |   |-- OrganUpdateBo.java
|           |                   |   |-- PermissionDelBo.java
|           |                   |   |-- PermissionFindBo.java
|           |                   |   |-- PermissionMenuDelBo.java
|           |                   |   |-- PermissionMenuSaveBo.java
|           |                   |   |-- PermissionMenuUpdateBo.java
|           |                   |   |-- PermissionSaveBo.java
|           |                   |   |-- PermissionUpdateBo.java
|           |                   |   |-- RoleDelBo.java
|           |                   |   |-- RoleFindBo.java
|           |                   |   |-- RolePermissionDelBo.java
|           |                   |   |-- RolePermissionSaveBo.java
|           |                   |   |-- RolePermissionUpdateBo.java
|           |                   |   |-- RoleSaveBo.java
|           |                   |   |-- RoleUpdateBo.java
|           |                   |   |-- UserDelBo.java
|           |                   |   |-- UserFindBo.java
|           |                   |   |-- UserQueryBo.java
|           |                   |   |-- UserRoleDelBo.java
|           |                   |   |-- UserRoleSaveBo.java
|           |                   |   |-- UserRoleUpdateBo.java
|           |                   |   |-- UserSaveBo.java
|           |                   |   |-- UserUpdateBo.java
|           |                   |-- config			//相关配置类
|           |                   |   |-- CodeGenerator.java
|           |                   |   |-- PasswordEncoder.java
|           |                   |   |-- ResourceServerConfig.java
|           |                   |   |-- SiteOptions.java
|           |                   |   |-- SwaggerConfig.java
|           |                   |   |-- TokenConfig.java
|           |                   |   |-- WebSecurityConfig.java
|           |                   |-- controller		//表现层
|           |                   |   |-- BaseController.java
|           |                   |   |-- PermissionController.java
|           |                   |   |-- RoleController.java
|           |                   |   |-- RolePermissionController.java
|           |                   |   |-- UploadController.java
|           |                   |   |-- UserController.java
|           |                   |   |-- UserRoleController.java
|           |                   |-- dto
|           |                   |   |-- UserAuthenticationDto.java
|           |                   |-- entity
|           |                   |   |-- Permission.java
|           |                   |   |-- Role.java
|           |                   |   |-- RolePermission.java
|           |                   |   |-- User.java
|           |                   |   |-- UserRole.java
|           |                   |-- filter			//相关自定义过滤器
|           |                   |   |-- AuthHeaderFilter.java
|           |                   |   |-- JWTAuthenticationFilter.java
|           |                   |-- handler			//相关自定义处理器
|           |                   |   |-- Http401AuthenticationEntryPoint.java
|           |                   |   |-- MyMetaObjectHandler.java
|           |                   |-- interceptor		//相关拦截器
|           |                   |   |-- PlusInterceptor.java
|           |                   |-- mapper
|           |                   |   |-- PermissionMapper.java
|           |                   |   |-- RoleMapper.java
|           |                   |   |-- RolePermissionMapper.java
|           |                   |   |-- UserMapper.java
|           |                   |   |-- UserRoleMapper.java
|           |                   |-- provider		//自定义security的提供器
|           |                   |   |-- CustomAuthenticationProvider.java
|           |                   |-- service			//相关的service
|           |                   |   |-- PermissionService.java
|           |                   |   |-- RolePermissionService.java
|           |                   |   |-- RoleService.java
|           |                   |   |-- UserRoleService.java
|           |                   |   |-- UserService.java
|           |                   |   |-- impl
|           |                   |       |-- GrantedAuthorityImpl.java
|           |                   |       |-- PermissionServiceImpl.java
|           |                   |       |-- RolePermissionServiceImpl.java
|           |                   |       |-- RoleServiceImpl.java
|           |                   |       |-- UserDetailsServiceImpl.java
|           |                   |       |-- UserRoleServiceImpl.java
|           |                   |       |-- UserServiceImpl.java
|           |                   |-- utils		//相关工具类
|           |                   |   |-- ApplicationUtil.java
|           |                   |   |-- AuthenticationManger.java
|           |                   |   |-- JwtHelper.java
|           |                   |   |-- MD5.java
|           |                   |-- vo			//返回前端对象
|           |                       |-- OrganListVo.java
|           |                       |-- PermissionListVo.java
|           |                       |-- RoleListVo.java
|           |                       |-- UserListVo.java
|           |-- resources
|               |-- application-dev.yml
|               |-- application-pro.yml
|               |-- application.yml
|               |-- logback-spring.xml
|-- pom.xml

相关配置解读:

platform-auth-server:

micai-platform-auth:
  #jwt-token登录相关配置
  token:
    #sign key
    sign-key: micai-security-@Jwt!&Secret^#
    #jwt 过期时间 单位:分钟
    timeout: 60
    # token名称
    token-name: Authorization
    # token前缀
    token-prefix: Bearer
  #oauth
  oauth-auth:
    #sign key
    sign-key: micai-oauth2-@Jwt!&Secret^#

platform-resources-server:

micai-platform-auth:
  #jwt相关配置
  token:
    #sign key
    sign-key: micai-security-@Jwt!&Secret^#
    #jwt 过期时间 单位:分钟
    timeout: 60
    # token名称
    token-name: Authorization
    # token前缀
    token-prefix: Bearer

  oauth-resources:
    #sign key
    sign-key: micai-oauth2-@Jwt!&Secret^#
    #资源id
    resource-ids: resources-server
    #过滤器匹配路径 可以使用**
    request-matcher:
      - /demo/**
      - /user/list

注意:

  • 在oauth-resources. request-matcher下配置了的路径,代表该接口是需要携带oauth生成的access_token,其他默认的接口是需要携带登录生成的token
  • 认证服务和资源服务配置的sign-key需要统一,不然会导致携带的token无法获取对应的资源

七.项目流程图:

迷彩-登录授权流程

本系统登录授权流程:

  1. 调用登录接口http://localhost:8080/login 返回token令牌
curl --location --request POST 'http://localhost:8080/login' \
--header 'Content-Type: application/json' \
--data-raw '{"username":"root","password":"root"}'

​ 2.携带返回的token信息,访问需要获取资源接口

第三方应用授权流程:

授权码模式流程:

  1. 调用登录接口http://localhost:8080/login 返回token令牌
curl --location --request POST 'http://localhost:8080/login' \
--header 'Content-Type: application/json' \
--data-raw '{"username":"root","password":"root"}'

2.携带返回的token信息,访问oauth2授权接口,使用授权码模式http://localhost:8080/oauth/authorize?response_type=code&client_id=pc,重定向到设定的**web_server_redirect_uri**地址并且拼接了授权码信息

curl --location --request GET 'http://localhost:8080/oauth/authorize?response_type=code&client_id=pc' \
--header 'Authorization: Bear xxxxxx'

如图所示:image-20221228140017204

3.根据获取的授权码信息,调用获取access_token信息http://localhost:8080/oauth/token?grant_type=authorization_code&client_id=pc&client_secret=admin&code=fQxVEU

curl --location --request POST 'http://localhost:8080/oauth/token?grant_type=authorization_code&client_id=pc&client_secret=admin&code=fQxVEU'

返回的信息,如下:

{
   		           "access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb20iOiJsaXVjb25nIiwid2l0aCI6Im1pY2FpIiwiYXVkIjpbInJlc291cmNlcy1zZXJ2ZXIiXSwidXNlcl9uYW1lIjoiMS1yb290LVt",
"token_type": "bearer",
"refresh_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb20iOiJsaXVjb25nIiwid2l0aCI6Im1pY2FpIiwiYXVkIjpbInJlc291cmNlcy1zZXJ2ZXIiXSwidXNlcl9uYW1lIjoiMS1yb290LVtcIlJPTEVfcm9vdFwiLFwi",
    "expires_in": 43199,
    "scope": "pc",
    "author": "liucong",
    "jti": "cfc312f6-c38f-4670-9140-9985372cb7c9"
}

access_token:返回的token令牌,可以访问对应资源服务;

token_type:token类型,token前缀

expires_in:过期时间

scope:作用范围

author:通过实现TokenEnhancer,添加自定义信息

jti:jwt唯一标识

4.携带access_token信息,访问需要获取资源接口

密码模式流程:

调用接口地址

curl --location --request POST 'http://localhost:8080/oauth/token?username=root&password=root&grant_type=password&client_id=pc&client_secret=admin'

返回对象,返回相关的access_token 、 expires_in 、 scope 等相关信息,如授权码模式

简化模式流程:

调用接口地址

http://localhost:8080/oauth/authorize?response_type=token&client_id=pc

会跳转到指定的 redirect_uri ,回调路径携带着令牌 access_token 、 expires_in 、 scope 等相关信息,如图所示:

image-20221228114654659

客户端模式流程:

该使用的情况比较少,大家可以自行体验

八.swagger地址:

我们使用的是knife4j

Knife4j · 集Swagger2及OpenAPI3为一体的增强解决方案. | Knife4j (xiaominfo.com)

九.联系我们

微信交流群

为了更好的交流,我们新提供了微信交流群(200人+),鉴于微信群二维码有过期时间,所以还请大家扫描下面的二维码,关注公众号( 加完群取消关注即可 ),回复【加群】,根据提示信息,加作者微信,作者会拉你进群的,感谢配合!

微信交流群

QQ群交流群

QQ群交流群

十.参与开发(贡献时间顺序) | Developer

十一.对应的前端工程git地址

https://gitee.com/micai-code/micai-platform-front

PS:前端工程由于都是后端出身,所以目前只是搭建了个环境,实现了简单的登录,有想一起参与开发的小伙伴可以fork,完事提合并请求,我给大家合并,欢迎小伙伴们加入。

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

该项目是基于Spring Boot搭建而成,通过Spring Security以及Spring Security Oauth2等,实现RBAC权限模型。其中包含了登录授权功能,以及第三方oauth授权和获取资源信息功能等。如果作者的项目对您有一点帮助, 记得右上角🔝🔝点个star 关注更新,谢谢! 展开 收起
Java
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/micai-code/micai-platform-auth.git
git@gitee.com:micai-code/micai-platform-auth.git
micai-code
micai-platform-auth
micai-platform-auth
develop

搜索帮助