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
1
vote
0 answers

How can I set multiple roles in the keycloak.protect()?

I'm using keycloak.protect('user') in nodejs (keycloak-connect lib) for my APIs to allow only user role and it works. How could I add multiple roles in the keycloak.protect()? I tried with the keycloak.protect(['user','admin']) but it allows anyone…
pasquy73
  • 563
  • 3
  • 13
1
vote
1 answer

Keycloak API works for admin-CLI client only

I'm trying to get a list of users by a specific role using but I get a 403 forbidden error using a custom-client generated access token GET:…
shAkur
  • 944
  • 2
  • 21
  • 45
1
vote
1 answer

calling keycloak everytime from API server to fetch Authorization info

I have Frontend application (spa) and this is calling rest api server. As I need Authorization enabled, I have to create two client in Keycloak i.e. frontend(public) and backend(confidential). I am passing an Access token fetched by frontend from…
1
vote
0 answers

Integration with Keycloak, isAuthenticated is always false and cookies may not have sent, localhost (ASP.NET Core MVC)

I have decided to create a simple project to test Keycloak integration to ASP.Net Core 6 MVC, so I used the following setup. The last time I posted with ASP.NET MVC 4, I did not get any answers and luck so I decided to create a unit test with a…
1
vote
0 answers

Keycloak 19.0.2 ECP Profile tab

In keycloak 19.0.2 how can we enable ECP flow? There is no option provided on UI part.
Neha
  • 11
  • 1
1
vote
1 answer

Implemented keycloak on aws ec2 windows instance and it's running inside the instance only but not running outside the instance

I'm using keycloak 15.1.1 version and 64 bit windows ec2 instance. Downloaded RDP from aws and using RDP I logged into instance and added keycloak and mysql connecor 8.0.31 to connect keycloak with external database. I referred from here :…
Krishna
  • 11
  • 3
1
vote
2 answers

Issue with Keycloak and nestjs

I have been trying to include Keycloak authentication with my NestJS app and this is driving me crazy. I keep getting an error "WARN [Keycloak] Cannot validate access token: Error: Grant validation failed. Reason: failed to load public key to…
Knerdist
  • 53
  • 1
  • 4
1
vote
0 answers

Keycloak newly issued refresh token has same expiry as old refresh token

I am using Keycloak for authentication. When I use the token API with grant_type refresh_token, the resulting refresh token has the same expiry as the original refresh token. What should I do to get a refresh_token with an updated expiry time? I…
1
vote
1 answer

Keycloak is Ignoring --db-url Option

I'm trying to integrate my Keycloak server with Postgres, and ran into an odd problem. When starting my keycloak server with the provided command on Ubuntu: ./kc.sh start-dev --http-port ${PORT} --db-url=jdbc:postgres://myurl.com/database…
1
vote
1 answer

keycloak and nodejs (nestjs), wrong role mismatch

I'm using nestjs-keycloak-connect module in multi-tenant mode. The log shows everything is correct but Resource denied due to mismatched role(s). The example controller: @Controller(':company') @UseGuards(AuthGuard, RoleGuard) export class…
1
vote
1 answer

Keycloak: page not found

I'm using Keycloak as SSO for Directus. They are located in same network. version: '3' services: nginx: image: nginx:latest container_name: nginx restart: unless-stopped volumes: - ./nginx/nginx.conf:/etc/nginx/nginx.conf …
KinitaL
  • 29
  • 5
1
vote
0 answers

Keycloak can't verify the JWT from my flutter openid client

In my Flutter app, I use the openid_client library to authorize myself with a keycloak instance and get an access token. For testing purposes, I tried the node js server example of keycloak…
1
vote
0 answers

Keycloak login page reload issue. /auth/realms/master/protocol/openid-connect/3p-cookies/step1.html 404 error

Keycloak login page is reloading continuously automatically. After inspecting networking tab, I came to know that an html page(/auth/realms/master/protocol/openid-connect/3p-cookies/step1.html) is giving 404 in response. I am running…
1
vote
1 answer

How to connect Drupal with Keycloak 18 for user creation

I am trying to connect drupal with keycloak for login. I have added client id, client secret and Keycloak realm , getting from keycloak server. Using modules - https://www.drupal.org/project/keycloak Link -…
1
vote
0 answers

How to change the hostname in a redirect url to keycloak?

Suppose the application and keycloak are installed on the same machine. If the user with the browser is also on that machine, localhost is used everywhere and everything works. But now the user is on another machine, and tries to access a page,…
ericj
  • 2,138
  • 27
  • 44
1 2
3
9 10