snok / django-auth-adfs

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

in Rest Framework integration, Requesting an access token API is not there in code #225

Closed jamilnoyda closed 2 years ago

jamilnoyda commented 2 years ago

reference latest/rest_framework.html#requesting-an-access-token this snippet will help you in tracking the bug.

response = requests.post(
    "https://adfs.example.com/adfs/oauth2/token",
    data=payload,
    verify=False
)

also, i have checked in the code itself. especially urls.py in that I did not find this URL for the token

django_auth_adfs/drf_urls.py

JonasKs commented 2 years ago

What? Please describe the issue in detail. I have no idea what you’re asking..

tim-schilling commented 2 years ago

@jamilnoyda "https://adfs.example.com/adfs/oauth2/token" is just an example of a url value. You should use the URL for your own ADFS server.

jamilnoyda commented 2 years ago

got it closing the issue