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)
|
.clientOsType(3)
|
||||||
.kid("kid")
|
.kid("kid")
|
||||||
.teamId("teamid")
|
.teamId("teamid")
|
||||||
|
.ignoreCheckState(true)
|
||||||
|
.ignoreCheckRedirectUri(true)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
for (AuthDefaultSource value : AuthDefaultSource.values()) {
|
for (AuthDefaultSource value : AuthDefaultSource.values()) {
|
||||||
@ -99,6 +101,12 @@ public class AuthRequestBuilderTest {
|
|||||||
System.out.println(authRequest.authorize(AuthStateUtils.createState()));
|
System.out.println(authRequest.authorize(AuthStateUtils.createState()));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
case WECHAT_MINI_PROGRAM: {
|
||||||
|
// 小程序不支持获取调用 authorize
|
||||||
|
AuthRequest authRequest = new AuthWechatMiniProgramRequest(config);
|
||||||
|
System.out.println(value.getTargetClass());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
AuthRequest authRequest = AuthRequestBuilder.builder()
|
AuthRequest authRequest = AuthRequestBuilder.builder()
|
||||||
.source(value.getName())
|
.source(value.getName())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user