hengboy / spring-cloud-chapter

Spring Cloud Enterprise Core Technology, Corresponding to the Special Subject Source of the Brief Book "Spring Cloud Core Technology"
14 stars 6 forks source link

使用ApiBoot来自定义OAuth2的GrantType授权方式 - 程序员 - 恒宇少年 | SpringBoot | SpringCloud | Java - 个人博客 #171

Open hengboy opened 4 years ago

hengboy commented 4 years ago

http://blog.yuqiyu.com/apiboot-define-oauth-grant-type.html

Spring提供的原生的OAuth2依赖内置了几种比较常用的授权方式:password、authorization-code、client_credentials、refresh_token、implicit等,虽然可以满足我们日常的需求,不过针对一些特殊的需求还是捉襟见肘,有点无奈,比如:微信登录、短信登录…,针对这一点ApiBoot通过修改Spring OAuth2依赖的源码,可以根据业务进行