41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
const PassportZitadel = require('passport-zitadel');
|
|
|
|
module.exports = ({ env }) => ({
|
|
auth: {
|
|
secret: env('ADMIN_JWT_SECRET'),
|
|
providers: [
|
|
{
|
|
uid: "zitadel-introspection",
|
|
displayName: "Trompxtette",
|
|
icon: "",
|
|
createStrategy: (strapi) =>
|
|
new PassportZitadel.ZitadelIntrospectionStrategy(
|
|
{
|
|
authority: 'https://trompette.espace120.fr',
|
|
clientId: '282357429163868163@infra',
|
|
clientSecret: 'Ln4gf8LjLi0JDirTwgs7N1pNQkehN0IBX0VHbzjlnvBP5fwhXldUMcy1FsyPBlbz',
|
|
},
|
|
(accessToken, refreshToken, profile, done) => {
|
|
done(null, {
|
|
email: profile.email,
|
|
username: profile.username,
|
|
});
|
|
}
|
|
),
|
|
},
|
|
],
|
|
},
|
|
apiToken: {
|
|
salt: env('API_TOKEN_SALT'),
|
|
},
|
|
transfer: {
|
|
token: {
|
|
salt: env('TRANSFER_TOKEN_SALT'),
|
|
},
|
|
},
|
|
flags: {
|
|
nps: env.bool('FLAG_NPS', true),
|
|
promoteEE: env.bool('FLAG_PROMOTE_EE', true),
|
|
},
|
|
});
|