Skip to content

Conversation

@chengyouling
Copy link
Contributor

No description provided.

…ng RBAC authentication in a dual-engine disaster recovery scenario.
@chengyouling chengyouling self-assigned this Nov 11, 2025
}

private void recordAndSendUnAuthorizedEvent(HttpResponse response, String address) {
if (this.eventBus != null && response.getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {
Copy link

@humingcheng humingcheng Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

401的错误有多种,只有token解析失败才能视为地址管理的异常(即一个地址的token发到了另一个地址),而token超期之类的错误不能算。

Copy link
Contributor Author

@chengyouling chengyouling Nov 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

发布UnAuthorizedOperationEvent事件主要是为了触发token重新刷新,如果是超期了,也可以提前刷新token,更友好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants