当使用 SSO 且 auth_immediately = false 时,帐户登录超时

Hi, I got this error when implementing DiscourseConnect

Account login timed out, please try logging in again

whenever I switch auth_immediately to false. Setting it to true make it works again somehow. Any clue on this? I check in log file but there’s no error in there.

Full setting (login/sso related):

SiteSetting.enable_discourse_connect = true
SiteSetting.login_required = true
SiteSetting.auth_immediately = false
SiteSetting.must_approve_users = false
SiteSetting.invite_only = false

Edit: Removing destination_url cookie before do login is working even with auth_immediately = false. But I lose the redirect. Is this a bug?

1 个赞