cancel
Showing results for 
Search instead for 
Did you mean: 

Persistence oAuth token for OCC API in Hybris cluster

bikrambsinha
Participant
0 Kudos

How can we manage to keep persistent oAuth token across Hybris cluster for OCC API ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You should try implementing sticky sessions in your web server or load balancer to ensure that the requests from the same origin always go to the same hybris instance.

Even in the absence of that, one quick look at HybrisOAuthTokenStore and DefaultOAuthTokenService implementations seems to suggest that the access tokens are being persisted in the platform database, so they should already be cluster aware. You should be able to use the OCC API in a clustered environment as is and find out that it just works.