Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Keycloak support basic Authentication?

Tags:

java

keycloak

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.

like image 241
kulatamicuda Avatar asked Sep 05 '19 14:09

kulatamicuda


People also ask

How do you authenticate with a Keycloak?

Configure Keycloak to authenticate your cbioportal instance. Log in to your Keycloak Identity Provider, e.g. http://localhost:8080/auth, as an admin user. ⚠️ when setting this up on something else than localhost (e.g. production), you will need to use/enable https on your Keycloak server.

Is Keycloak an authorization server?

In Keycloak, resource servers are provided with a rich platform for enabling fine-grained authorization for their protected resources, where authorization decisions can be made based on different access control mechanisms. Any client application can be configured to support fine-grained permissions.

Does Keycloak use OAuth?

Keycloak is Open Source Identity and Access Management Server, which is a OAuth2 and OpenID Connect(OIDC) protocol complaint.


1 Answers

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.

like image 133
Joe Avatar answered Nov 02 '22 21:11

Joe