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

io.scalecube.services.auth.Authenticator Maven / Gradle / Ivy

package io.scalecube.services.auth;

import java.util.Map;
import reactor.core.publisher.Mono;

@FunctionalInterface
public interface Authenticator {

  /**
   * Key in {@link reactor.util.context.Context} to represent authentication result after call to
   * {@link #authenticate(Map)}.
   */
  String AUTH_CONTEXT_KEY = "auth.context";

  /**
   * Returns {@code authData} by given credentials.
   *
   * @param credentials credentials
   * @return async result with obtained {@code authData}
   */
  Mono authenticate(Map credentials);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy