mayankgopronto02/15/2023, 2:56 PM
which runs as a
API server and talks to the supertokens core and all authentication happens via the IdP. We have an existing
app which currently does regular django session authentication and sets the
in the cookie. In the new implementation, where I am trying to slowly migrate all the services to supertokens, all the requests will contain the supertokens'
token. So I am planning to write a django middleware which will call the
session-verify API . And if successful, I can set the django
object. I was looking through the python SDK which has a plugin for
. Is there any way I can achieve this using the SDK? I do not want to do
in my django app to maintain abstraction. Is this approach feasible or would you suggest I go with the
sdk and use the supertokens backend in the django server too?
rp02/15/2023, 2:58 PM
mayankgopronto02/16/2023, 8:59 AM
is extracted in the django server from the access token instead of the frontend? Because it may be easier to send the token in a cookie instead of Authorization header, given my architectural constraints.
rp02/16/2023, 9:02 AM
mayankgopronto02/16/2023, 9:24 AM