All Classes and Interfaces
Class
Description
Starts the OpenID Connect login, as the contract
apis/bff/rest-server/bff-api-v1.yaml describes it through
the generated LoginApi.Answers a login request whose parameters break the constraints of the contract (
returnTo too long,
acrValues of the wrong format, maxAge out of range) with 400, as the contract declares: the
validation of the generated interface throws a ConstraintViolationException, which would otherwise be a
500.Configuration of the BFF login (
bff.login.*).Makes the CSRF token reach the single page application.
Maps the domain documents onto the DTO generated from the contract; a controller never returns a domain model.
A document owned by a user, as the resource server keeps it.
Lists and deletes the documents of the signed-in user, as the contract
apis/bff/rest-server/bff-api-v1.yaml
describes them through the generated DocumentsApi.Translates the failures of
DocumentsController to RFC 9457 problem details.Wires the OpenID Connect RP-initiated logout of the BFF.
Runtime OpenAPI document of the JSON API of the BFF, served by springdoc at "/v3/api-docs" to a signed-in
user.
RFC 9457 problem details of a failed call to the documents, answered as application/problem+json.
Sends the browser, once the OAuth2 login has succeeded, back to the
returnTo that BffLoginController
validated and kept in the session.Decides whether a
returnTo value asked by the browser is a safe place to send it back to after the login.Signs users in with OAuth2 / OpenID Connect login and out with the RP-initiated logout of the authorization server.
Maps the OpenID Connect user of the BFF session onto the DTO generated from the contract.
The user signed in to the BFF session
Adds the step-up values that
BffLoginController kept in the session to the authorization request built by the
delegate, as the OpenID Connect acr_values and max_age parameters, and forgets them, so they apply to
one login only.Step-up values of a login (RFC 9470), kept in the session by
BffLoginController until
StepUpAuthorizationRequestResolver adds them to the authorization request.Maps a step-up request of the resource server onto the extra members of the
step-up-required problem, the
values the SPA passes back to GET /bff/login.Exposes the authenticated user, as the contract
apis/bff/rest-server/bff-api-v1.yaml describes it through
the generated UserApi.