Git Product home page Git Product logo

Comments (3)

timeisgolden avatar timeisgolden commented on August 16, 2024 1

never mind, I solved the issue by adding manage-realm in realm-management to my account in keycloak console.

from keycloak-nodejs-admin-client.

timeisgolden avatar timeisgolden commented on August 16, 2024

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.

timeisgolden avatar timeisgolden commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.