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

com.atlassian.usercontext.api.UserContextAuthenticator Maven / Gradle / Ivy

package com.atlassian.usercontext.api;

import java.util.Optional;

/**
 * Allow for a user context to be generated from an authentication method which is not handled by edge authenticator
 */
public interface UserContextAuthenticator {

    /**
     * Request that a user be authenticated from an alternative authentication
     *
     * @param request the authentication request
     * @return a user context or empty if the consumer is not allowed to generate the specified request
     */
    Optional authenticate(AuthenticationRequest request);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy