Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class SimpleUrlAuthenticationFailureHandler
- Object
- SimpleUrlAuthenticationFailureHandler
ImplementsAuthenticationFailureHandler
After a refused sign-in, sends the user to a page – the login page with
?error, usually – or, with no page set, answers 401.Constructors
public SimpleUrlAuthenticationFailureHandler() | |
public SimpleUrlAuthenticationFailureHandler(String defaultFailureUrl) |
Methods
public HttpServer.Response onAuthenticationFailure(HttpServer.Request request, AuthenticationException exception) |
Inherited methods
Constructor details
SimpleUrlAuthenticationFailureHandler
public SimpleUrlAuthenticationFailureHandler()SimpleUrlAuthenticationFailureHandler
public SimpleUrlAuthenticationFailureHandler(String defaultFailureUrl)Method details
onAuthenticationFailure
public HttpServer.Response onAuthenticationFailure(HttpServer.Request request, AuthenticationException exception)