Skip to content

Commit 4b25424

Browse files
authored
Merge pull request DuendeArchive#713 from RaisonBlue/exchange_code_with_client_secret
Use client_secret for code exchange in Auth Code Flow
2 parents 3a6d6b7 + 736a765 commit 4b25424

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ResponseValidator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,12 @@ export class ResponseValidator {
237237
_processCode(state, response) {
238238
var request = {
239239
client_id: state.client_id,
240+
client_secret: this._settings.client_secret,
240241
code : response.code,
241242
redirect_uri: state.redirect_uri,
242243
code_verifier: state.code_verifier,
243244
};
244-
245+
245246
return this._tokenClient.exchangeCode(request).then(tokenResponse => {
246247

247248
for(var key in tokenResponse) {

0 commit comments

Comments
 (0)