Open ajmas opened 3 years ago
I know it's a bit late but for future reference for anyone else, it can be used like this
` import KeycloakEnvConfig from "@exlinc/keycloak-passport/configuration.js";
const config = new KeycloakEnvConfig({ host: '', realm: '', clientID: '', clientSecret: '', callbackURL: '', });
console.log('keycloak config', config);
// Register the strategy with passport
passport.use( "keycloak", new KeycloakStrategy(config, (accessToken, refreshToken, profile, done) => {});`
Looking at the example in the README, no indication of needing
authorizationURL
is provided, but I get (truncated):Looking at the source of this package, I see the following:
Which suggests it is required, but then I see
configuration.js
which resolves the missing URLs, but I am not sure how it is to be used to resolve this issue?