Does Keycloak support basic Authentication (Authorization header that contains the word Basic word followed by a space and a base64-encoded string username:password ) and if so how I can configure realm and client settings for it ? I want to secure my rest api with Keycloak and support also basic Authentication as an option.
1 Answers
5
votes
Yes that's possible for clients with Access Type: confidential and Direct Access Grants Enabled. You can find more details on these settings in the documentation.
You also need to enable enable-basic-auth and supply your credentialsin your application settings. Consult the documentation for more details.
There's also an official basic-auth example online which can serve as a starting point.