on 05-04-2022 6:28 PM
I am using Hybris 2011. The datahub server is up. But will hitting the status its giving below error. https://localhost:8080/datahub-webapp/v1/status.-The request has not been applied because it lacks valid authentication credentials for the target resource.Apache Tomcat/9.0.62.
Also I am unable to see datahub instance in Backoffice
Hello Pritika,
Add below properties and restart the data hub. Then you can use the same properties to check the status.
datahub.security.basic.admin.user=admin
datahub.security.basic.admin.password=nimda
datahub.security.basic.read_only.user=admin
datahub.security.basic.read_only.password=nimda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What you describe is the expected behavior. Have you provided the credentials? This document may help you https://help.sap.com/docs/SAP_COMMERCE/a74589c3a81a4a95bf51d87258c0ab15/5dd5dfb9c6ae43418bbbc221a676...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When i comment out the spring security in web.xml I could hit the https://localhost:8080/datahub-webapp/v1/status URL with RUNNING status and also see the Datahub instance in Backoffice. However this is not the correct approach. Can you suggest?
I have followed the link and the properties and oAuth are in place.
Pritika, you don't have to comment out anything in the web.xml. If you run the application and activate the no_auth spring profile, the security check will be disabled. You can activate the spring profile by passing -Dspring.profiles.active=no_auth into the server startup command. For example, for Tomcat you can set that in CATALINA_OPTS environment variable.
However, you don't want to disable authentication, especially in a production environment. If your user properties are configured, then just submit those configured credentials with the rest request. What client are you using to send the request? If Postman, then there is an authentication tab, where you can configure the authentication credentials. Even if you send the request in the browser, the browser should prompt you for the user name and password. Just input correct values.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.