Invite only forum with Google, OIDC or Oauth2 login

AI-generated summary

A user, phil22, is seeking help with an issue on their self-hosted Discourse instance using OIDC with Google authentication. They’ve restricted access to users within their Google organization and set the forum to invite-only. However, when invited users try to sign in via Google, they encounter an error message. pmusaraj notes the issue is similar to a previously discussed topic here. phil22 agrees and apologizes for not referencing the existing thread earlier.

Hello,

I have a self hosted discourse instance. I have set up the OIDC connect plugin to sign in users with their google account. Using the settings in the google cloud console I’m able to limit this to users within my google organisation.

The forum is invite only as I only want a subset of my organisation to be able to access it. I’m running into a problem where, when users follow an invite link and click to sign in with google, they get an error “this forum is invite only”.

The only way I’ve been able to add new users is to create a local user with the same email address. The workflow I’d like is to be able to invite people, and then they just click and sign in with google without any new account creation.

Is this possible currently with discourse? I can user either the OIDC plugin or Google oauth.

Thanks in advance

Seems very similar to Invite Only with OpenID only does not work

Agreed, apologies - I had seen that post but lost it in a sea of other similar ones that weren’t quite the same issue.