1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Fix keycloak sample code to use keycloak instead of google

This commit is contained in:
Mitchell Herrijgers 2019-05-19 08:38:07 +02:00 committed by Ivar Conradi Østhus
parent 8043439113
commit a317be66bf

View File

@ -3,14 +3,14 @@
// const unleash = require('unleash-server');
const unleash = require('../lib/server-impl.js');
const enableGoogleOauth = require('./google-auth-hook');
const enableKeycloak = require('./keycloak-auth-hook');
unleash
.start({
databaseUrl: 'postgres://unleash_user:passord@localhost:5432/unleash',
secret: 'super-duper-secret',
adminAuthentication: 'custom',
preRouterHook: enableGoogleOauth,
preRouterHook: enableKeycloak,
})
.then(server => {
console.log(