# Lessons Learned from Deploying Keycloak with Angular and BFF

DevFeed: [Lessons Learned from Deploying Keycloak with Angular and BFF](<https://devfeed.tech/articles/lessons-learned-from-deploying-keycloak-with-angular-and-bff-25135.md>)

Original publisher: [Read original article](<https://blog.brakmic.com/lessons-learned-from-deploying-keycloak-with-angular-and-bff/>)

Author: brakmic

Published: 2025-01-31T18:05:38Z

Content type: tutorial

Language: en

Sources: [Harris Brakmic - Coding](<https://devfeed.tech/sources/harris-brakmic-coding.md>)

Topics: [Angular](<https://devfeed.tech/topics/angular.md>), [BFF](<https://devfeed.tech/topics/bff.md>), [Keycloak](<https://devfeed.tech/topics/keycloak.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Express](<https://devfeed.tech/topics/express.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [Windows](<https://devfeed.tech/topics/windows.md>), [web applications](<https://devfeed.tech/topics/web-applications.md>), [OAuth 2.0](<https://devfeed.tech/topics/oauth2.md>), [OpenID connect (OIDC)](<https://devfeed.tech/topics/oidc.md>), [HTTP](<https://devfeed.tech/topics/http.md>)

Tags: [angular](<https://devfeed.tech/tags/angular.md>), [backend](<https://devfeed.tech/tags/backend.md>), [bff](<https://devfeed.tech/tags/bff.md>), [coding](<https://devfeed.tech/tags/coding.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [express](<https://devfeed.tech/tags/express.md>), [http](<https://devfeed.tech/tags/http.md>), [keycloak](<https://devfeed.tech/tags/keycloak.md>), [oauth2](<https://devfeed.tech/tags/oauth2.md>), [oidc](<https://devfeed.tech/tags/oidc.md>), [typescript](<https://devfeed.tech/tags/typescript.md>), [web](<https://devfeed.tech/tags/web.md>), [windows](<https://devfeed.tech/tags/windows.md>)

## AI overview

This article describes deploying an Angular application, an Express.js backend-for-frontend, and a Keycloak server on Windows Server with IIS. It focuses on issues that emerged when moving from a local setup to production, including session handling, secure communication, URL rewriting, TLS termination, and running Node.js inside IIS.

## Source excerpt

This article details the deployment of an Angular application, a backend-for-frontend (BFF) built with Express.js, and a Keycloak server on a Windows Server using IIS. It explores the challenges encountered when moving from a local setup to a production environment, including session handling, secure communication, and configuring KeycloakStrategy.