I have a frontend and backend application (angular + spring boot). The frontend is served as static web content, then it sends the REST calls to the backend API on the same port. Keycloak with OpenID protocol is used for users authentication and role management. Upon an request which requires authentication, the browser is redirected to Keycloak, user gives username
Tag: openid-connect
Automated test for OIDC Login
I have build an OpenID Connect Login for my java application (without spring). Now I want to have an automated test for the OIDC process. I am using KeyCloak as auth-server. For OIDC my test has to login on the keyloak login page by passing the username and password. For this I am using HtmlUnit and a simple http-server for
Simplest way to get current user logged in Keycloak
I have implemented a really simple keycloak integration on my maven java web app. Assuming I am calling a url directly for the keycloak log in page . After entering my username & password on success i am being redirected on mypage.html , the url is like this If I break this down its What would be the simplest –
Keycloak: Can not read users realm roles as admin cli when calling the admin rest api
I use keycloak 11 as openid connect provider for my spring boot services. Everything works fine so far. Problem: I have a service that uses a webclient. It is nested in my service and uses client auth with the admin-cli client. That works. When I do a get on /users/userId, I get the user representation. The problem I have now
Access user info from SecurityIdentity using quarkus-oidc
I am using quarkus-oidc with keycloak and I have the following resource My quarkus configurations is the following I am calling the query as follow The content of the jwt is How can I access the user info stored in the token using quarkus oidc? I’ have seen that there is an option quarkus.oidc.authentication.user-info-required=true which will be calling the keycloak