mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Fix client credentials setting in OAuth form
This commit is contained in:
parent
edc594f1c1
commit
712eb7b5a2
@ -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
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user