
org.ligoj.app.iam.IAuthenticationContributor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-api Show documentation
Show all versions of plugin-api Show documentation
Plugin API definition and compatibility following semver
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 - 2025 Weber Informatics LLC | Privacy Policy