Comments (7)
I'm getting the same error while using keycloak/keycloak-nodejs-connect, so your issue might be caused by something else
from keycloak.
closing
from keycloak.
In my case I was trying to write a test with request(app).get("some/route")
. The route must start with a /
.
from keycloak.
Same error
from keycloak.
I think example in readme is wrong realm
should be in the auth settings and baseUrl
in the options for client constructor
@stevehogdahl try below it works for me
const KeycloakAdminClient = require('keycloak-admin').default;
const settings = {
username : config.KeycloakUsername,
password : config.KeycloakPassword,
grant_type: 'password',
client_id : 'admin-cli',
realmName : config.KeycloakRealm
}
const client = new KeycloakAdminClient( {
baseUrl: config.KeycloakBaseLocation,
});
await client.auth(settings);
from keycloak.
@patrykwegrzyn thank you, I'll give that a try.
from keycloak.
I think example in readme is wrong
realm
should be in the auth settings andbaseUrl
in the options for client constructor@stevehogdahl try below it works for me
const KeycloakAdminClient = require('keycloak-admin').default; const settings = { username : config.KeycloakUsername, password : config.KeycloakPassword, grant_type: 'password', client_id : 'admin-cli', realmName : config.KeycloakRealm } const client = new KeycloakAdminClient( { baseUrl: config.KeycloakBaseLocation, }); await client.auth(settings);
No. The REAME is correct, In your case maybe you were using the wrong "realm" and by not putting "realmName" in "KeycloakAdminClient" the library put you the realm "master"
from keycloak.
Related Issues (20)
- Can we remove undertow OIDC adapter? HOT 1
- Remove JAAS login modules
- Remove KeycloakInstalled
- Can we remove whole keycloak-adapter-core module? HOT 1
- Update documentation after adapters removal
- Doublecheck quickstarts after adapter removal
- Doublecheck testsuite after adapters removal
- Doublecheck server codebase for removing stuff used solely by Keycloak Java adapters
- `passwordPoliciesHelp.notContainsUsername` missing in admin console HOT 1
- PF resources are not served for login screens when `--http-relative-path` is in use HOT 3
- NPE when listing sessions in UI if associated user is gone
- Decide how organizations and related changes to a realm will be enabled/disabled HOT 1
- Removing offline sessions not associated with user from the database
- Add missing german translations for user federation in admin UI HOT 1
- keycloak-js: Add documentation on how to init adapter with existing token
- Child groups filtering returns all groups HOT 10
- Support id_token_hint in OIDC and CIBA in keycloak authorization server HOT 19
- Failure reset time is applied to Permanent Lockout
- Inconsistent Group Ordering in Keycloak API Responses For Client Policies Causing Drift Detection Challenges HOT 3
- Keycloak Operator 24.x - the keycloak custom image tag is being overwritten with nightly pull HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keycloak.