The icon of the project
LangChain4j McpClientAuthProvider that can propagate OpenId Connect (OIDC) and OAuth2 authorization code flow or bearer access tokens.
Provides McpClientAuthProvider implementation that can be used to collect authorization code flow or bearer access tokens verified by the quarkus-oidc extension and propagate them to MCP servers.

Guides

This extension has a guide to get you going.

Installation

To add this extension to your project, use the relevant command in your Quarkus project directory:

Quarkus CLI

quarkus ext add io.quarkiverse.langchain4j:quarkus-langchain4j-oidc-mcp-auth-provider

Maven

./mvnw quarkus:add-extension -Dextensions="io.quarkiverse.langchain4j:quarkus-langchain4j-oidc-mcp-auth-provider"

Gradle

./gradlew addExtension --extensions="io.quarkiverse.langchain4j:quarkus-langchain4j-oidc-mcp-auth-provider"