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

io.phasetwo.keycloak.magic.auth.token.MagicLinkContinuationActionTokenHandlerFactory Maven / Gradle / Ivy

package io.phasetwo.keycloak.magic.auth.token;

import com.google.auto.service.AutoService;
import org.keycloak.Config;
import org.keycloak.authentication.actiontoken.ActionTokenHandlerFactory;
import org.keycloak.models.KeycloakSession;
import org.keycloak.models.KeycloakSessionFactory;

@AutoService(ActionTokenHandlerFactory.class)
public class MagicLinkContinuationActionTokenHandlerFactory
    implements ActionTokenHandlerFactory {

  public static final String PROVIDER_ID = "magic-link-continuation";

  @Override
  public void close() {}

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

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

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

  @Override
  public void postInit(KeycloakSessionFactory factory) {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy