Skip to content

Commit

Permalink
fix: device authorization request always pushes the client_id to body
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Aug 30, 2019
1 parent 3f8621f commit 6fbf125
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,10 @@ module.exports = (issuer, aadIssValidation = false) => class Client extends Base
assertIssuerConfiguration(this.issuer, 'token_endpoint');

const body = authorizationParams.call(this, {
redirect_uri: null, response_type: null, ...params,
client_id: this.client_id,
redirect_uri: null,
response_type: null,
...params,
});

const response = await authenticatedPost.call(
Expand Down

0 comments on commit 6fbf125

Please sign in to comment.