Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Web Development
>
OAuth/SSO
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
1.2K
Star
48.5K
Fork
4.3K
GVP
dromara
/
Sa-Token
Code
Issues
235
Pull Requests
19
Wiki
Insights
Pipelines
Service
JavaDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
OAuth2中模式四凭证式(Client Credentials)反复调用时生成不同的client_token
Done
#IBHFD1
qiuyue
Opened this issue
2025-01-13 15:10
### 对以下问题有疑问: OAuth2中模式四凭证式(Client Credentials)反复调用时生成不同的client_token。 我这边的场景是:让第三方应用可以调用进来。在尝试使用:OAuth2中模式四凭证式,但是发现反复调用的时候 client_token 会不同,哪怕还在有效期。 例如: 第一次调用:生成 client_token :A 第二次调用:生成 client_token :B 的同时,A 的有效期变成了 lower-client-token-timeout 的时间。 问题: client_token 的最大有效期是 2 小时。 - 剩余有效期小于 30 分钟时,调用本接口会返回一个新的 client_token ,这会同时存在两个有效的 client_token 。 - 剩余有效期大于等于 30 分钟时,调用本接口会返回原有的 client_token 。 或者说在有效期内:反复调用的时候可以返回同一个相同的 client_token 。 有效期结束后,lower-client-token-timeout 有效期内 client_token :A 和 client_token :B 都能调用。 有效期结束后:只有 client_token :B 能调用。 或者有没有办法我能直接获取到 client_token 的有效期时间,这样的话,我也可以在前置条件判断。如果在有效期的话就不调用,不在有效期的话就直接调用。 这种有办法实现吗?
### 对以下问题有疑问: OAuth2中模式四凭证式(Client Credentials)反复调用时生成不同的client_token。 我这边的场景是:让第三方应用可以调用进来。在尝试使用:OAuth2中模式四凭证式,但是发现反复调用的时候 client_token 会不同,哪怕还在有效期。 例如: 第一次调用:生成 client_token :A 第二次调用:生成 client_token :B 的同时,A 的有效期变成了 lower-client-token-timeout 的时间。 问题: client_token 的最大有效期是 2 小时。 - 剩余有效期小于 30 分钟时,调用本接口会返回一个新的 client_token ,这会同时存在两个有效的 client_token 。 - 剩余有效期大于等于 30 分钟时,调用本接口会返回原有的 client_token 。 或者说在有效期内:反复调用的时候可以返回同一个相同的 client_token 。 有效期结束后,lower-client-token-timeout 有效期内 client_token :A 和 client_token :B 都能调用。 有效期结束后:只有 client_token :B 能调用。 或者有没有办法我能直接获取到 client_token 的有效期时间,这样的话,我也可以在前置条件判断。如果在有效期的话就不调用,不在有效期的话就直接调用。 这种有办法实现吗?
Comments (
3
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Closed
Assignees
Not set
Labels
Not set
Label settings
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (6)
Tags (54)
dev
master
dev-temp
v1.36.0
v1.35.1
v1.6.0
v1.44.0
v1.43.0
v1.42.0
v1.41.0
v1.40.0
v1.39.0
v1.38.0
v1.37.0
v1.36.0
v1.35.0
v1.34.0
v1.33.0
v1.32.0
v1.31.0
v1.30.0
v1.29.0
v1.28.0
v1.27.0
v1.26.0
v1.25.0
v1.24.0
v1.23.0
v1.22.0
v1.21.0
v1.20.0
v1.19.0
v1.18.0
v1.17.0
v1.16.0.RELEASE
v1.16.0
v1.15.2
v1.15.0.RELEASE
v1.15.0
v1.14.4-alpha
v1.14.3
v1.14.2
v1.14.1
v1.14.0
v1.13.7
v1.13.6
v1.13.5
v1.13.4
v1.13.3
v1.13.2
v1.13.1
v1.13.0
v1.12.0
v1.11.0
v1.10.0
v1.9.0
v1.8.0
v1.7.0
v1.6.0
v1.5.1
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(1)
Java
1
https://gitee.com/dromara/sa-token.git
git@gitee.com:dromara/sa-token.git
dromara
sa-token
Sa-Token
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register