django-auth-adfs icon indicating copy to clipboard operation
django-auth-adfs copied to clipboard

Django admin UI page: Oauth 2 isn't working

Open sbordiya opened this issue 1 year ago • 1 comments

I've a django angular application. The accessTokenAcceptedVersion =1 on my azure app manifest works for django admin (http://localhost:8000/admin) but when I change it to version accessTokenAcceptedVersion =2 it stops authenticating and shows me message as "login failed".

I'm using MSAL for the angular side which works with accessTokenAcceptedVersion =2. How do i enable django side to work Oauth 2.0? Here is my stack:

Python== 3.9.18 Django==3.2.* angular==15.2 msal-angular==2.5.8

Thank you!

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

sbordiya avatar Jan 19 '24 16:01 sbordiya

Have you also configured django-auth-adfs to use token version 2?

Please also read the troubleshooting section in the docs.

JonasKs avatar Jan 22 '24 17:01 JonasKs