Skip to content

Commit e9e3d7e

Browse files
committed
Add a note to the Secure MCP server about GitHub secret
1 parent cc36975 commit e9e3d7e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

_posts/2025-04-28-secure-mcp-sse-server.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,21 @@ Access `http://localhost:8080/login`, login to GitHub, and copy the returned acc
287287

288288
image::github_access_token.png[GitHub access token,align="center"]
289289

290+
[NOTE]
291+
====
292+
By default, Quarkus GitHub provider submits the client id and secret in the HTTP Authorization header.
293+
However, GitHub may require that both client id and secret are submitted as form parameters instead.
294+
295+
When you get HTTP 401 error after logging in to GitHub and being redirected back to Quarkus MCP server,
296+
try to replace `%prod.quarkus.oidc.login.credentials.secret=${github.client.secret}` property
297+
with the following two properties instead:
298+
299+
[source,properties]
300+
----
301+
%prod.quarkus.oidc.login.credentials.client-secret.method=post
302+
%prod.quarkus.oidc.login.credentials.client-secret.value=${github.client.secret}
303+
----
304+
290305
[[mcp-inspector]]
291306
=== Use MCP Inspector to access the MCP server
292307

0 commit comments

Comments
 (0)