• Members 2 posts
    July 3, 2021, 1:56 p.m.

    Hi, thank you for your work. Faced a problem, I'm trying to implement sso for my main project, so that users can enter through the data from the main site. I followed this example and copied it: misago-project.org/t/101-single-sign-on-sso-implementation/948/post/4325/. But after logging in, it just throws me to the main page of the project, and there is no redirect back to the forum. In this case, when you try to log in again, an error is generated:
    django.db.utils.IntegrityError: duplicate key value violates unique constraint "misago_users_user_email_hash_key"
    DETAIL: Key (email_hash) = (2250630ed7c921ddfcf4cb49bce145a5) already exists.

  • Members 2 posts
    July 3, 2021, 2:34 p.m.

    Okay, I realized I just didn't set up redirects. But I have a couple more questions: 1) Is it mandatory to use jwt tokens? As I understand it, authorization on the misago forum is due to the data in the token? 2) Is it possible to connect sso to django, react. At the moment I am using pure django, but I have a front-end server in react and would like to use it, with a back-end in django rest.