# Configure OIDC connection for Single-Page-Application

**URL:** <https://community.auth0.com/t/configure-oidc-connection-for-single-page-application/147327>\
**Category:** Get Help\
**Tags:** oidc-enterprise-connection, connections\
**Created:** [September 16, 2024, 10:55pm UTC](https://community.auth0.com/t/configure-oidc-connection-for-single-page-application/147327 "2024-09-16T22:55:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkintner](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jkintner/32/60304_2.png) [@jkintner](https://community.auth0.com/u/jkintner)\
**Post date:** [September 16, 2024, 10:55pm UTC](https://community.auth0.com/t/configure-oidc-connection-for-single-page-application/147327/1 "2024-09-16T22:55:50Z")

</div>

I added an OIDC connection for an SPA (react). The configuration was given to me by the institution we’re setting the connection up for. When using the OIDC connection to login, I receive this error:

Failed Login:

invalid\_client (Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method) The OAuth 2.0 Client supports client authentication method “none”, but method “client\_secret\_post” was requested. You must configure the OAuth 2.0 client’s “token\_endpoint\_auth\_method” value to accept “client\_secret\_post”.)

I have updated our oauth client to use “client\_secret\_post” as the token endpoint auth method but I still receive this error. Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [March 12, 2025, 8:50pm UTC](https://community.auth0.com/t/configure-oidc-connection-for-single-page-application/147327/4 "2025-03-12T20:50:06Z")

</div>

Hi there,

Thank you for reaching out to us!

Wanted to provide some information, in case others find this useful as well, but I believe that you are using an external API that is requesting the `client_secret_post` method, and the SPA application should have it’s authentication method set to `none`.

This might be problematic, as SPAs are not confidential clients and are not able to store client secrets, and storing them on the frontend presents a security risk, as they are exposed and easily accessible. One way that might work would be to set up your own API for authentication.

Some useful documentations that I can recommend reading through:

- ["Invalid\_client (Invalid Authentication Method for Accessing this Endpoint.)" on OIDC Connection](https://community.auth0.com/t/invalid-client-invalid-authentication-method-for-accessing-this-endpoint-on-oidc-connection/119600)
- [Difference between SPA, Regular Web App, and even Native Apps? - #5 by thestephenstanton](https://community.auth0.com/t/difference-between-spa-regular-web-app-and-even-native-apps/27690/5)
- [Storing client secret in SPA](https://community.auth0.com/t/storing-client-secret-in-spa/22717)
- [Authentication method misunderstnading](https://community.auth0.com/t/authentication-method-misunderstnading/147677)

Hope this helped!  
Gerald

---

<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:** [March 26, 2025, 8:50pm UTC](https://community.auth0.com/t/configure-oidc-connection-for-single-page-application/147327/5 "2025-03-26T20:50:41Z")

</div>

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