Compare commits

..

No commits in common. 'master' and 'master' have entirely different histories.

  1. 7
      src/main/java/com/fr/plugin/demo/third/auth/CustomAccessProvider.java
  2. BIN
      第三方认证获取token/fr-plugin-decision-third-auth-0.1.zip

7
src/main/java/com/fr/plugin/demo/third/auth/CustomAccessProvider.java

@ -11,12 +11,7 @@ import com.fr.plugin.transform.FunctionRecorder;
@FunctionRecorder @FunctionRecorder
public class CustomAccessProvider extends AbstractAccessProvider { public class CustomAccessProvider extends AbstractAccessProvider {
@Override @Override
public boolean access(String s, String s1, String s2) { public String access(String username, String password, String thirdToken) {
return false;
}
@Override
public String auth(String username, String password, String thirdToken) {
return thirdToken.startsWith(username) ? username : thirdToken; return thirdToken.startsWith(username) ? username : thirdToken;
} }
} }

BIN
第三方认证获取token/fr-plugin-decision-third-auth-0.1.zip

Binary file not shown.
Loading…
Cancel
Save