# SSO "failed to obtain access token" auth0

**URL:** <https://community.auth0.com/t/sso-failed-to-obtain-access-token-auth0/36532>\
**Category:** Get Help\
**Tags:** sso\
**Created:** [January 18, 2020, 1:10am UTC](https://community.auth0.com/t/sso-failed-to-obtain-access-token-auth0/36532 "2020-01-18T01:10:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugo.delacruz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hugo.delacruz/32/14067_2.png) [@hugo.delacruz](https://community.auth0.com/u/hugo.delacruz)\
**Post date:** [January 18, 2020, 1:10am UTC](https://community.auth0.com/t/sso-failed-to-obtain-access-token-auth0/36532/1 "2020-01-18T01:10:46Z")

</div>

Hello, I have SSO and database authentication configured on my Auth0 application. I am using these Auth0 javascript libraries to authenticate (so what the user sees is really a login flow provided by auth0):  
“@auth0/auth0-spa-js”: “^1.6.0”,  
“auth0-js”: “^9.11.3”,

Username/password users can login with no problem but SSO Active Directory users can not login, I get this error:

> error: “invalid\_request”  
> errorDescription: “failed to obtain access token”  
> state: “HUT77XUn4U1IGFOpirxmJl7TqlNzL4d5”

Here are some screenshots:  
[Screen Shot 2020-01-17 at 19.02.37|503x500](https://community.auth0.com/uploads/short-url/euky2BVLhzN63r1u9LTsnYmXQH5.png)

 ![Screen Shot 2020-01-17 at 19.06.02](https://global.discourse-cdn.com/auth0/original/3X/1/5/15cd1d94fd1a5d003bc25712a6e8537f3fb7a385.jpeg) ![Screen Shot 2020-01-17 at 19.07.04](https://global.discourse-cdn.com/auth0/original/3X/b/0/b0722bd6b392e12eb4f81ead2ab47beacc5ed31a.png)

---

<div class="post-metadata">

**Author:** ![karen.bermudez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karen.bermudez/32/28446_2.png) [@karen.bermudez](https://community.auth0.com/u/karen.bermudez)\
**Post date:** [January 24, 2020, 5:20pm UTC](https://community.auth0.com/t/sso-failed-to-obtain-access-token-auth0/36532/2 "2020-01-24T17:20:12Z")

</div>

Hello @hugo.delacruz !

It seems like this is an error from the Identity Provider.

Could you please provide me via DM a HAR file of the authentication flow?

You can find more information about it [here](https://auth0.com/docs/troubleshoot/guides/generate-har-files)

Thanks!

---

<div class="post-metadata">

**Author:** ![jey.and.key](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jey.and.key/32/34011_2.png) [@jey.and.key](https://community.auth0.com/u/jey.and.key)\
**Post date:** [December 26, 2021, 5:26am UTC](https://community.auth0.com/t/sso-failed-to-obtain-access-token-auth0/36532/3 "2021-12-26T05:26:14Z")

</div>

My problem was that I assumed trial azure account was okay (with 1 year of free basic usage), but they still want you to go to subscription and authorize debit card withdrawals.
