Bubble / Discourse SSO integration broken

I’m using the Discourse SSO setp in my Bubble app (yardpro.com) and running into an error when new users try to log in for the first time. Discourse fails to create the account with this error:

ActiveRecord::RecordInvalid (Validation failed: Name can't be blank)

The verbose SSO log on the Discourse side shows the payload being received, and the name field is completely absent from what Bubble is sending over. According to the official Discourse DiscourseConnect documentation, name needs to be included in the SSO payload for user creation to succeed.

Here’s what the Discourse log shows is being sent:

add_groups: admin: avatar_force_update: avatar_url: bio: 
card_background_url: confirmed_2fa: email: external_id: ...

Notice name: is missing entirely.

Questions:

  1. Is there a way to pass the name field through the current plugin settings that I’m missing?
  2. If not, is this a known bug and is there a fix or updated version coming?
  3. Is there an alternative approach (e.g. a backend workflow) that would let me manually construct the SSO payload and include the name field?

Any help appreciated — users are completely blocked from logging in right now.

Thanks!

Hi @ariklevy ,
Are you using plugin for this Discourse SSO and which plugin are you using or API connector?

I am using the setup in Bubble under Settings / API / Discourse SSO.

I think Bubble’s built-in Discourse SSO not reliably sending the name field (Just confirm with Bubble support).
Better you can disable name requirement in Discourse
Or
Replace Bubble Discourse SSO with Custom SSO via backend workflow

It used to work so something got broken. Hopefully Bubble Support will jump in.

Got it. Hope they will help you on this.

Does anyone know how to get in touch with Bubble Support?

Email to “support@bubble.io“

I was able to get support from Bubble. You need to login to the Discoure server and go to All Site Settings → Users → Full name requirement. and change it to Optional