fix: project overseas authorization outside jwt
This commit is contained in:
+8
-1
@@ -1,6 +1,7 @@
|
||||
package com.baiyue.common.event;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.Set;
|
||||
|
||||
/** IAM 向海外服务发布的 V1 安全投影事件负载。 */
|
||||
public final class IamSecurityEventsV1 {
|
||||
@@ -14,5 +15,11 @@ public final class IamSecurityEventsV1 {
|
||||
public record TenantStatusChanged(long tenantId, String status, Instant changedAt) { }
|
||||
|
||||
public record PermissionVersionChanged(long authUserId, long tenantId, String appCode,
|
||||
long permissionVersion, String reason, Instant changedAt) { }
|
||||
long permissionVersion, String reason, Instant changedAt,
|
||||
Set<String> roles, Set<String> authorities) {
|
||||
public PermissionVersionChanged {
|
||||
roles = roles == null ? Set.of() : Set.copyOf(roles);
|
||||
authorities = authorities == null ? Set.of() : Set.copyOf(authorities);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user