All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.phasetwo.service.auth.invitation.InvitationRequiredActionFactory Maven / Gradle / Ivy

There is a newer version: 0.79
Show newest version
package io.phasetwo.service.auth.invitation;

import com.google.auto.service.AutoService;
import lombok.extern.jbosslog.JBossLog;
import org.keycloak.Config;
import org.keycloak.authentication.RequiredActionFactory;
import org.keycloak.authentication.RequiredActionProvider;
import org.keycloak.models.KeycloakSession;
import org.keycloak.models.KeycloakSessionFactory;

/** */
@JBossLog
@AutoService(RequiredActionFactory.class)
public class InvitationRequiredActionFactory implements RequiredActionFactory {

  public static final String PROVIDER_ID = "invitation-required-action";

  @Override
  public RequiredActionProvider create(KeycloakSession session) {
    return new InvitationRequiredAction();
  }

  @Override
  public String getId() {
    return PROVIDER_ID;
  }

  @Override
  public String getDisplayText() {
    return "Invitation";
  }

  @Override
  public void init(Config.Scope config) {}

  @Override
  public void postInit(KeycloakSessionFactory factory) {}

  @Override
  public void close() {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy