Interface ExternalAuthenticatorTokenRepository

All Known Implementing Classes:
SessionBasedExternalAuthenticationRepository

public interface ExternalAuthenticatorTokenRepository
A repository used by subclasses of AbstractUserRedirectAuthenticationProvider that needs to pick up the tranferred RedirectForAuthenticationToken to serve as input for the user authentication. When the user authentication is done, the completeExternalAuthentication(Authentication, HttpServletRequest) or completeExternalAuthentication(Saml2ErrorStatusException, HttpServletRequest) method is invoked to save the result.

Note that implementation of the ExternalAuthenticatorTokenRepository must used the same persistence strategy as the FilterAuthenticationTokenRepository used by the Saml2UserAuthenticationProcessingFilter.

The persistence mechanism used will depend on the implementation, but most commonly the HttpSession will be used to store the tokens.

Author:
Martin Lindström
See Also: