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 cae1143..9e6fb4a 100644 Binary files a/第三方认证获取token/fr-plugin-decision-third-auth-0.1.zip and b/第三方认证获取token/fr-plugin-decision-third-auth-0.1.zip differ