fix(admin): force manual oauth refresh to bypass local cache (#308)

Co-authored-by: fawney19 <elky0401@gmail.com>
This commit is contained in:
AAEE86
2026-04-17 14:12:15 +08:00
committed by GitHub
parent ff4e853fd3
commit e5d3722adf
3 changed files with 87 additions and 24 deletions

View File

@@ -29,7 +29,7 @@ pub(super) async fn execute_admin_provider_oauth_refresh(
Ok(None) => {
return Ok(RefreshDispatch::Respond(response::control_error_response(
http::StatusCode::BAD_REQUEST,
"缺少 refresh_token需要重新授权",
"Token 刷新未执行,请检查授权配置",
)));
}
Err(AdminLocalOAuthRefreshError::HttpStatus {

View File

@@ -619,7 +619,7 @@ impl AppState {
for _ in 0..2 {
let resolution = self
.oauth_refresh
.resolve_with_result(
.force_refresh_with_result(
&executor,
&current_transport,
distributed_lock.as_ref(),