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

This commit is contained in:
fawney19
2026-04-17 13:23:51 +08:00
parent ac1a126756
commit 85a630cfa9
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(),