fix: 允许匿名兑换客户代登录授权码
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.baiyue.auth.config;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
class AuthSecurityConfigTest {
|
||||
@Test
|
||||
void permitsAnonymousImpersonationCodeExchange() {
|
||||
assertTrue(Arrays.asList(AuthSecurityConfig.PUBLIC_AUTH_ENDPOINTS)
|
||||
.contains("/api/auth/impersonations/exchange"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user