Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
6ec16cf0
authored
Jan 12, 2026
by
heheer
Committed by
GitHub
Jan 12, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: mcp header auth type selection (#6246)
parent
97717ae9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
packages/service/common/secret/utils.ts
+5
-0
projects/app/src/components/common/secret/HeaderAuthForm.tsx
+2
-2
No files found.
packages/service/common/secret/utils.ts
View file @
6ec16cf0
...
...
@@ -39,6 +39,11 @@ export const getSecretValue = ({
const
{
secret
,
value
}
=
val
;
const
actualValue
=
value
||
decryptSecret
(
secret
);
// Filter out empty values to avoid invalid headers
if
(
!
actualValue
||
!
key
)
{
return
acc
;
}
if
(
key
===
HeaderSecretTypeEnum
.
Bearer
)
{
acc
[
'Authorization'
]
=
`Bearer
${
actualValue
}
`
;
}
else
if
(
key
===
HeaderSecretTypeEnum
.
Basic
)
{
...
...
projects/app/src/components/common/secret/HeaderAuthForm.tsx
View file @
6ec16cf0
...
...
@@ -87,9 +87,9 @@ const AuthValueDisplay = ({
};
export
const
getSecretType
=
(
config
:
HeaderSecretConfigType
):
HeaderSecretTypeEnum
=>
{
if
(
config
.
Bearer
&&
(
config
.
Bearer
.
secret
||
config
.
Bearer
.
value
)
)
{
if
(
config
.
Bearer
)
{
return
HeaderSecretTypeEnum
.
Bearer
;
}
else
if
(
config
.
Basic
&&
(
config
.
Basic
.
secret
||
config
.
Basic
.
value
)
)
{
}
else
if
(
config
.
Basic
)
{
return
HeaderSecretTypeEnum
.
Basic
;
}
else
if
(
config
.
customs
&&
config
.
customs
.
length
>
0
)
{
return
HeaderSecretTypeEnum
.
Custom
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment