Skip to content

Commit

Permalink
🔥 支持微信小程序
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyd-c committed Aug 17, 2024
1 parent 8f37612 commit 91167bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/java/me/zhyd/oauth/AuthRequestBuilderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ public void build4() {
.clientOsType(3)
.kid("kid")
.teamId("teamid")
.ignoreCheckState(true)
.ignoreCheckRedirectUri(true)
.build();

for (AuthDefaultSource value : AuthDefaultSource.values()) {
Expand All @@ -99,6 +101,12 @@ public void build4() {
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())
Expand Down

0 comments on commit 91167bc

Please sign in to comment.