-
-
Notifications
You must be signed in to change notification settings - Fork 13.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid ping with multiple clients using OIDC #4466
Comments
I test in auth0, there is no error like you. you can create an free auth0 account and test it. My successful config.
oidc_audience should be same. One frpc and multiple frpc are all right. |
You can find more openid RFC docs to find your problems. |
@blizard863 We are using different clients per frpc, so all tokens have a different subject. I am making a Pull Request currently to demonstrate the issue. I'll keep you posted |
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: fatedier#4466
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: fatedier#4466
OK, I will review it soon. |
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: fatedier#4466
Bug Description
We run a single FRP Server and multiple FRP Client. For authentication, we use OIDC.
This works fine when a single FRPC is running, but we see following errors when running more than 1 FRPC at the same time.
This results in the the FRP Clients constantly reconnecting, resulting in an unstable connection
frpc Version
0.53.2
frps Version
0.53.2
System Architecture
Server: linux/amd64, Client: windows/amd64
Configurations
Server:
Client:
Logs
Steps to reproduce
Affected area
The text was updated successfully, but these errors were encountered: