2020 Jun 24 5:18 PM - edited 2024 Feb 03 6:22 PM
Is there any way to extend hybris occ oauth2 access token expire time dynamically?
I need to extend hybris occ oauth2 access token expire time.
I tried to use the refresh_token, I can't use in this case because I can't predict how much time will it take.
(As you know, only password grant type provides refresh token. But my third party app isn't password grant type)
Is there anyway except for extending default access token expire time?
Request clarification before answering.
You can configure the following in local.properties for Hybris:
# 60*60*24*30 = 30d
oauth2.refreshTokenValiditySeconds=2592000
# 60*60*12 = 12h
oauth2.accessTokenValiditySeconds=43200
# 60*60*12 = 12h
oauth2.idTokenValiditySeconds=43200
See: hybris/bin/platform/ext/oauth2/project.properties
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.