How to run

Keycloak server

  1. Start keycloak server and create a realm.
  2. Create a public client for the React app.

Creating a public client,

Screen.Recording.2023-04-26.at.9.31.46.AM.mov
  1. Visit Realm settings and enable user registration.
    image

API Gateway

  1. Update the issuer-uri in application.yaml accordingly.

Services

  1. Update the issuer-uri in application.yaml accordingly.

Frontend

  1. cd ./react-frontend

  2. Install dependencies npm ci

  3. Download the keycloak.json file from the configured public client in keycloak.
    Screenshot 2023-04-25 at 11 05 59 PM

  4. Place it in the /public folder.

  5. Start the application npm start

Login, Registration will be handled from the Frontend. API gateway and resource server only validate the access_token in the authorization header. If unauthenticated, simply return 401.