If you're invoking the admin APIs from a Java application have a look at the admin
client
(
http://docs.jboss.org/keycloak/docs/1.1.0.Final/javadocs/org/keycloak/adm...).
Otherwise you can obtain a token using the direct grant mechanism, have a look at the
admin-client example for that.
----- Original Message -----
From: "Lohitha Chiranjeewa" <kalc04(a)gmail.com>
To: keycloak-user(a)lists.jboss.org
Sent: Tuesday, 31 March, 2015 8:56:10 AM
Subject: [keycloak-user] API Based Authentication and Access Token Retrieval
Hi,
Due to the nature of our set of applications that are authenticated against
KeyCloak, we have a requirement to access KeyCloak APIs outside of SSO
session(s). So the questions are:
1. Seems that all admin APIs are authenticated with the provided access_token
(Bearer). Are there any other authentication mechanisms?
2. If not, is there a way for us to get the access_token without going
through the browser based login flow? (like a single token provider API
which doesn't expect an authorization_code)
Thanks!
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user