在本地主机上测试 Google SSO SAML

Vin*_*ent 5 python single-sign-on saml-2.0 google-sso google-cloud-platform

Google 作为身份提供商的 Google SSO SAML 设置中的 ACS url 必须以 https 开头。因此,我无法使用本地主机 url。有没有办法在本地服务器上测试 Google SSO SAML?我需要输入什么网址(或其他详细信息)?

Vin*_*ent 4

因此,Google SAML 应用程序(Google 是身份提供商)强制您输入以 https://* 开头的 ACS URL。因此,我无法输入http://localhost url。我使用python3-saml包中的django 演示将 SAML SSO 集成到我的应用程序中。

为了获得指向我的本地主机服务器的 https url,我使用了ngrok,它为您提供了指向本地主机的 url 的 https 和 http 链接。该 https url 可以在 Google 管理中的 ACS url 和实体 url 中输入。在此输入图像描述django 演示使用 url 参数将用户重定向到登录视图,但这对我使用 ngrok 不起作用。因此,我决定在单独的 url/sso/logged-in/而不是/sso/?acs.