In a discussion about the OpenID Connect plugin for Discourse, reynsnivea reports that while the plugin is configured and working, the email address provided by the identity provider isn’t auto-filled during new user registration. david suggests enabling openid_connect_verbose_logging to debug and notes that some providers require specific scopes to release the email. reynsnivea then asks if users can be redirected directly to the OpenID Connect login page upon visiting the forum homepage. david advises disabling ‘enable local logins’ and enabling ‘login required’ to force automatic redirection. Finally, reynsnivea asks if admins can retain an alternative login method to avoid lockout. david confirms admins can access /u/admin-login to bypass the standard login flow. The thread provides practical configuration tips for improving user experience and ensuring admin access.
We have installed the plugin to use openID connect in discourse.
We have configured the plugin and it seems te work.
What’s not clear to us is dat the identity provider exchanges the email addresses with us but we cannot see what exactly is done with that information?
For example, when a new user passes via the openID connect login screen, he/she is prompted with a screen to create a new user. Normally we would expect that the email address is automatically filled in with the email that we get from the identity provider. This is not the case.
It sounds like the email address isn’t reaching Discourse correctly. Have you tried enabling the ‘verbose logging’ setting, and checking the logs for more info?
Some providers require you to add certain permissions/scopes before they will pass the email address
Thanks. I have enabled the logging and we will retest.
Another question. Now we have to click on “connect with openID connect” and this points us to the login page.
Is there a way to redirect the user directly to that openID connect login page when he / she is surfing to the homepage of our forum ?
Can I do this in the admin console ?
To skip this, you should disable the ‘enable local logins’ option in the admin panel.
If you want to force people to log in, you can turn on the login required setting. Then, they will be redirected to login automatically when visiting the site.
An additional question: can I also configure discourse so that admins have an alternative way to log in so that the admin is not locked out of the forum when the standard log in procedure fails ?