[keycloak-user] Fwd: Obtain Token and Invoke Service throught CLI

Mehdi Sheikhalishahi mehdi.alishahi at gmail.com
Mon Mar 13 06:14:08 EDT 2017


---------- Forwarded message ----------
From: Mehdi Sheikhalishahi <mehdi.alishahi at gmail.com>
Date: Sat, Mar 11, 2017 at 10:32 AM
Subject: Obtain Token and Invoke Service throught CLI
To: keycloak-user at lists.jboss.org


Hi

I have read http://blog.keycloak.org/2015/10/getting-started-with-
keycloak-securing.html for trying to authenicate to KC with username and
password through CLI. But it seems this method does not work with KC 2.5.4,
because public client does not provide Redirect URI field.

See below:

Obtain Token and Invoke Service

First we need to create a client that can be used to obtain the token. Go
to the Keycloak admin console again and create a new client. This time give
it the *Client ID* curl and select public for access type. Under *Valid
Redirect URIs* enter http://localhost.


How can I do this with KC 2.5.4?

Thanks,
Mehdi


More information about the keycloak-user mailing list