protected function registerGuard()
    {
        \Auth::extend('openid', function ($app, $name, array $config) {
            return new CustomSessionGuard($app['session.store']);
        });

        \Auth::extend('basic-api', function ($app, $name, array $config) {
            return new CustomTokenGuard();
        });
    }