# Unable to pass Azure AD authentication

**URL:** <https://community.postman.com/t/unable-to-pass-azure-ad-authentication/64102>\
**Category:** Help Hub\
**Tags:** oauth2, azure\
**Created:** [July 15, 2024, 12:45pm UTC](https://community.postman.com/t/unable-to-pass-azure-ad-authentication/64102 "2024-07-15T12:45:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aradsk](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@aradsk](https://community.postman.com/u/aradsk)\
**Post date:** [July 15, 2024, 12:45pm UTC](https://community.postman.com/t/unable-to-pass-azure-ad-authentication/64102/1 "2024-07-15T12:45:22Z")

</div>

Hi,

I have set up a django project using django\_auth\_adfs library which uses Active Directory for the authentication phase and I had to register and application on Azure for this. Now, I’m trying to work with the API I have set using the rest\_framework library using Postman for desktop. If I send a Get request without any authorization, I get the raw html file of the login page as the result. Then, I followed this link to create an access token:

> **[Calling an Azure AD secured API with Postman](https://dev.to/425show/calling-an-azure-ad-secured-api-with-postman-22co)**
>
> Secure APIs are all the rage, but how can we easily test them. If you're using Postman, then this...

After that, I can see the token being added to the Headers. I haven’t done anything but generating token. Now that I search for it again, I get the exact same html file that I used to get, as if I haven’t generated a token.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [August 14, 2024, 12:46pm UTC](https://community.postman.com/t/unable-to-pass-azure-ad-authentication/64102/2 "2024-08-14T12:46:19Z")

</div>

Closed on August 14, 2024, 12:46pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
