We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In auth_callback: https://github.com/workos/python-django-example-applications/blob/main/python-django-sso-example/sso/views.py#L62
def auth_callback(request): code = request.GET["code"] profile = workos.client.sso.get_profile_and_token(code) p_profile = profile.to_dict() request.session["p_profile"] = p_profile request.session["first_name"] = p_profile["profile"]["first_name"] request.session["raw_profile"] = p_profile["profile"] request.session["session_active"] = True return redirect("login")
It looks like p_profile["profile"] is not longer a valid field, resulting in a KeyError.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In auth_callback:
https://github.com/workos/python-django-example-applications/blob/main/python-django-sso-example/sso/views.py#L62
def auth_callback(request):
code = request.GET["code"]
profile = workos.client.sso.get_profile_and_token(code)
p_profile = profile.to_dict()
request.session["p_profile"] = p_profile
request.session["first_name"] = p_profile["profile"]["first_name"]
request.session["raw_profile"] = p_profile["profile"]
request.session["session_active"] = True
return redirect("login")
It looks like p_profile["profile"] is not longer a valid field, resulting in a KeyError.
The text was updated successfully, but these errors were encountered: