Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keycloak social login rest api

I have enabled google social login for my keycloak instance, but I need to use it as a rest service.

Is there endpoint that can be used to do this?

like image 222
Borislav Stoilov Avatar asked Jan 16 '19 14:01

Borislav Stoilov


1 Answers

There is no Google authentication API in the Keycloak but you can solve it with Token Exchanging.

  1. You need first authenticate with Google API and get an external token,

  2. External Token to Internal Token Exchange.

like image 184
Ömür Alçin Avatar answered Nov 15 '22 20:11

Ömür Alçin