Move Google authentication to an external plugin
This commit is contained in:
@@ -13,7 +13,6 @@ use Kanboard\Auth\DatabaseAuth;
|
||||
use Kanboard\Auth\LdapAuth;
|
||||
use Kanboard\Auth\GitlabAuth;
|
||||
use Kanboard\Auth\GithubAuth;
|
||||
use Kanboard\Auth\GoogleAuth;
|
||||
use Kanboard\Auth\TotpAuth;
|
||||
use Kanboard\Auth\ReverseProxyAuth;
|
||||
|
||||
@@ -55,10 +54,6 @@ class AuthenticationProvider implements ServiceProviderInterface
|
||||
$container['authenticationManager']->register(new GithubAuth($container));
|
||||
}
|
||||
|
||||
if (GOOGLE_AUTH) {
|
||||
$container['authenticationManager']->register(new GoogleAuth($container));
|
||||
}
|
||||
|
||||
$container['projectAccessMap'] = $this->getProjectAccessMap();
|
||||
$container['applicationAccessMap'] = $this->getApplicationAccessMap();
|
||||
|
||||
@@ -126,7 +121,7 @@ class AuthenticationProvider implements ServiceProviderInterface
|
||||
$acl->setRoleHierarchy(Role::APP_MANAGER, array(Role::APP_USER, Role::APP_PUBLIC));
|
||||
$acl->setRoleHierarchy(Role::APP_USER, array(Role::APP_PUBLIC));
|
||||
|
||||
$acl->add('Oauth', array('google', 'github', 'gitlab'), Role::APP_PUBLIC);
|
||||
$acl->add('Oauth', array('github', 'gitlab'), Role::APP_PUBLIC);
|
||||
$acl->add('Auth', array('login', 'check'), Role::APP_PUBLIC);
|
||||
$acl->add('Captcha', '*', Role::APP_PUBLIC);
|
||||
$acl->add('PasswordReset', '*', Role::APP_PUBLIC);
|
||||
|
||||
@@ -205,7 +205,6 @@ class RouteProvider implements ServiceProviderInterface
|
||||
$container['route']->addRoute('documentation', 'doc', 'show');
|
||||
|
||||
// Auth routes
|
||||
$container['route']->addRoute('oauth/google', 'oauth', 'google');
|
||||
$container['route']->addRoute('oauth/github', 'oauth', 'github');
|
||||
$container['route']->addRoute('oauth/gitlab', 'oauth', 'gitlab');
|
||||
$container['route']->addRoute('login', 'auth', 'login');
|
||||
|
||||
Reference in New Issue
Block a user