Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
Bug fix for client secrets with special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Oct 4, 2016
1 parent 69a38f8 commit 4d49c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/nodefetchclient.ts
Expand Up @@ -64,7 +64,7 @@ export class NodeFetchClient implements HttpClientImpl {
let body = [];
body.push("grant_type=client_credentials");
body.push(`client_id=${formattedClientId}`);
body.push(`client_secret=${this._clientSecret}`);
body.push(`client_secret=${encodeURIComponent(this._clientSecret)}`);
body.push(`resource=${resource}`);

return nodeFetch(authUrl, {
Expand Down

0 comments on commit 4d49c21

Please sign in to comment.