Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class OAuth2LoginAuthenticationFilter

  1. Object
  2. OAuth2LoginAuthenticationFilter

ImplementsSecurityFilter

Ends a sign-in at an identity provider: takes the provider’s answer at /login/oauth2/code/{registrationId}, holds it to the request this browser was sent away with, exchanges the code, verifies the ID token and signs the user in.

Methods

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.

Inherited methods

Method details

doFilter

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.

Throws

Exception