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
1 answer

Access token missing from Keycloak context

I am trying to make an authenticated request from postman to my node, apollo, express backend. I am gettting an error saying that the user is unauthenticated. When I look at the context object, there is no access token and calling…
Oamar Kanji
  • 1,824
  • 6
  • 24
  • 39
1
vote
0 answers

Keycloak: Customize well-known OpenID Configuration

After configuring various realms, I'm trying to figure out if it's possible to customize the "/.well-known/openid-configuration" endpoint for each realm. The goal is to modify fields such as: grant_types_supported ** _ alg_values_supported ** _…
1
vote
1 answer

Keycloak setup on Kubernetes

I am using this link to have a Keycloak setup on my K8s cluster in Azure cloud. https://www.keycloak.org/getting-started/getting-started-kube Even after following all the steps successfully, unable to get the Keycloak Admin console or Keycloak…
Saurabh Gupta
  • 21
  • 1
  • 4
1
vote
0 answers

Keycloak Node.JS without sessions

I'm trying to implement keycloak authentication on a NodeJS with Keycloak. I want to use JWT into the Authorization request header or in a request cookie. I follewed the doc but it uses express-session. So the request does not contains JWT but the…
1
vote
1 answer

keycloak: notification after max login failure

After a user has failed to log in too many times in too short a time, is there a way to have the Keycloak login screen tell the user that they are temporarily locked, so they can know they have to wait and try again later? At the moment, it…
1
vote
2 answers

Keycloak CIBA Authentication fails with "Failed to send authentication request"

I am trying to set up a CIBA endpoint on Keycloak 15.0.2. I have set up a client with the CIBA endpoint enabled, but when I hit it with a request that looks something like this: curl -s -X POST \ -d "client_id=ciba_client_test" \ -d…
1
vote
1 answer

what is the alternative for deprecated method org.keycloak.TokenVerifier.realmUrl()

I am trying to verify the AccessToken using below code - TokenVerifier verifier = TokenVerifier.create(StringAccessToken, AccessToken.class).withDefaultChecks(); PublicKey publicKey = getRealmPublicKey(verifier.getHeader()); return…
1
vote
0 answers

Prevent IdP users from saving to Keycloak local storage at login

I want to prevent IdP users from being saved to the Keycloak local storage when they login. Is there some sort of switch in the admin console that prevents IdP users from being saved to the Keycloak local storage? Or how can I achieve this…
1
vote
1 answer

Extend OIDCLoginProtocol in Keycloak

I want to use the OIDC Login protocol for my client app. But the default implementation of the OIDC Login protocol doesn't meet my requirements. I want to update authenticated method of the OIDCLoginProtocol. Is there any simple way to extend OIDC…
1
vote
1 answer

Add Keycloak to express server to get kauth from request

I am trying to add Keycloak authentication to my ApolloServer using keycloak-connect. I have setup my realm and login from localhost:8080/auth. However, I am having an issue getting kauth from my requests in the context function: Currently I have…
ashes999
  • 1,234
  • 1
  • 12
  • 36
1
vote
0 answers

nodejs keycloak-connect-graphql not working while in docker

I have hit an issue that I have struggled to figure out for the last little while regarding docker. Here is a shortened version of the story In my development environment (everything is running on localhost), code works great, whenever I add my…
A.J
  • 315
  • 4
  • 17
1
vote
1 answer

set client-secret in keyclok-Angular

I am not able to set client-secret in config object of keyClock function initializeKeycloak(keycloak: KeycloakService) { return () => keycloak.init({ config: { url: 'http://localhost:8080/auth', realm: 'your-realm', …
1
vote
0 answers

Keycloak http://localhost:8080/auth unable to acess

I am trying to implement keycloak in Angular. So I have downloaded the 'keycloak-12.0.2.[zip|tar.gz]' file. I have ran the command C:\Users\XXXX\XXXXX\keycloak-12.0.2\bin> standalone.bat in cmd. But when I try to access the keycloak admin login…
Karan
  • 11
  • 3
1
vote
0 answers

How to import users in Keycloak from Azure Active Directory?

I have users and groups in Azure Active Directory. I want to import all users from Azure AD into Keycloak. Anyone from Azure that can help me with the configuration of LDAP with Azure in Keycloak, namely the follow section:
1
vote
0 answers

Pass Keycloak auth token from NodeJS to React app

I have a ReactJS app with axios running on top of a NodeJS backend. I also have a local Keycloak server to enable single sign on (sso) and authentication. On the NodeJS backend I configured Keycloak Adapater as: (...other imports...) const session =…
dazito
  • 7,740
  • 15
  • 75
  • 117