Compare commits

..

1 Commits

Author SHA1 Message Date
Afly 5478627471 KERNEL-5580 feat: 认证接口修改 4 years ago
  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