Closed cmkreuter closed 4 years ago
Hi cmkreuter,
you get a 401 Unauthorized
as a response. This is probably due to the fact that the password was incorrectly encoded. Please check you encoding method. In the documentation there is an example given. Check if your encoding method has the same output as a result as the example.
Kind regards, Phil
Thank you, yes it was incorrectly encoded. I used the command line tool base64 on Mac and for your example it returns bXlfcGFzc3cwcmQK instead of bXlfcGFzc3cwcmQ= Interestingly with https://www.base64decode.org/ both variants decode to the correct string...
I have a certificate per your documentation and base64 encoded the password that I just set, but when I send the request (after pressing the button on the controller) I get
| { | "@type": "client", | "id": "oss_test", | "name": "OSS test", | "primaryRole": "ROLE_RESTRICTED_CLIENT", | "certificate": "-----BEGIN CERTIFICATE-----\rxxxxxxx\r-----END CERTIFICATE-----" | }
< HTTP/1.1 401 Unauthorized < x-mbs-platform-state: 100 < date: Tue, 10 Mar 2020 19:03:57 GMT < content-length: 0 < Cache-Control: no-cache, no-store, must-revalidate < connection: close
This is a log from Insomnia, but Postman has the same result. Any ideas what is missing?