Latest Questions tagged Keycloak

Browse all latest questions tagged Keycloak

10
Votes
Published 14 Oct, 2022
Java - Why Keycloak in Spring Boot allow an (expected unauthorized) user?

I'm trying to using Keycloak with Spring Boot and I configured Keycloak with two user: user1 with a role "user" and user2 with a role "not-user". I expect that when I call the endpoints with user1 ev...

5
Votes
Published 29 Aug, 2022
Java - Keycloak extension with dependencies

I'm creating a Keycloak extension with dependencies. I added the entry on the pom.xml like this: <dependency> <groupId>org.json</groupId> <artifactId>json</artifact...

99
Votes
Published 17 Sep, 2022
Java - Searching users in Keycloak from Java code

I am using Spring Boot, Keycloak 10, java 8 and keycloak-admin-client jar. I am able to get user, his groups and roles. When it comes to search I see different search method options for example I cou...

60
Votes
Published 04 Sep, 2022
Java - Error 400 bad request when creating keycloak roles in Java

I try to create a Keycloak role from my Java program. I am able to create user so it's not a problem of connection to my Keycloak server but the create function for the role always give me an error 40...

40
Votes
Published 04 Sep, 2022
Java - Keycloak logout does not end session

I am using Keycloak 3.4 in a Java Application using Spring Framework and Jetty 8.1 with Keycloak Jetty-81-Adapter 3.4. According to the Keycloak documentation I should be able to use the HttpServletR...

81
Votes
Published 18 Jun, 2022
Reactjs - Keycloak object property "authenticated" returns false when should be true

So, I am working on a react-redux app which requires some users to authenticate, which I use keycloak for. Basically there is a homepage thats public/not secured at: - localhost:3000/ Now when the u...

1
Votes
Published 30 Apr, 2022
React - How use keycloak in nextjs?

i'm trying to authenticate in keycloak in nextjs using @react-keycloak/nextjs but once i pass the login it keep sending me back to keycloak server and returning to the main page until it gives me an e...

4
Votes
Published 16 Apr, 2022
Javascript - Keycloak: Script Authenticator missing?

In our system we have so far been using Keycloak 3.4.3 and the Script Authenticator authentication provider functionality as part of the browser based authentication. Now, after upgrading to Keycloak...

38
Votes
Published 10 Sep, 2022
Java - How to Setup Keycloak + Spring Boot + Oauth2 within Microservice Architecture

I've setup Keycloak and a public/front-end spring boot app successfully. Everything is working as expected. The front-end Spring Boot App is configured in Keycloak as a client (app-ui) in the realm, u...

56
Votes
Published 05 Sep, 2022
Java - How can I get other users info(username, firstname) by id? [Keycloak]

How can I get user keycloak attributes (username, firstname, email...) based on user id? The user I'm using in the Keycloak session has already the role view-users assigned so I should be able to lis...

38
Votes
Published 01 Sep, 2022
Java - Keycloak Provider not found

i got a Keycloak 4.2.1 Server and im trying to implement a custom "LoginFormsProvider" for it. My goal is to extend to the login page (freemarker) with an additional component, in my case a simple inf...

36
Votes
Published 30 Aug, 2022
Java - Keycloak - Custom form action not visible in flow

I am trying to implement custom form action for user registration. I have added few custom fields on the form and I wish to validate those fields. After going through the keycloak documentation, I rea...

34
Votes
Published 23 Aug, 2022
Java - Keycloak java.lang.NoClassDefFoundError: java/security/acl/Group using Springboot

So we are building a Springboot back-end with Keycloak integration. But we get the following error when running the back-end on a docker swarm service: 2020-06-29 21:17:51.694 ERROR 1 --- [nio-3304-ex...

39
Votes
Published 20 Aug, 2022
Java - Keycloak Java adapter - Retrieving roles list

I need to retrieve the roles associated to user, but I am working with wildfly, I have installed all jar keycloak in wildfly and my Java project, but can I retrieve this list by Java adapter? Other o...

17
Votes
Published 18 Aug, 2022
Python - Python Flask Oidc + Keycloak get groups, attribu

I'm using this example bellow to connect flask + keycloak. Works fine, but i need get some informations about this user, like groups, attributes Searching in flask_oid doc, i'm not find anythink about...