Ayúdame a solucionar problemas de mi SSO de Discourse

I’ve been chipping away at this for most of the early morning and haven’t made much progress. I think I eliminated the MaxMindDB errors (they were sporadic and inconsistent earlier, I haven’t been able to replicate them for the past 3 hours) and I rebuilt my app several times successfully.

Here is where the SSO Pipeline breaks:

  • user visits discourse
  • Since there isn’t an active session the user is redirected to discourse/session/sso_login
  • The user is redirected to my-site/discourse_sso?sso=XXXX&sig=XXXX
  • When the previous route from my site is hit I make a GET request to /users/by-external/userId.json
    • this returns a 403 Forbidden
  • Immediately after a POST request is sent to /admin/users/sync_sso
    • this results to a 404 "No route matches [POST] /admin/users/sync_sso
  • Eventually, my site returns a 503 Forbidden message (I need to clean up some of the error messages on my site’s end)

I feel like the error is on the Rails app side of things (please correct me if I am wrong). One reason I feel this way is because, at the EOD Friday, everything worked, there is proof since I had a few new users sign up between Friday evening and Saturday (and logging in or creating a new user is what was broken). As I mentioned in previous posts, I thought I fixed everything then, however, when I started work on Saturday, I noticed it was broken again.

1 me gusta