好的,它起作用了。非常感谢!
旧消息:
感谢 @simon 的回复。不幸的是,我无法让它正常工作。您的链接中提到应使用如下 URL:
http://localhost:3000/session/sso?return_path=http%3A%2F%2Flocalhost%3A3000%2Fnew-message%3Fusername%3Dscossar%26title%3DInformation+requested+about+gentle+yoga+classes
我最初以为应该将其添加到 官方 Discourse SSO 文档 的第 6 阶段。因此它应该是这样的:
http://discourse_site/session/sso_login?sso=payload&sig=sig&return_path=https%3A%2F%2Fdiscourse_site%2Fnew-message%3Fusername%3Dscossar%26title%3DInformation%2Brequested%2Babout%2Bgentle%2Byoga%2Bclasses
但这并没有奏效。所以我开始在不同位置进行测试,但都没有成功。能否请您详细说明一下 return_path 应该放在哪里?