mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[PR #4475] [MERGED] support multiple subjects in oidc ping #4983
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4983
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/fatedier/frp/pull/4475
Author: @RobKenis
Created: 10/8/2024
Status: ✅ Merged
Merged: 10/12/2024
Merged by: @blizard863
Base:
dev← Head:feature/support-multiple-oidc-clients📝 Commits (1)
d082976support multiple subjects in oidc ping📊 Changes
3 files changed (+85 additions, -9 deletions)
View changed files
📝
pkg/auth/auth.go(+2 -1)📝
pkg/auth/oidc.go(+19 -8)➕
pkg/auth/oidc_test.go(+64 -0)📄 Description
Validate the subject in an oidc ping against a list of logged in subjects.
This resolves the issue that multiple connected FRP clients with different OIDC clients result in a failing ping. The ping would fail because the subject in memory would be the value of the last logged in FRPC.
This change also changes the constructor of OidcAuthVerifier to take a TokenVerifier interface. This will not change production behavior, but makes testing easier because we can inject a mock verifier during testing.
Resolves: #4466
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.