A step-by-step guide to deploying Keycloak (open-source identity and access management) backed by Neon's serverless Postgres, hosted on Koyeb. Covers creating a dedicated Keycloak database and user in Neon, deploying the Keycloak container on Koyeb with the correct environment variables, configuring a realm and client, and connecting a Next.js application using NextAuth.js to handle OAuth-based authentication.

6m read timeFrom neon.com
Post cover image
Table of contents
Create a Neon project and Keycloak DatabaseConfigure a Keycloak Database UserDeploy Keycloak on KoyebCreate a Keycloak Realm and ClientConnecting a Next.js Application to KeycloakConclusion and Next Steps