📁
Journal de bord
  • Introduction
  • Single Page Application
    • Overview
    • Installation
    • Features
    • Design
    • Development
    • Backend integration
  • Backend
    • Overview
    • Installation
    • Configuration
    • Development
    • Data Model
    • API reference
      • Rides
      • Drivers
    • Database management
  • Security
    • Overview
    • OAuth 2.0
    • Authorization Server (Keycloak)
    • Client-side flow
    • OpenID Connect
Powered by GitBook
On this page
  • Keycloak
  • Configuration in the Admin Console
  • Identity Providers
  • Theme customization
  • Deployment
  • Environment variables

Was this helpful?

  1. Security

Authorization Server (Keycloak)

The server issuing access tokens to the client after successfully authenticating the resource owner and obtaining authorization.

PreviousOAuth 2.0NextClient-side flow

Last updated 4 years ago

Was this helpful?

Keycloak

Keycloak is an open-source Identity and Access Management solution administered by RedHat, and developed in Java by JBoss. More documentation about Keycloak can be found . A code sample of an embedded server (Spring Boot) can be found .

Note: the server could be running on a VM or something in a standalone mode and configured using the Admin Console. This process is described . I chose de deploy it in a Spring Boot embedded application to make the deployment process easier.

Configuration in the Admin Console

Some core concepts need to be understood to configure the server properly. They are explained .

The embedded server is created using a realm import file. The file is in the project repository and can be found in resources/journal-de-bord-realm.json file.

Identity Providers

I would like to enable login with Google. are the steps to follow.

It is possible to add a Google button, resources are provided by Google .

https://developers.google.com/identity/sign-in/web/build-button

Theme customization

It is possible to customize the look and feel of the Keycloak GUI. Here are two key tutorials:

  • (explains how theme are added in an embedded server)

  • (customize the login page)

https://developers.google.com/identity/sign-in/web/build-button

Deployment

Environment variables

The server configuration is the following…

Pour modifier la page il suffit de copier le style de base (que l’on trouve ), la documentation officielle sur les themes est .

here
here
here
here
Here
here
https://www.baeldung.com/spring-keycloak-custom-themes
https://www.baeldung.com/keycloak-custom-login-page
ici
ici
https://elements.heroku.com/buttons/mieckert/keycloak-heroku