setActiveTab('authorization')}>Authorization
setActiveTab('token')}>Token
@@ -73,18 +157,17 @@ const AdditionalParams = ({ item = {}, request, updateAuth, collection }) => {
headers={[
{ name: 'Key', accessor: 'name', width: '30%' },
{ name: 'Value', accessor: 'value', width: '30%' },
- { name: 'Sends In', accessor: 'sendIn', width: '150px' },
+ { name: 'Send In', accessor: 'sendIn', width: '150px' },
{ name: '', accessor: '', width: '15%' }
]}
>
- {additionalParameters?.[activeTab]?.map((param, index) =>
-
+ {(additionalParameters?.[activeTab] || []).map((param, index) =>
+
|
handleUpdateAdditionalParam({
paramType: activeTab,
key: 'name',
@@ -96,9 +179,8 @@ const AdditionalParams = ({ item = {}, request, updateAuth, collection }) => {
|
handleUpdateAdditionalParam({
paramType: activeTab,
key: 'value',
@@ -111,7 +193,7 @@ const AdditionalParams = ({ item = {}, request, updateAuth, collection }) => {
| |
-
-
+
+
+ Add Parameter
)
@@ -187,7 +273,19 @@ const Icon = forwardRef((props, ref) => {
});
const sendInOptionsMap = {
- 'authorization_code': ['headers', 'queryparams'],
- 'password': ['headers', 'queryparams', 'body'],
- 'client_credentials': ['headers', 'queryparams', 'body']
+ 'authorization_code': {
+ 'authorization': ['headers', 'queryparams'],
+ 'token': ['headers', 'queryparams', 'body'],
+ 'refresh': ['headers', 'queryparams', 'body']
+ },
+ 'password': {
+ 'authorization': ['headers', 'queryparams'],
+ 'token': ['headers', 'queryparams', 'body'],
+ 'refresh': ['headers', 'queryparams', 'body']
+ },
+ 'client_credentials': {
+ 'authorization': ['headers', 'queryparams'],
+ 'token': ['headers', 'queryparams', 'body'],
+ 'refresh': ['headers', 'queryparams', 'body']
+ }
}
\ No newline at end of file
diff --git a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js
index 5aadcd156..d61bbf013 100644
--- a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js
+++ b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js
@@ -330,7 +330,12 @@ const OAuth2AuthorizationCode = ({ save, item = {}, request, handleRun, updateAu
-