Repository navigation
Conversation
Reviewer's GuideIntroduces an optional, startup-validated OIDC token endpoint authentication override, retaining provider discovery when unset, and wires the setting through documentation, Docker Compose, and Kubernetes deployment manifests. Sequence diagram for OIDC token endpoint authentication configurationsequenceDiagram
participant Env as Frontend environment
participant Auth as frontend/lib/auth.ts
participant NextAuth
participant Provider as OIDC provider
Env->>Auth: getTokenEndpointAuthMethod()
alt OIDC_TOKEN_ENDPOINT_AUTH_METHOD unset
Auth->>NextAuth: Configure OIDCProvider without client override
NextAuth->>Provider: Discover token_endpoint_auth_methods_supported
Provider-->>NextAuth: Provider-supported methods
else client_secret_basic or client_secret_post
Auth->>NextAuth: Configure client.token_endpoint_auth_method
NextAuth->>Provider: Token request using configured method
else unsupported value
Auth-->>Env: Throw startup Error
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
IanHollow
marked this pull request as ready for review
October 4, 2026 23:43
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. An explicit setting changes how the OIDC client sends its client secret to the token endpoint; a wrong method can prevent users from logging in, or expose the secret through an incorrectly configured provider or transport. Reverting the code and configuration restores the previous behavior, and failed authentication attempts do not create persistent damage.
9 of 10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Allow administrators to set
OIDC_TOKEN_ENDPOINT_AUTH_METHODwhen an identity provider requiresclient_secret_basicorclient_secret_post. Without this setting, the existing provider discovery behavior remains. An unsupported value fails when the authentication configuration loads.The new setting is documented and passed to the frontend by both Compose variants and the Kubernetes manifest. Development Compose also passes its existing OIDC issuer and client settings to the frontend.
Related issue
No linked issue.
Type of change
Checklist
Testing
Test environment
Tests performed
Screenshots
None. This changes authentication configuration.
Additional notes
A live identity provider login was unavailable for an end-to-end test. The request-level tests exercise Basic headers, Post form bodies, and the discovery-based fallback.
Summary by Sourcery
Allow administrators to configure the OIDC token endpoint authentication method across supported deployment configurations.
Bug Fixes:
Enhancements:
Build:
Deployment:
Documentation:
Tests: