mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2025-12-06 16:58:24 +08:00
✅ Adding tests.
This commit is contained in:
parent
4a6216f7d9
commit
960892eec3
@ -0,0 +1,19 @@
|
||||
package me.zhyd.oauth.request;
|
||||
|
||||
import me.zhyd.oauth.config.AuthConfig;
|
||||
import me.zhyd.oauth.utils.AuthStateUtils;
|
||||
import org.junit.Test;
|
||||
|
||||
public class AuthWeChatMpRequestTest {
|
||||
|
||||
@Test
|
||||
public void authorize() {
|
||||
|
||||
AuthRequest request = new AuthWeChatMpRequest(AuthConfig.builder()
|
||||
.clientId("a")
|
||||
.clientSecret("a")
|
||||
.redirectUri("https://www.justauth.cn")
|
||||
.build());
|
||||
System.out.println(request.authorize(AuthStateUtils.createState()));
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user