This repository was archived by the owner on Mar 31, 2022. It is now read-only.

Description
We are currently trying to secure the endpoints of the feasibility backend as described in num-codex/codex-feasibility-backend#20.
So, in the future anyone who wants to use the backend has to provide a bearer token to do so. This holds true for the frontend as well. However, the access token used by the frontend should differ from the one that the user holds for simply using the frontend itself. Thus, the frontend needs to be able to obtain another access token for talking to the backend.
This can be done using the designated middleware-broker client already configured. However, this client needs to be turned into a service account for the frontend to be able to request an access token without the standard auth flow that includes a login form, re-routing etc.