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

After Oauth login it is redirecting to index.jsp instead of authorize

Former Member
0 Kudos
759

Hi Experts,

I am trying to configure OOB occ to be used on my hybris 6.6 application. When I am hitting the below URL it is taking me to login page. Once I login correctly it is taking me index.jsp and not to authorize page. https://localhost:9002/authorizationserver/login.jsp ?redirect_uri=http%3A%2F%2Fhybris.sapretail.sapretail.sl.edst.ibm.com%3A9001%2Foauth2_callback&client_id=eic&response_type=code&scope=customer&state=A2SAAEAEClj3GWL9uZ8bnpS3BgW-fABwDwo1hjEjGMEHy4k4a4oyV2ne7zAxsjtTYBeyU8D7nHDoO8VM8tVm1ZtQBc0oDiTMRwuI0Z-113peJIUMr-yTGHD_gCn6_YNKG2YVV6EPtiE9WHSR9tPZ99RzH3ks9n9ZHtObdfAewdp3xvJe-BpBn9ZNZrUwxOLv9M_lLdpw_O7BUiK-RZDRlwaehiCZ3VzRiynfgLowOJmceOQ7g4Xkw5HLdrIM6-uxv5o6RhmuCn0hVqqWu4Ssv8ooiDaPldTsHWDzeKdUyYPCB3o_-_5LF5JnYTrU_yDodKMSfBL0oo2n_3fhZ3JpamXJWcma77S20xs3nTl5wXAbH_8wGhPgFa_goqEOdzxsxfQejsWdimNTUmor8Bxr-Qm855rSCJB8m84LXrVvE4JFg6SBN0drY9fqzyI_qdaY2cieopKrPdVFc25qvhdrcSYm4-_CdSykWBr8wg9hNQ0IC0Z4YKLuVDTC_E-G-Hdz-tfAYTPJ3b7KnoVIVAcud_36FbL7S5bPQv3IJNKClJun5UfcQz7p7VqcOgzmIvz1hghVDxq-mLnhxkeBDPfVJEh-wsvAx-6vY9BjTS54nA-l5fe4xHFQp0

Accepted Solutions (1)

Accepted Solutions (1)

former_member747843
Active Participant
0 Kudos

Hi again
If I understand correctly you are trying 'Authorization Code Flow' (https://help.hybris.com/6.7.0/hcd/8c181d168669101480a1864a1e8fceb3.html)
But you should use authorize endpoint ( e.g. https://localhost:9002/authorizationserver/oauth/authorize?client_id=mobile_android&response_type=co... ) and then you will be redirected to login page but it is not the same as calling login page directly.

Former Member
0 Kudos

You are correct. I was able to solve the login issue by keeping the authorize endpoint.

Thanks & Regards Aparna K Penumatcha

Answers (1)

Answers (1)

former_member747843
Active Participant
0 Kudos

Hi
Check if you have oauth2 extension on the extensions list : https://localhost:9002/platform/extensions
If not add it to your localextensions.xml

Former Member
0 Kudos

It is already there.

Ask a Question