Comments (3)
never mind, I solved the issue by adding manage-realm in realm-management to my account in keycloak console.
from keycloak-nodejs-admin-client.
I also got 403 errors when launching service.realms.find()
Request URL:
https://auth.eks.dev.onemindtechnologies.com/auth/admin/realms/onemind-ng/roles
Result:
{error: "unknown_error"}
error: "unknown_error"
plz, help me so that I fix this issue.
from keycloak-nodejs-admin-client.
Describe the bug
When creating a new realm (using a client with all needed roles), it seems the promise is resolved BEFORE the realm is completely setup. Trying to retrieve this realm will result in a 403 Forbidden result.
Version
server 17.0.1, npm package 18.0.0
Expected behavior
the newly created realm should be retrieved.
Actual behavior
403 Forbidden. Waiting a couple of seconds between the create and the find results in a correct behavior.
How to Reproduce?
import KCAdminClient from '@keycloak/keycloak-admin-client'; const service = new KCAdminClient({ baseUrl }); await service.auth({ clientId, clientSecret grantType: 'client_credentials', }); const newName="test"; const {realmName} = await service.realms.create({ realm: newName, enabled: true, ... }); const realmObj = await service.realms.findOne({ realm: realmName });Anything else?
I'll try with server version 18 today and will update this issue.
Did you solve this issue?
@SimonMARTIN87
from keycloak-nodejs-admin-client.
Related Issues (20)
- Add EvaluationResultRepresentation
- Get Multiple Users by Id HOT 1
- Add exportResource return type
- Add support for generating example IdToken and UserInfo for client-scope evaluation
- Support custom request headers injection HOT 1
- misleading 405 error when trying to delete a resource by passing undefined/null resource ID HOT 2
- Client randomly adds extraneous slashes HOT 1
- findOne by username returns multiple users in array HOT 4
- users.find() also return their federated identities HOT 1
- Support oauth2DeviceAuthorizationGrantEnabled flag when creating clients HOT 1
- Poor CommonJS experience HOT 7
- Package "react-monaco-editor" not found. Have you installed it? HOT 1
- Webpack Compilation Error: "You may need an appropriate loader to handle this file type" error after upgrading to 19.0.0 HOT 2
- Error: "Cannot use import statement outside a module" HOT 6
- Error [ERR_REQUIRE_ESM] HOT 32
- Creating a Client Scope does not return the ID HOT 1
- Add support for finding groups by their path name HOT 1
- Backward compatibility to support CommonJS HOT 1
- Unable to specify roles with new user creation HOT 1
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-nodejs-admin-client.