Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BASIC authentication for application on Wildfly with users in keycloak #174

Open
subijayb opened this issue Jul 4, 2023 · 2 comments
Open

Comments

@subijayb
Copy link

subijayb commented Jul 4, 2023

We have been using keycloak adapter with Wildlfy 26 and we added keycloak as a separate subsystem, security-realm and security-domain. It is working fine.
I know Wildfly 26+ now comes with elytron-oidc-client subsystem and thus there is no need for installing the keycloak adapter separately.

In our EAR file we have few WAR files. Some of them are web consoles and needs the OIDC's Keycloak redirect behaviour. While others are WAR files that exposes REST or SOAP APIs and these APIs support BASIC authentication. The users of these authentication also reside in keycloak.

For implementing the web console redirection, I can follow https://github.com/wildfly-security-incubator/elytron-examples/tree/main/simple-webapp-oidc

However, I am not clear on how to tackle the BASIC authentication. What I am looking for is https://github.com/wildfly-security-incubator/elytron-examples/tree/main/resteasy-client-integration but instead to authenticating the users against wildfly, I want it to be authenticated against keycloak.

Could you please help me on this? How I can achieve this w/o jeycloak adapter?

@fjuma
Copy link
Contributor

fjuma commented Jul 4, 2023

@subijayb Are you referring to the ability to retrieve a bearer token using credentials obtained from Basic auth? If so, support for this was added in WildFly 26.1.2.Final.

For questions like this, feel free to use the WildFly user forum. We monitor and respond to questions there.

@subijayb
Copy link
Author

subijayb commented Jul 5, 2023

Thanks @fjuma . I have posted the conversation in google groups Wildfly forum.
Yes, you are right when you say I am looking to get a bearer token using credentials obtained from BASIC auth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants