mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 13:19:44 +02:00
22 lines
495 B
JavaScript
22 lines
495 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,
|
|
};
|
|
}
|
|
|
|
return {
|
|
item: {
|
|
oidc,
|
|
},
|
|
};
|
|
},
|
|
};
|