You need a token to invoke the admin endpoints. Take a look at the "admin-access-app" example in the demo (uses HttpClient) or the "admin-client" example (uses our admin java client library).

On 7 October 2015 at 23:09, robinfernandes . <robin1233@gmail.com> wrote:
Hi All,

I was trying to call this API GET /admin/realms/{realm}/identity-provider/instances/{alias} and all I see in the error message is "Bearer". 

Can someone point me to what credentials I need to use to get the token in order to be able to access this API? Also any tests written for this API would also help.
Am i missing something very obvious? 

Thanks,
Robin

_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user