Skip to content

Instantly share code, notes, and snippets.

@austincunningham
Created September 16, 2022 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save austincunningham/ecc6ee9e6c4fd2432b4cd31183bb0f61 to your computer and use it in GitHub Desktop.
Save austincunningham/ecc6ee9e6c4fd2432b4cd31183bb0f61 to your computer and use it in GitHub Desktop.
const keycloakIssuer = await Issuer.discover("http://127.0.0.1:8080/realms/keycloak-express")
// I just comment out the line in the client
const client = new keycloakIssuer.Client({
client_id: 'keycloak-express',
client_secret: 'long_secret-here',
redirect_uris: ['http://127.0.0.1:3000/auth/callback'],
//post_logout_redirect_uris: ['http://127.0.0.1:3000/logout/callback'],
response_types: ['code'],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment