I manage to integrate the SSO into my website but i have 2 problems :
It seems to work for most of the users but the main admin.
I got this error :
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
RuntimeError (Bad signature for payload
expected sig: 3e153ae6c8313b3c94e19963cdd4db6ef86f041017b6a058c6f023df03c72a20)
I ask for overwirte profile img and submit a new url when processing the sso login but it don’t take it. The image still the standard discourse one.
Thanks for your help !
Update 1) : Seems like when the user already exist in the forum (imported from mybb) the sso don’t work. I get
expected sig: 3f301ee699fa9842c1a21d705ca8af6c461b22bdf77edf7f212ab4c8c8783bb7)
When it is a new user and discourse register it then there is no problem.
Update 1) I found the bug. It seems like unlike the docs say we don’t have to url encode the base64 encoded payload. Instead url encode each filed appart before base64 encode. Seems like the sso login system works now.
Update 2) Even if sso login work for all users as mentionned above. I still not manage to overrivde local avatar with sso avatar
Update 3) seems like other pplz have the same problem : Avatar not showing up though avatar_url is correct