Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Oauth request not sending client_id anymore. #128

Open
MrFrontend opened this issue Dec 12, 2019 · 1 comment
Open

Oauth request not sending client_id anymore. #128

MrFrontend opened this issue Dec 12, 2019 · 1 comment

Comments

@MrFrontend
Copy link

Suddenly the library is not sending the clientId in the request body.
No code was changed in the application and I can recreate this when installing js-client-oauth2 on a brand new project.

I had to fix this by injecting the client_id in the request body {body: {client_id: 'test_client'}},:

const client = new ClientOAuth2({
      clientId: 'test_client',
      accessTokenUri: 'http://my-test-url/oauth',
    });

    return client.owner
      .getToken(
        account,
        password,
        {body: {client_id: 'test_client'}},
      )

Are you aware of this issue?
How can we fix it?

@postatum
Copy link
Contributor

postatum commented Jul 23, 2020

Hi @MrFrontend.

Few questions:

  1. Are you certain your project wasn't injecting the client_id in body before?
  2. What's the latest version of the lib you used that returned client_id in the body?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants