Skip to content

brakmic/Angular-BFF-Keycloak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular BFF with Keycloak Authentication

Secure authentication implementation using Angular, Express.js BFF pattern, and Keycloak with complete client-side token isolation.

bff_login

Key Features

  • 🔐 Complete client-side token isolation (BFF pattern)
  • 🌐 SSL/TLS encryption with custom CA
  • 📦 Session management (in-memory or Redis)
  • 🔄 Hot-reload development setup
  • 🐳 Full Docker support

Architecture

Component Technology Port Purpose
Frontend Angular 19 4200 Single Page Application
Backend Express.js 3000 Backend-For-Frontend (BFF)
Keycloak v26 8443 Identity Provider
Redis v7 6379 Session Store (optional)

Quick Start

# Clone and enter project
git clone https://github.com/brakmic/Angular-BFF-Keycloak
cd Angular-BFF-Keycloak

# Setup SSL certificates
./scripts/setup_ssl.sh

# Start all services
docker compose up -d

Access the applications:

Prerequisites

  • Docker 20.10+
  • Node.js 18.x
  • OpenSSL
  • Local domain setup (see Domain Setup)

Documentation

License

MIT

About

Angular frontend + Express.js BFF + Keycloak IAM implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors