-
Hi everyone, I'm trying to set up an on-premises environment with no cloud dependencies, and I'm encountering issues with JWT token validation. Here's my current setup:
My goal is to use DAB in combination with Keycloak for JWT authentication. Here’s the relevant part of my DAB configuration file regarding the host:
Issue: When DAB attempts to validate the JWT token issued by Keycloak, I receive an error related to token validation, specifically with the issuer (https://localhost:8443/realms/TestDAB). I’m using a self-signed certificate for Keycloak and have imported the certificate into the Windows Server trust store where DAB is running, but the issue persists. Has anyone experienced a similar setup? What can I do to resolve this token validation issue? Thank you in advance for any suggestions! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @yougnoli , Can you provide the exact issuer error that is printed to the console? That would help us repro and determine the exact cause of the validation failure: does it not like the cert? is the cert endpoint reachable?
|
Beta Was this translation helpful? Give feedback.
Solution: Setting Up DAB with SQL Server and Keycloak on Windows in an On-Premises Environment
Hi everyone,
I found a solution to the issue I was facing with JWT token validation in my on-premises setup. Below, I’ll outline the steps I took to get everything working smoothly. This setup involves running DAB on a Windows machine, SQL Server on-premises, and using Keycloak as the token provider—all configured to work over HTTPS. Note that this is a quick local setup guide intended to help others achieve a similar configuration without relying on cloud services.
1. Install DAB Locally
First, install DAB on your Windows machine (requires .NET 8). You can follow the official Microsoft guide here.