[PR #3723] [CLOSED] Feature/retry access token #4817

Closed
opened 2026-05-05 14:49:17 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/3723
Author: @RobKenis
Created: 10/24/2023
Status: Closed

Base: devHead: feature/retry-access-token


📝 Commits (2)

  • 96c5dbd Retry retrieving an access token with exponential backoff
  • d0e5852 Make maxRetries and delay configurable with config files

📊 Changes

3 files changed (+42 additions, -5 deletions)

View changed files

📝 pkg/auth/oidc.go (+27 -5)
📝 pkg/config/v1/client.go (+5 -0)
📝 pkg/config/v1/common.go (+10 -0)

📄 Description

Summary

🤖 Generated by Copilot at d0e5852

This pull request adds retry support for OIDC authentication in frp clients. It defines a new AuthRetryConfig struct to store the retry parameters, and uses it in the OidcAuthProvider, ClientCommonConfig, and AuthOIDCClientConfig structs. It also modifies the pkg/auth/oidc.go and pkg/config/v1/client.go files to implement the retry logic and configuration parsing.

WHY

When the OIDC provider is unavailable when a new token is requested, the client
is stuck for an indefinite state. This is only resolved by restarting the client or
the server.

With this feature, we want to achieve a scenario where a token is requested for a
set amount of retries when the OIDC provider is not available.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/3723 **Author:** [@RobKenis](https://github.com/RobKenis) **Created:** 10/24/2023 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feature/retry-access-token` --- ### 📝 Commits (2) - [`96c5dbd`](https://github.com/fatedier/frp/commit/96c5dbd992aa02e7e60a428cea504b2c0cc6c51b) Retry retrieving an access token with exponential backoff - [`d0e5852`](https://github.com/fatedier/frp/commit/d0e585283553aab639ff0f93de439f895078cb27) Make maxRetries and delay configurable with config files ### 📊 Changes **3 files changed** (+42 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `pkg/auth/oidc.go` (+27 -5) 📝 `pkg/config/v1/client.go` (+5 -0) 📝 `pkg/config/v1/common.go` (+10 -0) </details> ### 📄 Description ### Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at d0e5852</samp> This pull request adds retry support for OIDC authentication in frp clients. It defines a new `AuthRetryConfig` struct to store the retry parameters, and uses it in the `OidcAuthProvider`, `ClientCommonConfig`, and `AuthOIDCClientConfig` structs. It also modifies the `pkg/auth/oidc.go` and `pkg/config/v1/client.go` files to implement the retry logic and configuration parsing. ### WHY When the OIDC provider is unavailable when a new token is requested, the client is stuck for an indefinite state. This is only resolved by restarting the client or the server. With this feature, we want to achieve a scenario where a token is requested for a set amount of retries when the OIDC provider is not available. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:49:17 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#4817
No description provided.