# Custom social connection - Failed to obtain access token

**URL:** <https://community.auth0.com/t/custom-social-connection-failed-to-obtain-access-token/146510>\
**Category:** Get Help\
**Tags:** account-linking, user-management\
**Created:** [September 12, 2024, 1:13am UTC](https://community.auth0.com/t/custom-social-connection-failed-to-obtain-access-token/146510 "2024-09-12T01:13:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danm364](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/danm364/32/55690_2.png) [@danm364](https://community.auth0.com/u/danm364)\
**Post date:** [September 12, 2024, 1:13am UTC](https://community.auth0.com/t/custom-social-connection-failed-to-obtain-access-token/146510/1 "2024-09-12T01:13:21Z")

</div>

Ready to post? 🔍 First, try searching for your answer.  
Good Afternoon,

I am trying to add a custom connection. I have the custom connections setup with all the right information. However I am receiving the below error message

 ![image](https://global.discourse-cdn.com/auth0/original/3X/1/f/1f42c1a29e7d7faf25e1157fd04f73830702d8ab.png)

I believe this to be due to an issue with the state. I can obtain the accesstoken on postman where i set the state to a constant few letters. However the moment I test the social connection with Auth0 I get the above error. As can be seen this is the state from this url:

https://{appname}.us.auth0.com/authorize/resume?state=kUxR-TXJum\_chz663PgOijzRSRiyFYGC

state on callback:  
https://{appname}/login/callback?state=0R87QuEmTWvLGOrcblpIuJd7agoDvqJ-

I’m unsure on what I can do to correct the issue can you provide any insights?

---

<div class="post-metadata">

**Author:** ![mukund\_bs](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mukund_bs/32/33473_2.png) [@mukund\_bs](https://community.auth0.com/u/mukund_bs)\
**Post date:** [October 10, 2024, 7:51pm UTC](https://community.auth0.com/t/custom-social-connection-failed-to-obtain-access-token/146510/2 "2024-10-10T19:51:40Z")

</div>

@danm364 probably the external IdP only allows GET requests for access tokens(Token endpoint). We are facing a similar situation

Auth0 team @auth_support do you have any suggestions on this?

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [April 9, 2025, 7:03pm UTC](https://community.auth0.com/t/custom-social-connection-failed-to-obtain-access-token/146510/3 "2025-04-09T19:03:13Z")

</div>

Hi @danm364,

Welcome to the Auth0 Community!

Please refer to this Knowledge article for finding a solution to the error:  
[https://community.auth0.com/t/custom-social-connection-fails-to-obtain-access-token/104562](https://community.auth0.com/t/custom-social-connection-fails-to-obtain-access-token/104562)

If you have any other question feel free to reach out.

Have a good one,  
Vlad

---

<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:** [April 23, 2025, 7:03pm UTC](https://community.auth0.com/t/custom-social-connection-failed-to-obtain-access-token/146510/4 "2025-04-23T19:03:35Z")

</div>

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