如果有人正在寻找如何更改FOSOAuthServerBundle的access_token生命周期(expires_in),那么这里是如何做的:
fos_oauth_server:
service:
user_provider: fos_user.user_manager
options:
access_token_lifetime: 20 #will set token life time to 20 seconds这样,您还可以更改FOSOAuthServerBundle充分使用的OAuth2.0库的其他选项。
希望这篇文章节省了一些人的时间;)祝你在其他重要的任务和改进上有一个愉快的时间;)享受
发布于 2013-11-20 20:03:39
发布于 2021-01-18 16:13:14
请在手动配置 access_token_lifetime后,根据您的环境运行或access_token_lifetime才能生效!
https://stackoverflow.com/questions/16629307
复制相似问题