cancel
Showing results for 
Search instead for 
Did you mean: 

How to redirect the get oauth token call to the original url prior to Hybris 6.1 . I tried enabling the OAuthRedirectionFilter , but not getting token in response.

Former Member
0 Kudos
 

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member747843
Active Participant
0 Kudos

OAuthRedirectionFilter is a filter which sends a redirection response with new url location in header. This filter sends redirection response ( 307 - Temporary redirect) with new url location in header. It depends on the client you are using to send request if redirection will be done automatically.

Former Member
0 Kudos

: Thanks for your reply!. I am getting the redirection response and the new url in the header. However, I need the request to be automatically redirected to the correct url. I am using OAuth Client. Please suggest what configuration needs to be done. Is this feature provided out of the box or we need to add custom code.

former_member747843
Active Participant
0 Kudos

Instead of sending redirect response you can configure internal redirect on web server. For Apache check this : https://httpd.apache.org/docs/2.4/rewrite/remapping.html