Skip to main content

apps.users.strategy

DjangoJWTStrategy

class DjangoJWTStrategy(DjangoStrategy)

redirect

def redirect(url)

This method is called multiple times by social_django in various situations. One of such cases is when the OAuth2 flow is complete and we redirect user back to the web app. In such case an HTTPOnly cookie should be set to a JWT created during this step.