Skip to content

Commit 6070767

Browse files
authored
decode auth before connection (#787)
Signed-off-by: Keval Mahajan <[email protected]>
1 parent f6cade1 commit 6070767

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mcpgateway/services/gateway_service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,6 +1598,8 @@ async def _initialize_gateway(
15981598
tools = []
15991599
resources = []
16001600
prompts = []
1601+
if auth_type in ("basic", "bearer", "headers"):
1602+
authentication = decode_auth(authentication)
16011603
if transport.lower() == "sse":
16021604
capabilities, tools, resources, prompts = await self.connect_to_sse_server(url, authentication)
16031605
elif transport.lower() == "streamablehttp":

0 commit comments

Comments
 (0)