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:
parent
8043439113
commit
a317be66bf
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user