SSO won't create user as admin or suppress welcome message

Hi,

New to discourse and having a problem with SSO.

Before signing my payload looks like this.
“nonce=d09ba51dbc2094e47f5b8e85d5612520&external_id=539692721&email=admin%blah.uk&name=Tadmin&avatar_force_update=1&admin=1&suppress_welcome_message=1”

The user is created but isn’t an admin and does get a welcome message.

What am I doing wrong?

Cheers

Matt

Try using true instead of 1.

5 Likes

Thanks Simon - that did it.

If anyone else encounters this problem when php and http_build_query it’s because http_build_query will change any boolean to 1 or 0.

5 Likes