当前位置:Gxlcms > 数据库问题 > spring-oauth-server入门(1-6)access_token的有效期分析

spring-oauth-server入门(1-6)access_token的有效期分析

时间:2021-07-01 10:21:17 帮助过:33人阅读

分析目标--》expiration什么时候设置,设置规则如何配置!!!!!!!

2、access_token有效期设置

 技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

 

3、结论

1、如果你指定了client的如下字段,可以單獨控制client的token有效期

技术分享

 指定方法:新增client時指定

技术分享

 

 

2、如果你不指定client的相關字段,系統使用默認值

技术分享

所以,我們要在新增client的api中取我們的配置參數,設置token的有效期!!!!!!!!!!!!

四、簡單分析一下注冊client的邏輯

1、注冊入口

技术分享

2、Controller

技术分享

3、service和domain

技术分享

技术分享

4、dao

技术分享

 

spring-oauth-server入门(1-6)access_token的有效期分析

标签:color   ice   domain   nbsp   main   cli   token   比较   ring   

人气教程排行