39 lines
859 B
JavaScript
Raw Normal View History

2021-01-27 11:52:02 +01:00
'use strict';
module.exports = {
2021-02-02 12:27:24 +01:00
sso: [
2021-01-27 11:52:02 +01:00
{
method: 'GET',
path: '/providers',
handler: 'authentication.getProviders',
},
{
method: 'GET',
path: '/connect/:provider',
handler: 'authentication.providerLogin',
},
{
method: 'GET',
path: '/providers/options',
handler: 'authentication.getProviderLoginOptions',
config: {
policies: [
'admin::isAuthenticatedAdmin',
['admin::hasPermissions', ['admin::provider-login.read']],
],
},
},
{
method: 'PUT',
path: '/providers/options',
handler: 'authentication.updateProviderLoginOptions',
config: {
policies: [
'admin::isAuthenticatedAdmin',
['admin::hasPermissions', ['admin::provider-login.update']],
],
},
},
],
};