Keycloak
To set up Keycloak authentication, you will need to create a "client" in your Keycloak installation. See NextAuth keycloak module documentation and keycloak documentation
You can enable Keycloak authentication by setting the following environment variables:
KEYCLOAK_ID=xxxx
KEYCLOAK_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
KEYCLOAK_ISSUER=https://keycloakhost/auth/realms/yourrealm