All Projects → LookBackInTheRain → oauth-boot

LookBackInTheRain / oauth-boot

Licence: MIT license
spring-boot and spring oauth2

Programming Languages

java
68154 projects - #9 most used programming language
TSQL
950 projects

Projects that are alternatives of or similar to oauth-boot

Cloud-Native-App-Spring-Boot
A Cloud Native App with Spring Coud Security with KeyCloak Auth Server, API Gateway Server, Naming Server, Config Server and Distributed Tracing and ELK Stack hosted in K8s
Stars: ✭ 19 (-82.88%)
Mutual labels:  spring-security, spring-security-oauth2
spring-security-oauth2-client-example
Minimal configuration required for a Spring Boot project using Spring Security with OAuth2 client
Stars: ✭ 20 (-81.98%)
Mutual labels:  spring-security, spring-security-oauth2
spring-boot-oauth2-server
Sample standalone OAuth2 authorization server using Spring Boot
Stars: ✭ 29 (-73.87%)
Mutual labels:  spring-security-oauth2, spring-oauth2
okta-jhipster-microservices-oauth-example
A microservices architecture built with JHipster, OAuth 2.0, and Okta
Stars: ✭ 29 (-73.87%)
Mutual labels:  spring-security, spring-security-oauth2
Taroco-Authentication
Taroco-Authentication 统一认证服务
Stars: ✭ 49 (-55.86%)
Mutual labels:  spring-security, spring-oauth2
spring-oauth2.0
Spring security OAuth 2.0 project
Stars: ✭ 17 (-84.68%)
Mutual labels:  spring-security, spring-oauth2
spring-cloud-examples
🎏 Personal learning use cases.
Stars: ✭ 33 (-70.27%)
Mutual labels:  spring-security, spring-oauth2
okta-spring-boot-authz-server-example
Spring Security OAuth 2.0 Guide
Stars: ✭ 60 (-45.95%)
Mutual labels:  spring-security, spring-security-oauth2
Diber-backend
Delivery Service - Spring Boot / Spring Data Jpa / Hibernate / PostgreSQL / OAuth2 Application
Stars: ✭ 22 (-80.18%)
Mutual labels:  spring-security, spring-security-oauth2
Oauth2-Stateless-Authentication-with-Spring-and-JWT-Token
Oauth2 Stateless Authentication with Spring and JWT Token
Stars: ✭ 108 (-2.7%)
Mutual labels:  spring-security, spring-security-oauth2
springboot-vue.js-bbs
Spring Boot, Vue.js
Stars: ✭ 43 (-61.26%)
Mutual labels:  spring-security, spring-security-oauth2
MyNewProject
Legacy Spring MVC
Stars: ✭ 19 (-82.88%)
Mutual labels:  spring-security, spring-security-oauth2
project-tracking-system-backend-app
Enterprise project tracker, tracks commits done by employees after getting assigned to a couple of projects by their managers
Stars: ✭ 62 (-44.14%)
Mutual labels:  spring-security
Spring
Personal notes of preparation to Spring 5 Professional Certification
Stars: ✭ 35 (-68.47%)
Mutual labels:  spring-security
SpringBoot-Mall
SpringBoot商城系统Demo,主要功能:提供了商城系统的后端Api,不包含前端页面,体现了前后端解耦分离的思想。实现了商品,购物车,订单系统,单点登录系统等4个功能模块
Stars: ✭ 42 (-62.16%)
Mutual labels:  spring-security
SpringBoot-Examples
Spring boot 2.X version tutorial,Integrate various middleware to facilitate quick reference and use
Stars: ✭ 23 (-79.28%)
Mutual labels:  spring-security
grails-spring-security-cas
No description or website provided.
Stars: ✭ 16 (-85.59%)
Mutual labels:  spring-security
vuejs.spring-boot.mysql
Full-stack implementation of TaskAgile application with Vue.js, Spring Boot, and MySQL
Stars: ✭ 69 (-37.84%)
Mutual labels:  spring-security
Spring-Boot-2
Spring Boot 2.x examples
Stars: ✭ 33 (-70.27%)
Mutual labels:  spring-security
spring-cloud-boilerplate
The discovery & gateway boilerplate based on spring-cloud with spring security.
Stars: ✭ 12 (-89.19%)
Mutual labels:  spring-security

OAUTH-BOOT

spring-security ,spring-security-oauth2 ,string boot 学习


Update

更新说明

Current

  1. 授权码模式,密码模式,简化模式(未测试),客户端模式(未测试)
  2. JWT
  3. 自定义登录页面和授权页面
  4. 自定义异常处理
  5. 认证服务与资源服务分离

配置

boot:
  oauth:
    # token 存储方式,可选配置
    token-store-type: jwt #默认为 memory
    # token签名秘钥,可选配置,默认:OAUTHBOOT@IUY09&098#UIOKNJJ-YUIT.CLUB
    token-signing-key: 123qwe 
    # 登录处理url 可选配置
    login-process-url: /auth/authorize 

授权码模式

  1. 请求授权 http://ip:port/oauth/authorize?response_type=code&client_id=client&redirect_uri=http://localhost:9000&scope=select
  2. 如果没有登录会跳转到登录页面,登录后跳转到授权页面(是否会跳转到授权页面取决于是否将isAutoApprove字段的值 )
  3. 授权后得到一个授权码,拿着授权码即可申请token

密码模式

没有配置允许客户端表单登录的,将客户端id和密码base64编码放入请求头中,根据oauth2协议规定的密码模式正确填写参数即可申请token

依赖

框架/类库/数据库 版本号
java 11(Mac)/ 8(Win10)
spring-boot 2.0.5.RELEASE
spring-security 5.0.8.RELEASE
spring-security-oauth2-autoconfigure 2.0.6.RELEASE
mybatis-plus 3.0.4
数据库连接池(druid) 1.1.11
swagger-ui 2.9.2
hibernate-validator 6.0.13.Final
MySQL 5.7.22 MySQL Community Server
Redis 4.0.10

项目效果

  1. 自定义登录和授权页面效果图 自定义登录和授权页面效果图

建表语句在src/doc/table.sql中

相关的测试数据也在这个sql文件中,加密的密码统一为123qwe

请使用上述依赖所规定的版本

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