目前,我正在尝试将我的 Google Cloud 组织设置为使用 Keycloak 接受来自 SSO 的登录。我在设置过程中遵循了 Keycloak 和 Google 的文档,但设置不起作用。有人可以确认客户端配置是否设置正确吗?每当我在 keycloak 中使用我的测试 keycloak 用户登录到 keycloak 时,我都会被重定向到 google 身份验证页面,并且从那里 keycloak 超出了身份验证。当我尝试从 Google 帐户登录页面登录时,我无法重定向到 sso,因此基本上 Keycloak 和 Google 之间的连接无法正常工作。
Client Setup
Client ID - google.com/a/gcp-test2.com
Name - gcp-test2.com
Enabled ON
Consent Required OFF
Client Protocol - saml
Include AuthnStatement - ON
Include OneTimeUse Condition - OFF
Sign Documents - ON
Sign Assertions - ON
Signature Algorithm -RSA_SHA512
Force POST Binding - ON
Front Channel Logout - ON
Force Name ID Format - ON
Name ID Format - email
Root URL - empty
Valid Redirect URIs - empty
Base URL - /auth/realms/gcp-test2.com/protocol/saml/clients/gcp-test2.com?RelayState=true
Master SAML Processing URL - https://google.com/a/gcp-test2.com
IDP Initiated SSO URL Name - gcp-test2.com
Target IDP initiated SSO URL: https://fqdn/auth/realms/gcp-test2.com/protocol/saml/clients/gcp-test2.com
Assertion Consumer Service POST Binding URL - https://google.com/a/gcp-test2.com
SSO config on GCP side:
Login URL: https://fqdn/auth/realms/gcp-test2.com/protocol/saml/clients/gcp-test2.com?RelayState=true
Logout URL: https://fqdn/auth/
Use a domain-specific issuer - checked
Certificate is the one from the REALM certificate with public key.