cancel
Showing results for 
Search instead for 
Did you mean: 

CCV2 SmartEdit oauth token issue and oauth logs

rohan1607
Explorer
0 Kudos

We are doing initial analysis for migrating our hybris on premise installation to SAP Commerce Cloud. When accessing SmartEdit on the CCV2 setup we are facing issues in oauth token generation. The server call for /authorizationserver/oauth/token returns Http 500 (internal server error). The /authorizationserver endpoint is up and running, we see a bad credential error when incorrect username/password is provided but when a valid username/password is provided it is returning Http 500.

How do we access the oauth logs to understand the error cause? In Kibana we only see the http 500 in the access logs, nothing much gets logged.

Is there any specific configuration that needs to be done for oauth to work in CCV2 ?

We do not have any customization in SmartEdit login flow, hence the grant type used is password, client id is smartedit and we are entering admin users username/password.

rohan1607
Explorer
0 Kudos

We changed the log level for the packages in spring oauth jar (not sure how we missed it). When the log levels were changed to Debug for the packages "org.springframework.security.oauth2" and "org.springframework" it started printing more details in the logs. The actual error that we were facing was -

Resolved [org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' available: No matching TransactionManager bean found for qualifier 'transactionManager' - neither qualifier match nor bean name match!]

Not sure why it was not able to find the transactionManager bean reference as we do not have any customization in smartedit login flow. It is basically the OOTB hybris smartedit login flow.

Anyway, we manually added the transactionManager bean reference and customized the oauth spring xml, the token creation was successful after that.

Accepted Solutions (0)

Answers (0)