From 54786274713ea91291a70549a6146188d688b0ba Mon Sep 17 00:00:00 2001 From: Afly Date: Fri, 16 Oct 2020 16:41:31 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-5580=20feat:=20=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/third/auth/CustomAccessProvider.java | 7 ++++++- .../fr-plugin-decision-third-auth-0.1.zip | Bin 1710 -> 1735 bytes 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/fr/plugin/demo/third/auth/CustomAccessProvider.java b/src/main/java/com/fr/plugin/demo/third/auth/CustomAccessProvider.java index 8952ded..66111f4 100644 --- a/src/main/java/com/fr/plugin/demo/third/auth/CustomAccessProvider.java +++ b/src/main/java/com/fr/plugin/demo/third/auth/CustomAccessProvider.java @@ -11,7 +11,12 @@ import com.fr.plugin.transform.FunctionRecorder; @FunctionRecorder public class CustomAccessProvider extends AbstractAccessProvider { @Override - public String access(String username, String password, String thirdToken) { + public boolean access(String s, String s1, String s2) { + return false; + } + + @Override + public String auth(String username, String password, String thirdToken) { return thirdToken.startsWith(username) ? username : thirdToken; } } diff --git a/第三方认证获取token/fr-plugin-decision-third-auth-0.1.zip b/第三方认证获取token/fr-plugin-decision-third-auth-0.1.zip index cae1143b19d204d6e5bda5df697c55d57b8e0041..9e6fb4a9a371a0cf50b079d2c3a4acea11b33cd4 100644 GIT binary patch delta 911 zcmV;A191GV4aW@)P)h>@3IG5I000SuP>~Hi5ebA)QMcEkEdv7p0Q&_107sL)10|7w zDS!I~000000009600000000Z{W@h1HVBlb2;A{y9WIzI(3@i-3t|5-Po_=on|4uP5 z1VEK?FmM2sPFlKXb1YC7NF zkiiw>2TzO6I13f(c=(+22xaJERORLU;(t@Qb53`Vuy;^!$y_Z*DV;Aok9d1|ODFU2 zikkfC7MfffBs%AFH`k|bA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