This commit is contained in:
2024-10-29 05:37:46 +01:00
commit fe33c5f123
34 changed files with 20148 additions and 0 deletions

40
config/admin.js.save Normal file
View File

@@ -0,0 +1,40 @@
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),
},
});