cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Is there any way to extend hybris occ oauth2 access token expire time dynamically?

0 Likes
1,658

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

geffchang
Active Contributor

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

0 Likes

Thanks. but I need the way to extend expire time dynamically.