# Azure AD as login method

**URL:** <https://community.appfarm.io/t/azure-ad-as-login-method/337>\
**Category:** Ask the community\
**Tags:** login\
**Created:** [March 13, 2023, 8:10am UTC](https://community.appfarm.io/t/azure-ad-as-login-method/337 "2023-03-13T08:10:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andershc](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@andershc](https://community.appfarm.io/u/andershc)\
**Post date:** [March 13, 2023, 8:10am UTC](https://community.appfarm.io/t/azure-ad-as-login-method/337/1 "2023-03-13T08:10:17Z")

</div>

Hi! I am setting up Azure AD for logging into the application, and everything works. Except when the user wants to log in the first time they have to be registered into the Azure AD (I am using self service sign up). When they are finished creating the user, an error appears. The user is created and everything seems to work because they can log into that user if they go to the application page again. This is the error:  
 ![Screenshot 2023-03-13 at 08.45.43](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/0ff471434bbbbe885b34c449a01ce40ebcdb062b.png)

---

<div class="post-metadata">

**Author:** ![Simona](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/simona/32/201_2.png) [@Simona](https://community.appfarm.io/u/Simona)\
**Post date:** [March 14, 2023, 11:02am UTC](https://community.appfarm.io/t/azure-ad-as-login-method/337/2 "2023-03-14T11:02:12Z")

</div>

Hei! Can you check if the endpoint is accessible like it is described here? [Troubleshooting - Azure AD Workload Identity](https://azure.github.io/azure-workload-identity/docs/troubleshooting.html#aadsts90061-request-to-external-oidc-endpoint-failed)

---

<div class="post-metadata">

**Author:** ![andershc](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@andershc](https://community.appfarm.io/u/andershc)\
**Post date:** [March 17, 2023, 8:01am UTC](https://community.appfarm.io/t/azure-ad-as-login-method/337/3 "2023-03-17T08:01:51Z")

</div>

Yes, I think it is accessible.

 ![Screenshot 2023-03-17 at 08.59.29](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/c5dc7b3f485a2e49ca9c51faa9c3d8e17f83da67.png)
