Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class UsernamePasswordAuthenticationFilter
- Object
- UsernamePasswordAuthenticationFilter
ImplementsSecurityFilter
Signs a user in from the login form: a POST to the login processing URL
carrying username and password.
On success the chain’s SessionSignIn takes over: the session id changes,
the authentication is saved for later requests, and the
AuthenticationSuccessHandler answers – by default with a redirect to
where the user was going – unless the chain asks for a second factor first. On failure nothing is
kept and the AuthenticationFailureHandler answers.
Methods
public HttpServer.Response doFilter(HttpServer.Request request, FilterChain chain)
throws Exception | The answer to request; null when nothing under the chain routes it, which the server answers 404. |
Inherited methods
Method details
doFilter
public HttpServer.Response doFilter(HttpServer.Request request, FilterChain chain)
throws ExceptionThe answer to
request; null when nothing under the chain routes it,
which the server answers 404.