jmix-docs
jmix-docs copied to clipboard
Explain rest basic authorization example
Current rest documentation section https://docs.jmix.ru/jmix/2.1/rest/getting-started.html contains curl example for obtaining token that hides Basic Auth specific and may not be useful for other http clients including programmable.
curl -X POST http://localhost:8080/oauth2/token \ --basic --user my-client:my-secret \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "grant_type=client_credentials"
To make it more helpful it will be better to add note that points that basic auth is done with sending "Authorization" HTTP header with base64 encoded string in the following format "$username:$password"