Class CallbackServlet

All Implemented Interfaces:
Servlet, ServletConfig, Serializable

public class CallbackServlet extends HttpServlet
Implements the OpenID Connect Redirect URI for the authorization code flow.

A Configuration instance must have been added as a ServletContext attribute under the name Configuration.CONTEXT_ATTRIBUTE_NAME.

Authentication state must have been put in the session by an AuthenticationRedirector (generally through the LoginServlet or an authorization filter).

After validating the request, and if authentication was successful, the user will be redirected to the page stored in the authentication state.

If a UserPrincipalFactory is available in the ServletContext, it'll be called to possibly load additional data to the session, that can later be made available through the UserPrincipal.

See Also: