From 712eb7b5a241ddba19cb32080c01ab284305eee3 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Mon, 5 Jun 2017 14:06:12 -0700 Subject: [PATCH] Fix client credentials setting in OAuth form --- app/ui/components/editors/auth/o-auth-2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/ui/components/editors/auth/o-auth-2.js b/app/ui/components/editors/auth/o-auth-2.js index 4ec64e87e1..5dd5409d2e 100644 --- a/app/ui/components/editors/auth/o-auth-2.js +++ b/app/ui/components/editors/auth/o-auth-2.js @@ -83,7 +83,7 @@ class OAuth2 extends PureComponent { } _handleChangeCredentialsInBody (e) { - this._handleChangeProperty('credentialsInBody', e.target.value); + this._handleChangeProperty('credentialsInBody', e.target.value === 'true'); } _handleChangeClientSecret (value) { @@ -237,8 +237,8 @@ class OAuth2 extends PureComponent { 'Client Credentials', 'credentialsInBody', [ - {name: 'As Basic Auth Header (default)', value: false}, - {name: 'In Request Body', value: true} + {name: 'As Basic Auth Header (default)', value: 'false'}, + {name: 'In Request Body', value: 'true'} ], this._handleChangeCredentialsInBody );