Repository navigation
401 when accessing newly created realm in Keycloak #36155
Unanswered
caveofjulian
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have an installation service so I can programmatically create a new tenant which includes setting up a Keycloak Realm.
In order to do this, I am using the Keycloak.Net.Core library and I have written the following code:
The realm is successfully created, however, the creation of the user fails with a 401 Unauthorized, which I don't except because I am authenticating with the main account that has access to all of the realms. Of course, I do believe it has to do with the fact that the scope may be insufficient through the API in comparison to when you use it through the admin UI Panel, however, I don't know how to gain access to the realm to successfully set up the user and client, as I am unable to create a new user which would have sufficient access. I fiddled around with my account settings.
Any ideas?
All reactions