Browse Source

KERNEL-5580 feat: 认证接口修改

master
Afly 4 years ago
parent
commit
5478627471
  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,7 +11,12 @@ import com.fr.plugin.transform.FunctionRecorder;
@FunctionRecorder @FunctionRecorder
public class CustomAccessProvider extends AbstractAccessProvider { public class CustomAccessProvider extends AbstractAccessProvider {
@Override @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; return thirdToken.startsWith(username) ? username : thirdToken;
} }
} }

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

Binary file not shown.
Loading…
Cancel
Save