'use strict'; module.exports = { sso: [ { 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']], ], }, }, ], };