Discourseconnect logout issues

I have implemented discourseconnect sso. The issue I am having is when a user logs out via the Log Out button under their profile. It properly redirect them to the logout redirect page I setup in the settings. However, if the user returns to the forum url directly, it gives them the login error page - Account login timed out, please try loggin in again. Then if the user clicks the Log In button on that page, it shows the Welcome page, an account is required, with a login button again. Clicking login button just reloads this page. I thought it would redirect them to the discourse connect url, but it is not.

I also noticed the URL when first revisiting the forums URL is like:
https://forums.betaclub.org/session/sso_login?sso=bm9uY2U9YTMzNWMwNGVlN2M0ZjgxZjdlYTdiNzUxOTg2MzdhZjImZXh0ZXJuYWxfaWQ9Y3NpbXBraW5zJTQwYmV0YWNsdWIub3JnJmVtYWlsPWNzaW1wa2lucyU0MGJldGFjbHViLm9yZyZ1c2VybmFtZT1jc2ltcGtpbnMlNDBiZXRhY2x1Yi5vcmcmbmFtZT1Db3VydG5leStTaW1wa2lucyZhZGRfZ3JvdXBzPXN0YXRlX3Nwb25zb3IlMkNzdGF0dXNfc3BvbnNvciUyQ2VsZWN0X3Nwb25zb3ImYWRtaW49dHJ1ZSZtb2RlcmF0b3I9dHJ1ZSZ0aXRsZT1HcmFwaGljK0Rlc2lnbmVyJmxvY2F0aW9uPVNwYXJ0YW5idXJnJTJDK1NDJmN1c3RvbS51c2VyX2ZpZWxkXzE9UHJvJmN1c3RvbS51c2VyX2ZpZWxkXzI9TmF0aW9uYWwrT2ZmaWNlK1N0YWZmJmN1c3RvbS51c2VyX2ZpZWxkXzQ9Qm90aA%3D%3D&sig=5958e6fd0987271fc0d1c44ff1a0cb0155f3d83ebb9a678de29772bb2b2f67d5

Not sure what is happening here. Could I just disable the logout button?

Good news. I had my logout redirect URL wrong. It was pointed at my production site… and my discourse instance is on dev site… :slight_smile:

All is working as it should.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.