refer to steps of Create a Google Application in How to setup Sign in with Google using Keycloak
- Authorized JavaScript origins
- Authorized redirect URIs
-
add google api credentials (clientId and clientSecret) in below
.env
file -
init application
# [Optional], for devtool initialization
sh ./devtool-init.sh
# configure initialization, and put your google client configuration in
cp .env.dev .env
# init keycloak and postgres
# Details in [infrastructure](/infrastructure/readme.md)
sh ./infrastructure/keycloak/init.sh
# start keycloak and postgres
sh ./infrastructure/services-up.sh
# start app
cargo run
-
google-oauth (Authorization Code flow (with PKCE))
-
keycloak-google-oauth (Token Exchange && Retrieving external IDP tokens)
http://localhost:8000/keycloak/login (use google login method)