Questions tagged [keycloak-connect]

keycloak-nodejs-connect is a Keycloak Node.js Adapter. Keycloak is an Open Source Identity and Access Management solution for modern Applications and Services.

This module makes it simple to implement a Node.js Connect-friendly application that uses Keycloak for its authentication and authorization needs.

148 questions
12
votes
2 answers

How to set a default group on an Identity Provider in Keycloak

In Keycloak, is there a way to assign users to a default group when those user sign in over an Identity Provider? Note: This already works with roles. E.g. navigate to Identity Provider → select Provider → Mappers → New → Hardcoded Role → select…
9
votes
2 answers

Keycloak redirect page shows We are sorry.. page not found

I have deployed keycloak on my EKS cluster and able to access dashboard successfully and created a new realm already. So I thought of testing my keycloak, and went to https://www.keycloak.org/app/ for testing. I have created a client with the root…
8
votes
1 answer

How to protect frontend and rest API with Keycloak

I am very new to Keycloak server and want to use it to protect my front-end app and the backend rest API which are also open over the internet. So far what I understand and did is to create 2 clients on Keycloack, 1 is for frontend which used Client…
5
votes
2 answers

How to redirect keyclock to application's page and get token

I am using keycloak's login and registration page. For login I use: keycloak.init({onLoad: 'login-required'}).then(function (authenticated) { if (!authenticated) { } else{ } This works fine as I can use the…
marcg
  • 552
  • 1
  • 8
  • 20
5
votes
0 answers

Keycloak LOGIN_ERROR when accessed through iFrame

Facing issue with Keycloak login when trying to access it using iFrame. I am getting following error: 2020-08-29 04:06:50,976 WARN [org.keycloak.events] (default task-9654) type=LOGIN_ERROR, realmId=34d62e4f-f267-4f1a-8ec7-075e5046543b,…
4
votes
1 answer

Keycloak Step Up from Client

The Keycloak documentation here says you need to add ACR with claims in the request in order to do authentication step up to a higher level. But how is this accomplished from either the keycloak.js client library, or the keycloak-js npm client…
4
votes
4 answers

NodeJs and Keycloak Integration giving 403?

I just took the demo code from this Github So i change the keycloak-config.json var keycloakConfig ={ clientId: 'my-api', bearerOnly: true, serverUrl: 'https://:8443/auth/', realm: 'myrealm', …
Subodh Joshi
  • 12,717
  • 29
  • 108
  • 202
4
votes
0 answers

Issue With Receiving Keycloak Email to the Clients

I have a fully functional Keycloak setup with verify email and then update password features enabled. I have tested multiple times and the mail sending part is working perfectly. But some clients reporting that they didn't receive the registration…
4
votes
2 answers

Can't create initial admin user in keycloak

it shows an error "we are sorry an internal error occurred" while entered username password and confirm password. How can i create initial admin user?
3
votes
1 answer

Keycloak: Map email from Azure AD to auto created Keycloak Users

I have added the Microsoft Active Directory as an identity provider as shown below and configured the Authentication flow to automatically create the user(s) Mapper is configured to Map the user to a Role based on the claims Everything works till…
3
votes
1 answer

Keycloak server problem Could not find or load main class

I can't run keycloak server, when I try to run kc.bat in windows powershell or cmd with .\kc.bat I get the error Error: Could not find or load main class io.quarkus.bootstrap.runner.QuarkusEntryPoint Caused by: java.lang.ClassNotFoundException:…
huga721
  • 101
  • 1
  • 8
3
votes
0 answers

Does Keycloak support pagination and sorting of users list?

I'm working on a project using Angular - Spring boot - Keycloak 16.0 and one of the requirements is for the user to be able to fetch the user's list from Keycloak paginated, filtered and sorted by a user attribute (ex. email, username, etc.). Based…
3
votes
1 answer

Error timeout reached before the port went into state "inuse"

Faced a problem with connection of postgresql to keycloak. In keycloak I tried to use 5433 and 5432 port in "KEYCLOAK_DATABASE_PORT", but none of them is not working docker compose version: "3.8" volumes: postgres_data: driver:…
3
votes
0 answers

keycloak-connect : type=PERMISSION_TOKEN_ERROR, userId=null, ipAddress=, error=invalid_client_credentials

Context Hi everyone, I am working on a 3 part application: Keycloak server for auth Angular app for the frontend (with dedicated client, public) express router for the backend (with dedicated client, bearer-only) The first two parts work like a…
Sébastien
  • 103
  • 1
  • 11
3
votes
1 answer

How can I verify token and get user details?

I implemented keycloak in my Node.js application. For login, I used API: http://localhost:8080/auth/realms/master/protocol/openid-connect/token It returns the login user's token if the username and password are correct. Now I need to pass this…
1
2 3
9 10