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

org.ligoj.app.iam.IAuthenticationContributor Maven / Gradle / Ivy

The newest version!
/*
 * Licensed under MIT (https://github.com/ligoj/ligoj/blob/master/LICENSE)
 */
package org.ligoj.app.iam;

import jakarta.ws.rs.core.Response.ResponseBuilder;

import org.springframework.security.core.Authentication;

/**
 * Login contributor. he unique function is called just after a successful authentication.
 */
@FunctionalInterface
public interface IAuthenticationContributor {

	/**
	 * Call to contribute to the final response after the authentication.
	 *
	 * @param response       The current {@link ResponseBuilder}. May have already been visited.
	 * @param authentication The current authentication. Should be while building the response.
	 */
	void accept(ResponseBuilder response, Authentication authentication);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy