Skip to content

add oidc support#173

Open
ankittk wants to merge 7 commits intomcpjungle:mainfrom
ankittk:feature/auth-chatgpt
Open

add oidc support#173
ankittk wants to merge 7 commits intomcpjungle:mainfrom
ankittk:feature/auth-chatgpt

Conversation

@ankittk
Copy link
Contributor

@ankittk ankittk commented Jan 22, 2026

The API authentication middleware is updated so it can recognize OAuth access tokens sent in the Authorization: Bearer header. Before this, the API only accepted fixed/static tokens. when a request comes in, the middleware now checks:

Is this a valid OAuth token?
Is it not expired?
Does it belong to a registered OAuth client and user?

If the token is valid, the request is allowed and the user is treated as authenticated. OAuth tokens work alongside existing authentication. This means: Old static tokens still work New OAuth-based clients (like ChatGPT) also work No breaking changes for existing users

Finally, the OAuth service is initialized when the server starts, so token validation is available everywhere the middleware runs.

@ankittk ankittk changed the title Feature/auth chatgpt add oidc support Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant