Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

TypeError at /admin/login/ - 'NoneType' object is not subscriptable #443

Open
yeguacelestial opened this issue Feb 4, 2021 · 8 comments

Comments

@yeguacelestial
Copy link

yeguacelestial commented Feb 4, 2021

Hello, I hope you're having a great day.

I configured MICROSOFT_AUTH_CLIENT_ID, MICROSOFT_AUTH_CLIENT_SECRET and MICROSOFT_AUTH_TENANT_ID.

However, when I access the admin site, this error keeps raising.
image

The traceback:
image

Did anyone face this before?

Thank you in advance.

@marcosalcazar
Copy link

@yeguacelestial did you ever solved this issue? I am facing the same one right now :(

@yeguacelestial
Copy link
Author

Hello @marcosalcazar,

can't remember what I did tbh, but check out the redirect uris on Azure, and make sure you're setting correctly the site ids

@marcosalcazar
Copy link

marcosalcazar commented Jun 15, 2021 via email

@yeguacelestial
Copy link
Author

@marcosalcazar I think I ended up using another library for validating the session with Microsoft.

My backend was handled by django-allauth with Microsoft provider. And I was validating and sending the session tokens from my frontend (React Native).

I would suggest you use that same flow, since handling all the session on Django could be a pain in the * if not done correctly.

@mahdyhamad
Copy link

Facing the same issue, any updates?

@marcosalcazar
Copy link

Sorry, no... I was doing some investigation on this but the project took another direction. Never found a solution, tough :(

@cmotta11
Copy link

I fixed this use by fixing the MICROSOFT_AUTH_TENANT_ID in the settings.py file

@ingenika
Copy link

I fixed this use by fixing the MICROSOFT_AUTH_TENANT_ID in the settings.py file

For my case, I do have the tenant id, but still get this error

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants