# Bug in the custom login for Azure ADB2C?

**URL:** <https://community.appfarm.io/t/bug-in-the-custom-login-for-azure-adb2c/1023>\
**Category:** Bug reports\
**Tags:** authentication\
**Created:** [February 3, 2024, 4:09pm UTC](https://community.appfarm.io/t/bug-in-the-custom-login-for-azure-adb2c/1023 "2024-02-03T16:09:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trond.tunheim](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@trond.tunheim](https://community.appfarm.io/u/trond.tunheim)\
**Post date:** [February 3, 2024, 4:09pm UTC](https://community.appfarm.io/t/bug-in-the-custom-login-for-azure-adb2c/1023/1 "2024-02-03T16:09:15Z")

</div>

Hi,

I’m trying to get authentication with AdB2c to work. I have followed the guide given in the doc : ([Implement third-party authentication | Appfarm Documentation](https://docs.appfarm.io/how-to/authentication-and-access-control/third-party-authentication#authentication-using-azure-a-d-b2c)). This seems to work, but the challenge is that when trying to log in , the URL generated by the AppFarm App looks like this :  
[https://domain.b2clogin.com/domain.onmicrosoft.com/oauth2/v2.0/authorize?p=custom\_policy?client\_id=cbdc86b8-df8e-40fe-944e-255c84d04929](https://domain.b2clogin.com/domain.onmicrosoft.com/oauth2/v2.0/authorize?p=custom_policy?client_id=cbdc86b8-df8e-40fe-944e-255c84d04929)…

This URL is not a valid authentication URL for AdB2c, as you can see it contains two “?” ! The last one should be and ampersand, so the URL should look like this to be valid :

[https://domain.b2clogin.com/domain.onmicrosoft.com/oauth2/v2.0/authorize?p=custom\_policy&client\_id=cbdc86b8-df8e-40fe-944e-255c84d04929](https://domain.b2clogin.com/domain.onmicrosoft.com/oauth2/v2.0/authorize?p=custom_policy&client_id=cbdc86b8-df8e-40fe-944e-255c84d04929)…

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [February 5, 2024, 10:36am UTC](https://community.appfarm.io/t/bug-in-the-custom-login-for-azure-adb2c/1023/2 "2024-02-05T10:36:58Z")

</div>

Hello!

Good find. This is a bug, and we have located it! Patch is coming soon.

Will keep you posted.

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [February 6, 2024, 10:58am UTC](https://community.appfarm.io/t/bug-in-the-custom-login-for-azure-adb2c/1023/3 "2024-02-06T10:58:03Z")

</div>

This one is now reportedly fixed! Can you check if the problem is solved?

---

<div class="post-metadata">

**Author:** ![trond.tunheim](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@trond.tunheim](https://community.appfarm.io/u/trond.tunheim)\
**Post date:** [February 6, 2024, 1:36pm UTC](https://community.appfarm.io/t/bug-in-the-custom-login-for-azure-adb2c/1023/4 "2024-02-06T13:36:27Z")

</div>

Hi Kristian,

Impressive fix time. Yes , I can confirm that the ADB2c login now works.

Thank you.
