You can translate the question and the replies:

Getting HTTP 401 when calling a SM Rest API endpoint

Hello, we are doing some testing with the Rest API of the SM https://community.denodo.com/docs/html/browse/8.0/en/solution_manager/administration/appendix/rest_api/rest_api We understand we can use HTTP Basic auth. For that, we are using the admin user. I am trying with the following curl command: curl -k -u admin:password https://localhost:10090 and also tried with this one: curl -k -H 'Authorization: Basic <base64encoding>' 'https://localhost:10090' Both of them throw: `{ "timestamp" : 1688989650097, "status" : 401, "error" : "Unauthorized", "path" : "/" }` What are we doing wrong?
user
10-07-2023 07:48:51 -0400
code

1 Answer

Hi, I made a quick test with basic authentication and it is working fine. e.g. ``` curl "http:/localhost:10090/environments" \ -H "Accept: application/xml" \ -H "authorization: Basic YWRtaW46YWRtaW4=" ``` Make sure you access a specific Rest API service (e.g. environments, licenseAlias, deployments, etc.) described in the link you posted. Hope this helps
Denodo Team
11-07-2023 08:02:27 -0400
code
You must sign in to add an answer. If you do not have an account, you can register here