Package com.atlassian.bitbucket.auth
Interface HttpAuthenticationSuccessHandler
public interface HttpAuthenticationSuccessHandler
Handler that is called when a user successfully authenticates with the system over HTTP. The system will call
 
onAuthenticationSuccess(HttpAuthenticationSuccessContext) on all installed http-auth-success-handler
 modules in order of their configured weight, until a handler returns true.- 
Method SummaryModifier and TypeMethodDescriptionbooleanCallback method that is called by the system on authentication success over HTTP.
- 
Method Details- 
onAuthenticationSuccessboolean onAuthenticationSuccess(@Nonnull HttpAuthenticationSuccessContext context) throws jakarta.servlet.ServletException, IOException Callback method that is called by the system on authentication success over HTTP. The authenticatedusercan be retrieved throughHttpAuthenticationSuccessContext.getUser().Implementations can prevent other success handlers further down the chain from being evaluated by returning true. They should only do so if the handler has written to or redirected the HTTP response.- Parameters:
- context- a context object holding the request, response, authentication details and authenticated user.
- Returns:
- trueif the request was fully handled and no other success handlers should be evaluated. Otherwise- false.
- Throws:
- jakarta.servlet.ServletException- may be thrown by implementations
- IOException- may be thrown by implementations
 
 
-