-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IdentityHub AuthenticationFailed with Admin User #512
Comments
Thanks for your contribution 🔥 We will take a look asap 🚀 |
IdentityHub does not have a built-in super user or admin user, nor does it have facilities to create one. While the role definition itself exists (in fact, it's the only role that exists), a super user is not generated. This is the job of downstream distributions. The line in the README is an artifact of times past, I'll remove it. |
@paullatzelsperger : How I fix the "Invalid API token" ERROR during the API Request? Both keys have the same response.
|
the API key for the identity API (this is what we call IH's management API) encodes a form of RBAC (role-based access control) and is composed of the participant context ID and a random string, each base64 encoded. In order to create participant contexts you will need a super user (which isn't created automatically). Please read this document about API security and RBAC. In addition, I recommend looking at the MVD project, and how the super-user is created there on application start, check this extension class. TL;DR, you need:
|
Bug Report
Describe the Bug
Swagger OPEN API: Identity API - getAllCredentials
Get all credentials with super user key:
Produce the error message AuthenticationFailed:
Expected Behavior
Started the IdentityHub with super admin and api account role
Get back a list of credentials like documented in the Open API with the correct admin key:
The text was updated successfully, but these errors were encountered: