Skip to content
Snippets Groups Projects
Commit 1a7265bf authored by Felix Sidokhine's avatar Felix Sidokhine
Browse files

Added missing interface

parent 69fa84b0
No related branches found
No related tags found
No related merge requests found
......@@ -121,4 +121,13 @@ public class UserAuthenticationModule implements AuthenticationModule {
return false;
}
}
@Override
public boolean createUser(AuthenticationSourceType type, String realm, NameServer nameServer, User user) {
//This concept doesn't exist for LDAP or AD or any other hosted directory, in this case we simply run
//very theoretically, we should allow LDAP to publish to the public registry, but this is a lot
//more complex.
return RegisterUserFlow.createUser(user,nameServer);
}
}
......@@ -2,6 +2,8 @@ package net.jami.jams.common.authmodule;
import net.jami.jams.common.authentication.AuthenticationSource;
import net.jami.jams.common.authentication.AuthenticationSourceType;
import net.jami.jams.common.jami.NameServer;
import net.jami.jams.common.objects.user.User;
import java.security.cert.X509Certificate;
import java.util.HashMap;
......@@ -14,4 +16,5 @@ public interface AuthenticationModule {
String validateAndGetUsername(String token);
HashMap<AuthModuleKey, AuthenticationSource> getAuthSources();
boolean testModuleConfiguration(AuthenticationSourceType type, String configuration);
boolean createUser(AuthenticationSourceType type, String realm, NameServer nameServer, User user);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment