mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 13:00:31 +01:00
[PR #145] [MERGED] feat: Add per-route OIDC client ID and secret support #171
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/yusing/godoxy/pull/145
Author: @deandre
Created: 9/7/2025
Status: ✅ Merged
Merged: 9/8/2025
Merged by: @yusing
Base:
main← Head:per-route-oidc📝 Commits (2)
de9f20fImplement per-route OIDC26ee8e6address sonarqube feedback📊 Changes
5 files changed (+130 additions, -14 deletions)
View changed files
📝
internal/auth/oauth_refresh.go(+1 -1)📝
internal/auth/oidc.go(+64 -12)📝
internal/auth/oidc_test.go(+4 -1)📝
internal/net/gphttp/middleware/oidc.go(+26 -0)➕
internal/net/gphttp/middleware/oidc_test.go(+35 -0)📄 Description
Summary
This PR implements the ability to specify custom OIDC client ID and secret per route, allowing different applications to use different OIDC clients while maintaining cookie isolation to prevent conflicts.
Changes
NewOIDCProviderWithCustomClient()function to create OIDC providers with custom credentialsclient_id,client_secret, andscopesper routeUsage Examples
Docker Labels
YAML Configuration
Breaking Changes
None. This is fully backward compatible.
Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.