# Authentication API leads to incorrect client despite id and secret

**URL:** <https://community.auth0.com/t/authentication-api-leads-to-incorrect-client-despite-id-and-secret/87710>\
**Category:** Get Help\
**Tags:** api, login, auth0\
**Created:** [July 27, 2022, 1:00am UTC](https://community.auth0.com/t/authentication-api-leads-to-incorrect-client-despite-id-and-secret/87710 "2022-07-27T01:00:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![apouriliaee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/apouriliaee/32/34400_2.png) [@apouriliaee](https://community.auth0.com/u/apouriliaee)\
**Post date:** [July 27, 2022, 1:00am UTC](https://community.auth0.com/t/authentication-api-leads-to-incorrect-client-despite-id-and-secret/87710/1 "2022-07-27T01:00:51Z")

</div>

Hey all, we are using PHP 7.4 and 7.x of the PHP SDK.

We are trying to use the Authentication API as such:

```auto
$auth0Api = new Authentication($domain, $client_id);
return $auth0Api->get_authorize_link($response_type, $redirect_uri, $connection, $state, $additional_params);

```

I get a link and I am able to reach an SSO login page however upon attempting to log in I’m not able to use the user accounts associated with the application. Instead, I can attempt to log in with a user account associated with another application.

Any insight would be appreciated; please don’t hesitate to request details.  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 28, 2022, 9:04pm UTC](https://community.auth0.com/t/authentication-api-leads-to-incorrect-client-despite-id-and-secret/87710/4 "2022-07-28T21:04:22Z")

</div>

Hi @apouriliaee,

You should be able to see the request and response in developer tools “Network” tab. Can you tell me if you are seeing the correct params go through?

Additionally, you can record a [HAR](https://auth0.com/docs/troubleshoot/guides/generate-har-files) of the request and send it to me in a DM.

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 27, 2022, 11:42pm UTC](https://community.auth0.com/t/authentication-api-leads-to-incorrect-client-despite-id-and-secret/87710/5 "2022-10-27T23:42:46Z")

</div>

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