mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 12:49:43 +02:00
24 lines
629 B
JavaScript
24 lines
629 B
JavaScript
module.exports = {
|
|
fn() {
|
|
let oidc = null;
|
|
if (sails.hooks.oidc.isActive()) {
|
|
const oidcClient = sails.hooks.oidc.getClient();
|
|
|
|
oidc = {
|
|
authorizationUrl: oidcClient.authorizationUrl({
|
|
scope: sails.config.custom.oidcScopes,
|
|
response_mode: 'fragment',
|
|
}),
|
|
endSessionUrl: oidcClient.issuer.end_session_endpoint ? oidcClient.endSessionUrl({}) : null,
|
|
isEnforced: sails.config.custom.oidcEnforced,
|
|
};
|
|
}
|
|
|
|
return {
|
|
item: {
|
|
oidc,
|
|
allowAllToCreateProjects: sails.config.custom.allowAllToCreateProjects,
|
|
},
|
|
};
|
|
},
|
|
};
|