diff --git a/jap-core/src/main/java/com/fujieid/jap/core/JapUserService.java b/jap-core/src/main/java/com/fujieid/jap/core/JapUserService.java index eb324261aee074433666087df37d464d11ae0cc1..a2d451d94b4324817e7325dfce9928c6cad7a967 100644 --- a/jap-core/src/main/java/com/fujieid/jap/core/JapUserService.java +++ b/jap-core/src/main/java/com/fujieid/jap/core/JapUserService.java @@ -124,4 +124,17 @@ public interface JapUserService { } + /** + * Save the ldap user information to the database and return JapUser + *

+ * It is suitable for the {@code jap-ldap} module + * + * @param userInfo User information obtained through ldap login, type {@code com.fujieid.jap.ldap.model.LdapPerson} + * @return When saving successfully, return {@code JapUser}, otherwise return {@code null} + * @since 1.0.6 + */ + default JapUser createAndGetLdapUser(Object userInfo) { + return null; + } + }