docs icon indicating copy to clipboard operation
docs copied to clipboard

[documentation][keycloak] Invalid procedure for "Validate Admin API Access"

Open shdpl opened this issue 9 months ago • 0 comments

I've been following the guide on configuring MinIO for Authenticating using keycloak. I think that section 2) Validate Admin API Access of Enable the Keycloak Admin REST API doesn't work as it's supposed to.

Expected Behavior

Retrieve the bearer token:

curl -d "client_id=minio" \
     -d "client_secret=secretvalue" \
     -d "grant_type=client_credentials" \
     http://keycloak-url:port/realms/REALM/protocol/openid-connect/token

Use the value returned as the access_token to access the Admin API:

curl -H "Authorization: Bearer ACCESS_TOKEN_VALUE" \
     http://keycloak-url:port/admin/realms/REALM/users/UUID

Current Behavior

Retrieve the bearer token:

curl -d "client_id=minio" \
     -d "client_secret=secretvalue" \
     -d "grant_type=password" \
     http://keycloak-url:port/admin/realms/REALM/protocol/openid-connect/token

Use the value returned as the access_token to access the Admin API:

curl -H "Authentication: Bearer ACCESS_TOKEN_VALUE" \
     http://keycloak-url:port/admin/realms/REALM/users/UUID

Possible Solution

Replacing snippets from Current Behavior to Expected Behavior i mentioned seems to work.

Steps to Reproduce (for bugs)

Follow the guide under https://min.io/docs/minio/container/operations/external-iam/configure-keycloak-identity-management.html

shdpl avatar Apr 27 '25 08:04 shdpl