mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2025-12-06 08:48:27 +08:00
🔥 支持微信小程序
This commit is contained in:
parent
8f376129d4
commit
91167bcbf7
@ -84,6 +84,8 @@ public class AuthRequestBuilderTest {
|
||||
.clientOsType(3)
|
||||
.kid("kid")
|
||||
.teamId("teamid")
|
||||
.ignoreCheckState(true)
|
||||
.ignoreCheckRedirectUri(true)
|
||||
.build();
|
||||
|
||||
for (AuthDefaultSource value : AuthDefaultSource.values()) {
|
||||
@ -99,6 +101,12 @@ public class AuthRequestBuilderTest {
|
||||
System.out.println(authRequest.authorize(AuthStateUtils.createState()));
|
||||
continue;
|
||||
}
|
||||
case WECHAT_MINI_PROGRAM: {
|
||||
// 小程序不支持获取调用 authorize
|
||||
AuthRequest authRequest = new AuthWechatMiniProgramRequest(config);
|
||||
System.out.println(value.getTargetClass());
|
||||
continue;
|
||||
}
|
||||
default:
|
||||
AuthRequest authRequest = AuthRequestBuilder.builder()
|
||||
.source(value.getName())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user