Questions tagged [keycloak-nodejs-connect]
56 questions
14
votes
3 answers
Revoke Keycloak access token
I am using Keycloak to secure my react front-end and node.js back-end. These clients are protected using role based authorization.
My front-end application registered in Keycloak as a public client and back-end registered as bearer only client. When…

Chamith Madusanka
- 471
- 2
- 4
- 11
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,…

vaibhav tripathi
- 121
- 1
- 4
5
votes
1 answer
Keycloak - request user to verify email address through api
Desired result:
User should be able to register and then he should be able to login thrugh a mobile app (event if the email address isn't verified), the app shows a warning that email isn't verified and some app functionality a disabled
What i…

zooofeex
- 106
- 1
- 6
4
votes
1 answer
Confidential Rest-Api w/ Permissions - Always 403s - What Am I Doing Wrong?
I've tried for many hours now and seem to have hit a wall. Any advice/help would be appreciated.
Goal: I want to authorize the express rest-api (ex client-id: "my-rest-api") routes (example resource: "WeatherForecast") across various HTTP methods…

IfTrue
- 489
- 8
- 25
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…

Sheldon Cooper
- 627
- 4
- 15
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
Keycloak custom login page with `Authorization Code` flow
we're trying to integrate keycloak with native app but the login/registration oauth2 flow with keycloak presents the default login page which doesn't fit our requirements about material design user screens
I see that there are few options to…

Sagar Jani
- 257
- 1
- 10
3
votes
0 answers
Keycloak-nodejs-connect grantManager can't validateToken when configured with internal kubernetes keycloak service address
I have an issue when validating tokens using the keycloak-nodejs-connect library deployed to a kubernetes cluster - specifically when using the internal kubernete's service address for keycloak as the auth-server-url. I am using keycloak version…

Andrew Cattermole
- 81
- 3
2
votes
1 answer
Use keycloak.protect() in a function that will be used as a middleware in nodejs/expressjs
The route look like this where verifytoken is a middleware.
router.get('/v1/endpoint', verifytoken, apis.getData);
In order to protect this route we will generally use keycloak.protect(); but I want to use verifytoken which is a middleware and…

undefined-2493
- 23
- 7
2
votes
1 answer
Cannot set `bearerOnly: true` in Keycloak 19.0
I am trying to secure my backend service but due to the updates with Keycloak 19.0 I can't follow any tutorial online. I am trying to set bearerOnly: true but there are no options to set the access type in new version of Keycloak

null2493
- 69
- 9
2
votes
0 answers
Logout from Keycloak is not working properly
when i call below code, it will go to if statement i.e. keycloak.authenticated. Aftert that keycloak.logout(), neither alert Success nor Fail will not display.
if(keycloak.authenticated) {
keycloak.logout().then((success) => {
…

Hoks Vishu
- 63
- 4
2
votes
0 answers
nodejs Keycloak adapter force redirect_uri with ssl
I have a nodejs express application with keycloak adapter protecting https://example.com (with SSL)
My keycloak adapter is configured this way:
Notice the httpS in both URLs.
Now I am facing an issue, when the user login successfully (via keycloak)…

dazito
- 7,740
- 15
- 75
- 117
2
votes
1 answer
keycloak-nodejs-connect express.js app behind reverse proxy
I have created a node.js app with Keycloak middleware for Express JS, which proverbially "works on my computer".
const Keycloak = require('keycloak-connect')
const express = require('express')
const session = require('express-session')
const app =…

sscarduzio
- 5,938
- 5
- 42
- 54
2
votes
0 answers
Implement keycloak connect in express application
Im using Keycloak server for authorization(microservice).
I cloned this project https://github.com/w3tecch/express-typescript-boilerplate/tree/master
In my express project I'm using keycloak-connect(keycloak adapter) library
I want to implement code…

Leap
- 158
- 11
2
votes
0 answers
Keycloak Nodejs Access Denied with downloaded configuration
I'm having some issues with my Nodejs-Keycloak Connection, I'm getting Access Denied after Authentication (user and password work, also registering) even with the most basic config. I'm getting Access Denied on Postman and on the browser. I've…

liga
- 97
- 8