How to use api login or register with social oauth2 like google

Hi all, i want to know how to use api register or login with social authentication instead of Keycloak’s GUI

Hello,
This is a recurrent question, and the answer is always the same, see here for an example:

1 Like

thank you for support

In fact, I want to ask about the login API so that I don’t need to use the keyClak GUI, I have found it.

/realms/{realm-name}/protocol/openid-connect/auth GET
params ? client_id, redirect_uri, response_type=code, scope, kc_idp_hint = google (alias IdP)

This API is used for Authorization Third Party
Resposne include:

  • session_state
  • iss
  • code (for get token in keycloak - /realms/{realm-name}/protocol/openid-connect/token)