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 java.util.function.Function;
import reactor.core.publisher.Mono;

/**
 * Returns auth data by given credentials. Client code shall store returned result under {@link
 * Authenticator#AUTH_CONTEXT_KEY} key in {@link reactor.util.context.Context} to propagate auth
 * data to downstream components.
 *
 * @see PrincipalMapper
 * @param  auth data type
 */
@FunctionalInterface
public interface Authenticator extends Function, Mono> {

  String AUTH_CONTEXT_KEY = "auth.context";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy