[keycloak-user] entitlement api & Authorization API Endpoint not working (as documented)

Suresh Mali sursma at yahoo.com
Wed Jan 9 12:19:42 EST 2019


Hi  I am trying to trying to get available permissions for a user
I tried  autherization end point  as per the document  
  curl -X POST
    -H "Authorization: Bearer ${AAT}" -d '{
    "ticket" : ${PERMISSION_TICKET}
}' "http://localhost:8080/auth/realms/moneysmart/authz/user_mgt"
I get error HTTP/1.1 404 Not Found
where $AAT below is users access token, moneysmart is realm and user_mgt is client_id  $PERMISSION ticket obtained from  http://localhost:8080/auth/realms/moneysmart/authz/protection/permission
Not permission ticket api works, 
I tried entitilement API 
curl -X GET \
    -H "Authorization: Bearer ${access_token}" \
    "http://localhost:8080/auth/realms/moneysmart/authz/entitlement/user_mgt"
This also gives error HTTP/1.1 404 Not Found

Is there something else missing in setup or something else?
-Suresh


More information about the keycloak-user mailing list