protected function init($args) { parent::init($args); //either get the specified authority or attempt to get a GoogleApps authority $authorityIndex = isset($args['AUTHORITY']) ? $args['AUTHORITY'] : 'GoogleAppsAuthentication'; $authority = AuthenticationAuthority::getAuthenticationAuthority($authorityIndex); //make sure we're getting a google apps authority if ($authority instanceof GoogleAppsAuthentication) { $this->authority = $authority; } }