Search code examples
vue.jsauthenticationoauth-2.0single-page-applicationquire-api

Oauth2: Authenticate single page app without client secret when secret is required by service


I would like to create an integration with quire.io, which currently only supports the Oauth2 authorization_code flow with client_secret.
This causes me a problem because my application will need a dashboard so users can configure it.

So far I have been trying to get a token on a backend server (which has the secret) and then send the token to the client in a cookie as a JWT. Is there a way I can securely access the quire api from my frontend?


Solution

  • The authorization_code flow without client secret hasn't been implemented yet (different priorities). For now you'll need the extra server to keep the client_secret in a secure place.