wip: it builds?????

This commit is contained in:
knoflook 2023-12-08 15:37:09 +01:00
parent cc4c0867f1
commit 86cfd9cf57
4 changed files with 6 additions and 20 deletions

View File

@ -1,6 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>net.micedre.keycloak</groupId> <groupId>com.github.thomasdarimont.keycloak</groupId>
<artifactId>keycloak-mail-whitelisting</artifactId> <artifactId>keycloak-mail-whitelisting</artifactId>
<version>1.9-SNAPSHOT</version> <version>1.9-SNAPSHOT</version>
@ -149,4 +149,4 @@
</build> </build>
</profile> </profile>
</profiles> </profiles>
</project> </project>

View File

@ -19,7 +19,6 @@ import jakarta.ws.rs.core.MultivaluedMap;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
// //
import com.google.auto.service.AutoService;
import org.keycloak.authentication.FormActionFactory; import org.keycloak.authentication.FormActionFactory;
import org.keycloak.authentication.FormContext; import org.keycloak.authentication.FormContext;
import org.keycloak.authentication.forms.RegistrationUserCreation; import org.keycloak.authentication.forms.RegistrationUserCreation;
@ -27,8 +26,7 @@ import org.keycloak.events.Errors;
import org.keycloak.forms.login.LoginFormsProvider; import org.keycloak.forms.login.LoginFormsProvider;
import org.keycloak.models.utils.FormMessage; import org.keycloak.models.utils.FormMessage;
@AutoService(FormActionFactory.class) public abstract class RegistrationProfileDomainValidation extends RegistrationUserCreation {
public class CustomRegistrationUserCreation extends RegistrationUserCreation {
protected static final Logger logger = Logger.getLogger(RegistrationProfileDomainValidation.class); protected static final Logger logger = Logger.getLogger(RegistrationProfileDomainValidation.class);
protected static final String DEFAULT_DOMAIN_LIST = "example.org"; protected static final String DEFAULT_DOMAIN_LIST = "example.org";

View File

@ -9,19 +9,6 @@ import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
public class RegistrationProfileWithMailDomainCheck extends RegistrationProfileDomainValidation {
public static final String PROVIDER_ID = "registration-mail-check-action";
import org.keycloak.authentication.FormContext;
import org.keycloak.forms.login.LoginFormsProvider;
import org.keycloak.provider.ProviderConfigProperty;
import org.keycloak.models.AuthenticatorConfigModel;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class RegistrationProfileWithMailDomainCheck extends RegistrationProfileDomainValidation { public class RegistrationProfileWithMailDomainCheck extends RegistrationProfileDomainValidation {
public static final String PROVIDER_ID = "registration-mail-check-action"; public static final String PROVIDER_ID = "registration-mail-check-action";

View File

@ -1,2 +1,3 @@
net.micedre.keycloak.registration.RegistrationProfileWithMailDomainCheck com.thomasdarimont.keycloak.auth.CustomRegistrationUserCreation
net.micedre.keycloak.registration.RegistrationProfileWithDomainBlock com.thomasdarimont.keycloak.auth.RegistrationProfileWithDomainBlock
com.thomasdarimont.keycloak.auth.RegistrationProfileWithMailDomainCheck