# "failed to obtain access token" Error

**URL:** <https://community.auth0.com/t/failed-to-obtain-access-token-error/92269>\
**Category:** Get Help\
**Created:** [October 12, 2022, 7:31pm UTC](https://community.auth0.com/t/failed-to-obtain-access-token-error/92269 "2022-10-12T19:31:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vlimjap](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlimjap/32/36383_2.png) [@vlimjap](https://community.auth0.com/u/vlimjap)\
**Post date:** [October 12, 2022, 7:31pm UTC](https://community.auth0.com/t/failed-to-obtain-access-token-error/92269/1 "2022-10-12T19:31:01Z")

</div>

Hi. I’m at my wit’s end. I am running a local version of the sample app in attempt to create a POC. I’m currently receiving this error how ever I have verified that the values defined in our Active Directory settings are the correct values.

Does anyone know of any other route action I can take?

Thank you in advance.

“error”: {  
“message”: “failed to obtain access token”,  
“oauthError”: “invalid\_request”,  
“type”: “request-error”,  
“payload”: “{"error":"invalid\_client","error\_description":"AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app ‘XXXXXXXX-f607-XXXX-aa5c-4eab3f608235’.\r\nTrace ID: 92b00006-ca18-45f8-bf08-db5cc84c3600\r\nCorrelation ID: 7bce3c59-c072-4183-956d-b93fc6a1d9d2\r\nTimestamp: 2022-10-12 19:26:19Z","error\_codes":[7000215],"timestamp":"2022-10-12 19:26:19Z","trace\_id":"92b00006-ca18-45f8-bf08-db5cc84c3600","co”  
},

---

<div class="post-metadata">

**Author:** ![alex.brett](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alex.brett/32/60157_2.png) [@alex.brett](https://community.auth0.com/u/alex.brett)\
**Post date:** [November 27, 2024, 5:56pm UTC](https://community.auth0.com/t/failed-to-obtain-access-token-error/92269/2 "2024-11-27T17:56:05Z")

</div>

Hello @vlimjap!

After checking the community post for similar issues I found a few that may be some help. There is a [knowledge article](https://community.auth0.com/t/azure-ad-logins-fails-with-error-failed-to-obtain-access-token/100612) that describes this issue as well.

> [@Failed to obtain access token](https://community.auth0.com/t/failed-to-obtain-access-token/65949):
>
> Hey there, I have created Azure AD tenant and registered application by following same steps which provided here: I’m not sure if I’m missing anything, but whenever I try to check my connection through auth0 dashboard only, it gives me following error: { "error": "invalid\_request", "error\_description": "failed to obtain access token" } Please suggest me if I’m making any mistake. Thanks

[https://community.auth0.com/t/failed-to-obtain-access-token-and-error-aadsts50146-with-azure-ad-entra-id-connection/135759](https://community.auth0.com/t/failed-to-obtain-access-token-and-error-aadsts50146-with-azure-ad-entra-id-connection/135759)

I hope these help!

Best,  
Alex

---

<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:** [December 11, 2024, 5:56pm UTC](https://community.auth0.com/t/failed-to-obtain-access-token-error/92269/3 "2024-12-11T17:56:19Z")

</div>

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