Skip to content

codiomarelesawy/fakelime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IDM Project

A containerized Identity Management demo featuring a Keycloak instance and a Vanilla JS Single Page Application (SPA) demonstrating OIDC authentication flows.

Overview

This project demonstrates how to integrate a client-side application with Keycloak for secure authentication using the OpenID Connect (OIDC) protocol. It consists of:

  • Keycloak Server: Running in a Docker container, configured via docker-compose.yaml.
  • Demo SPA: A simple JavaScript application (demo-app/) that performs login, logout, and displays user token details.

Project Structure

  • docker-compose.yaml: Defines the Keycloak service configuration.
  • demo-app/: Source code for the Single Page Application.
    • app.js: Main logic for Keycloak integration.
    • index.html: UI for the demo.
  • server.crt.pem & server.key.pem: SSL certificates for secure communication.

Getting Started

1. Start Keycloak

Run the Keycloak Identity Provider using Docker Compose:

docker compose up -d

2. Configure Keycloak

Access the Keycloak Admin Console at http://localhost:8080 (Default credentials: admin/admin).

You will need to set up the following resources (see demo-app/README.md for detailed steps):

  1. Realm: Create a realm named demo-realm.
  2. Client: Create a client named demo-spa (Public, Standard Flow enabled).
    • Web Origins: http://localhost:5500 (or the URL where your app is running).
  3. User: Create a test user with credentials.

3. Run the Client Application

Navigate to the demo-app directory and start a local web server (e.g., using Python or Node.js):

cd demo-app
python3 -m http.server 5500

Open http://localhost:5500 in your browser.

Documentation

For more detailed instructions on the client application and specific Keycloak configuration steps, please refer to the Demo App README.

About

A containerized Identity Management demo featuring a Keycloak instance and a Vanilla JS Single Page Application (SPA) demonstrating OIDC authentication flows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors