-
Authentication with cookie["sessionid"] made it difficult to authenticate across different domains, so we want to switch to authentication using access_token. By issuing tokens as shown below, user authentication on the Django side after login with access_token became possible:
However, the user is no longer recognized on the allauth side after login. Testing with Postman showed that placing the session_token in cookie["sessionid"] allows the user to be recognized, but is it not possible to authenticate with access_token? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Shouldn't you be using OAuth/OpenID Connect for such use cases?
That is currently the case, yes. For that to work we would need to be able to lookup the session from the access token. So, you would need to encode the session ID, or be able to somehow look it up, solely based on the access token. |
Beta Was this translation helpful? Give feedback.
Shouldn't you be using OAuth/OpenID Connect for such use cases?
That is currently the case, yes. For that to work we would need to be able to lookup the session from the access token. So, you would need to encode the session ID, or be able to somehow look it up, solely based on the access token.