feat: return authorization snapshot outside jwt

This commit is contained in:
2026-09-07 12:14:48 +08:00
parent a99ca36316
commit a077f828ae
5 changed files with 31 additions and 6 deletions
@@ -82,6 +82,9 @@ class OverseasTokenServiceTest {
.doesNotContainKeys("roles", "authorities", "permissions", "userId", "tenantId", "appCode",
"permissionVersion");
assertThat(response.expiresIn()).isEqualTo(900);
assertThat(response.roles()).containsExactly("OVERSEAS_WAREHOUSE_PDA_OPERATOR");
assertThat(response.authorities()).containsExactlyInAnyOrder(authority, merchantAuthority,
merchantCrossBorderAuthority, lastlegAuthority, financeAuthority, domesticAuthority);
}
@Test