mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-10 01:16:39 +02: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('unleash-server');
|
||||||
const unleash = require('../lib/server-impl.js');
|
const unleash = require('../lib/server-impl.js');
|
||||||
|
|
||||||
const enableGoogleOauth = require('./google-auth-hook');
|
const enableKeycloak = require('./keycloak-auth-hook');
|
||||||
|
|
||||||
unleash
|
unleash
|
||||||
.start({
|
.start({
|
||||||
databaseUrl: 'postgres://unleash_user:passord@localhost:5432/unleash',
|
databaseUrl: 'postgres://unleash_user:passord@localhost:5432/unleash',
|
||||||
secret: 'super-duper-secret',
|
secret: 'super-duper-secret',
|
||||||
adminAuthentication: 'custom',
|
adminAuthentication: 'custom',
|
||||||
preRouterHook: enableGoogleOauth,
|
preRouterHook: enableKeycloak,
|
||||||
})
|
})
|
||||||
.then(server => {
|
.then(server => {
|
||||||
console.log(
|
console.log(
|
||||||
|
Loading…
Reference in New Issue
Block a user