[keycloak-user] obtaining token when using identify broker

Tony Harris Tony.Harris at oneadvanced.com
Thu May 9 06:45:42 EDT 2019


Take a look at the last answer on https://stackoverflow.com/questions/49322417/obtain-id-token-with-keycloak, it may help. Never tried it.

-----Original Message-----
From: keycloak-user-bounces at lists.jboss.org [mailto:keycloak-user-bounces at lists.jboss.org] On Behalf Of Tim Dudgeon
Sent: 09 May 2019 10:44
To: keycloak-user <keycloak-user at lists.jboss.org>
Subject: Re: [keycloak-user] obtaining token when using identify broker

Yes, that would work, but I'm wanting users to do this as a 'public' 
client and not have to distribute a client secret to all users.

Tim

On 08/05/2019 10:44, Tony Harris wrote:
> One way would be change your client to confidential and login with the client id and secret.
>
> -----Original Message-----
> From: keycloak-user-bounces at lists.jboss.org [mailto:keycloak-user-bounces at lists.jboss.org] On Behalf Of Tim Dudgeon
> Sent: 08 May 2019 10:09
> To: keycloak-user <keycloak-user at lists.jboss.org>
> Subject: [keycloak-user] obtaining token when using identify broker
>
> Apologies again if this was already answered, but my subscription to the ML keeps getting cut and there is no archive to check!
>
> How can I obtain a token in the following scenario:
>
> 1. My keycloak realm is set up to manage users with identity brokering (e.g. in a browser they would login through GitHub, Google etc.) 2. I have a public client in that realm that has REST API that requires access to be authenticated 3. I want to access that API using curl or other CLI tool so need to provide an access token.
>
> How can I get a token?
>
> Thanks
> Tim
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
> ________________________________
>
> Please consider the environment: Think before you print!
>
>
> This message has been scanned for malware by Websense. www.websense.com
_______________________________________________
keycloak-user mailing list
keycloak-user at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user



More information about the keycloak-user mailing list