Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSO Moodle users aren't logged in automatically #16

Open
andrewmfsc opened this issue May 28, 2020 · 3 comments
Open

SSO Moodle users aren't logged in automatically #16

andrewmfsc opened this issue May 28, 2020 · 3 comments

Comments

@andrewmfsc
Copy link

andrewmfsc commented May 28, 2020

I'm not sure if this is a bug or meant to be this way due to how Discourse works

But if I create a new account in Moodle, enroll them on a course and in a new incognito/private window login into Moodle and click on a link to Discourse, it takes me to the Discourse main page but I'm not logged in

I have to interact with Discourse for it to create an account, like reply to a comment and then an account is created and I get the tour pop up

Is this due to limitations in Discourse, as ideally it would be nice to get Moodle users SSO working as soon as they land on the Discourse forums, mainly for those people who are less tech savvy and wonder why they aren't logged in

@evanodonnell
Copy link

I'm having the same issue. I have the plugin setup per instructions on both my moodle and discourse. But what do I do to "send" users to the discourse site? If you login to moodle, and then pop open a new tab for discourse it asks for username/password as normal.

@evanodonnell
Copy link

Appologies, it does work. There is an extra step. In discourse, you have to have "Enable SSO" checked off as well. Yes, it's obvious...should have seen it, but also worth adding to the instructions.

@jazinheira
Copy link
Contributor

@evanodonnell Glad you got it to work! And thank you for bringing that to my attention - I've updated the readme in #17

@andrewmfsc That would be ideal and make it easier - but the Discourse API doesn't allow for that and I haven't come up with a workaround yet. So for now, users will need to click the log in button or interact with something in Discourse to kick off it's login flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants