Google SAML 注销后将用户重定向到哪里?
我的公司使用 Google Apps,并且我们构建了一个单点登录应用程序来执行自定义身份验证。
几个月以来一直运行良好。
我注意到,使用某些 Google 功能(例如切换帐户),用户通常会被重定向回某个网页。
如果用户没有登录我们的任何 Google Apps 帐户,则此方法可以正常工作。然而,如果他们登录到我们的 Google Apps 帐户之一,那么最终会在我们的注销页面陷入死胡同,因为我不知道此时应该将用户发送到哪里。
实际上,我们甚至根本不使用注销页面,它之所以存在,只是因为它是为 Google Apps 设置 SSO 时的必填字段。
所以我的问题是:用户来到我的自定义注销页面后,我应该将他们发送到哪里?
My company uses Google Apps, and we've built a single sign-on application to do our custom authentication.
It's been working just fine for several months.
I've noticed that with certain Google features (like switching accounts), the user is often supposed to get redirected back to a certain web page.
If the user isn't logged into any of our Google Apps accounts, then this works fine. However, if they're logged into one of our Google Apps accounts, then it ends up dead-ending at our sign-out page, because I don't know where I'm supposed to send the user at that point.
We actually don't even use the sign-out page for anything at all, it's only there because it's a required field when setting up SSO for Google Apps.
So my question: Where am I supposed to send the user after they've come to my custom sign-out page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你把它们送到哪里?注销后无论您希望他们在哪里! :)
注销后,您通常会被重定向到两个地方:公司主页或登录页面。
例如,如果我为斯坦福大学医学院构建了 SSO,则注销后,我可能会重定向到 med.stanford.edu 或 med.stanford.edu/signin(假设)。
就您而言,我要么重定向到您公司的主页,要么重定向回您的自定义登录页面。
Where do you send them? Wherever you want them to be after sign out! :)
There are typically two places you get redirected to after sign out: the company's main page, or the sign in page.
For example, if I built a SSO for the Stanford Med School, after sign out, I'd probably redirect to med.stanford.edu or med.stanford.edu/signin (hypothetical).
In your case, I'd either redirect to your company's main page, or redirect back to your custom sign in page.