# Custom component authentication not working in Pega Infinity 23

**URL:** <https://forums.pega.com/t/custom-component-authentication-not-working-in-pega-infinity-23/5146>\
**Category:** General\
**Tags:** pega-infinity, constellation, security, pega-platform\
**Created:** [October 5, 2023, 6:21pm UTC](https://forums.pega.com/t/custom-component-authentication-not-working-in-pega-infinity-23/5146 "2023-10-05T18:21:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SateeshB6784](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/sateeshb6784/32/15864_2.png) [@SateeshB6784](https://forums.pega.com/u/SateeshB6784)\
**Post date:** [October 5, 2023, 6:21pm UTC](https://forums.pega.com/t/custom-component-authentication-not-working-in-pega-infinity-23/5146/1 "2023-10-05T18:21:55Z")

</div>

I have a Pega infinity 23 server running in our private cloud.

We developed a custom component and during phase of authentication it is working differently to what is mentioned in this article

> **[Pegasystems Documentation](https://docs.pega.com/bundle/constellation-dx-components-88/page/constellation-dx-components/custom-components/authenticate-user.html)**

Instead of asking for the inputs mentioned there, it asks for _Pega server url_ and _authentication service alias_

Up on entering those details, it opens Pega login screen in a browser and when submitted with login crendetials its throwing an error.

Need your support to overcome this issue.

---

<div class="post-metadata">

**Author:** ![Niall](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@Niall](https://forums.pega.com/u/Niall)\
**Post date:** [October 5, 2023, 6:31pm UTC](https://forums.pega.com/t/custom-component-authentication-not-working-in-pega-infinity-23/5146/2 "2023-10-05T18:31:54Z")

</div>

@SateeshB6784Please post a screen shot of the error.

---

<div class="post-metadata">

**Author:** ![SateeshB6784](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/sateeshb6784/32/15864_2.png) [@SateeshB6784](https://forums.pega.com/u/SateeshB6784)\
**Post date:** [October 9, 2023, 1:34pm UTC](https://forums.pega.com/t/custom-component-authentication-not-working-in-pega-infinity-23/5146/3 "2023-10-09T13:34:09Z")

</div>

@Niall Riddell , up on entering credentials in the login page it redirects to this page.

 ![Error Page.png](https://pega1.discourse-cdn.com/pega/original/2X/e/e888b1f974e891c99c7fef96027841f0cdc55e1f.png)

---

<div class="post-metadata">

**Author:** ![Niall](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@Niall](https://forums.pega.com/u/Niall)\
**Post date:** [November 22, 2023, 1:58pm UTC](https://forums.pega.com/t/custom-component-authentication-not-working-in-pega-infinity-23/5146/4 "2023-11-22T13:58:09Z")

</div>

Please set up your OAuth2 Client Credentials flow. [Pegasystems Documentation](https://docs.pega.com/bundle/constellation-dx-components-88/page/constellation-dx-components/custom-components/authenticate-user.html)

---

<div class="post-metadata">

**Author:** ![MarijeSchillern](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marijeschillern/32/23321_2.png) [@MarijeSchillern](https://forums.pega.com/u/MarijeSchillern)\
**Post date:** [February 21, 2024, 12:05pm UTC](https://forums.pega.com/t/custom-component-authentication-not-working-in-pega-infinity-23/5146/5 "2024-02-21T12:05:22Z")

</div>

@SateeshB6784 please can you confirm if your issue is resolved?

Please mark Neil’s answer with Accept Solution if so.

---

<div class="post-metadata">

**Author:** ![VinodSeraphin](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/vinodseraphin/32/3116_2.png) [@VinodSeraphin](https://forums.pega.com/u/VinodSeraphin)\
**Post date:** [February 21, 2024, 7:54pm UTC](https://forums.pega.com/t/custom-component-authentication-not-working-in-pega-infinity-23/5146/6 "2024-02-21T19:54:35Z")

</div>

@SateeshB6784

Hi Sateesh,

It appears you have moved up to a newer version of DX Component Builder and so the documentation to follow is likely this:

[https://docs.pega.com/bundle/constellation-dx-components/page/constellation-dx-components/custom-components/initialize-project.html](https://docs.pega.com/bundle/constellation-dx-components/page/constellation-dx-components/custom-components/initialize-project.html)

You should be able to move you prior components to a newly created project.

With earlier 8.8 release we defaulted to the “confidential” OAuth 2.0 password credentials flow (DX-CustomComponents OAuth 2.0 client registraton record). We have since moved to prefer the “public” OAuth 2.0 authorization code grant flow (DX-ComponentDev OAuth 2.0 client registration record).

Also see this link for the latest settings within tasks.config file:

[https://docs.pega.com/bundle/constellation-dx-components/page/constellation-dx-components/custom-components/configuring-tasks-config-json-file.html](https://docs.pega.com/bundle/constellation-dx-components/page/constellation-dx-components/custom-components/configuring-tasks-config-json-file.html)

- Vinod
