snok / django-auth-adfs

A Django authentication backend for Microsoft ADFS and AzureAD
http://django-auth-adfs.readthedocs.io/
BSD 2-Clause "Simplified" License
270 stars 98 forks source link

Unable to use oauth2/token endpoint. #284

Closed jlcmux closed 1 year ago

jlcmux commented 1 year ago

im trying to use REST API auth.

i use this doc: https://django-auth-adfs.readthedocs.io/en/latest/rest_framework.html

but when i try use /oauth2/token endpoint i got "not found" url.

i can see

oauth2/ ^login$ [name='login'] oauth2/ ^logout$ [name='logout']

but not oauth2/ ^token$

i would like to login people from nextjs frontend app on my rest api backend usuing azure ad.

thank you.

Upvote & Fund

Fund with Polar

JonasKs commented 1 year ago

Hi! Please read this. The token is not fetched from the backend, but from Azure AD/ADFS.