Register the auth.

@return void
176882
protected function registerAuth()
    {
        $this->app->singleton('api.auth', function ($app) {
            return new Auth($app['Dingo\Api\Routing\Router'], $app, $this->config('auth'));
        });
    }
535684
public function register()
    {
        if (!defined('ACACHA_PROFILE_PATH')) {
            define('ACACHA_PROFILE_PATH', realpath(__DIR__.'/../../'));
        }

        $this->app->bind('Profile', function () {
            return new \Acacha\Profile\Profile();
        });

        $this->mergeConfigFrom(
            ACACHA_PROFILE_PATH.'/config/profile.php', 'acacha-profile'
        );

        $this->app->register(ContactServiceProvider::class);
    }
4564
public function register()
    {
        $this->setPassword($this->password);
        $this->generateActivationToken();
        $this->generateAuthKey();
        $this->status = self::STATUS_REGISTERED;

        if (!$this->save()) {
            return self::RESP_ERR;
        }
        if (empty($this->email)) {
            return self::RESP_NO_EMAIL_ERR;
        }
        if (!$this->sendActivationEmail()) {
            return self::RESP_EMAIL_SEND_ERR;
        }
        return self::RESP_OK;
    }
978879
public function register()
  {
    $middleware = ($this->middleware !== null) ? ['middleware' => $this->middleware] : [];
    $prefix     = ($this->prefix !== null) ? ['prefix' => $this->prefix] : [];
    $domain     = ($this->domain !== null) ? ['domain' => $this->domain] : [];

    Swish::group(array_merge($domain, $middleware, $prefix), function() {
      startphp($this->file);
    });
  }
349822
public function register()
    {
        if (!defined('LARAVELSOCIAL_PATH')) {
            define('LARAVELSOCIAL_PATH', realpath(__DIR__.'/../../'));
        }

        if ($this->app->runningInConsole()) {
            $this->commands([\Acacha\LaravelSocial\Console\Commands\Social::class]);
            $this->commands([\Acacha\LaravelSocial\Console\Commands\MakeSocial::class]);
        }

        $this->app->bind('LaravelSocial', function () {
            return new \Acacha\LaravelSocial\LaravelSocial();
        });

        $this->registerSocialiteProvider();

        $this->registerSocialProviderManager();

        $this->registerConfigureSocialServicesManager();

        $this->registerOAuthApp();

        $this->registerSocialProviders();

        $this->registerLaravelSocialiteService();

        $this->registerSocialUsersRepository();
    }
349738
public function register()
    {
        $this->registerInstallCommand();
        $this->registerAuthSettingsInstallCommand();
        $this->registerAuthFilesInstallCommand();
        $this->registerAuthModelInstallCommand();
        $this->registerAuthViewsInstallCommand();
        //$this->registerInstallMiddlewareCommand();
    }
744606
protected function registerAdminCommand()
    {
        $this->app->singleton('command.authentication.user.admin', function ($app) {
            return $app->make(Admin::class);
        });
        $this->commands('command.authentication.user.admin');
    }
280566
public function register()
    {
        $this->mergeConfigFrom(
           __DIR__.'/../config/littlegatekeeper.php', 'littlegatekeeper'
        );

        $this->app->instance(
            Authenticator::class,
            new Authenticator(
                $this->app->config->get('littlegatekeeper.username'),
                $this->app->config->get('littlegatekeeper.password'),
                $this->app->config->get('littlegatekeeper.sessionKey'),
                $this->app->make(Session::class)
            )
        );

        $this->app->alias(Authenticator::class, 'littlegatekeeper');
    }
589742
public function register()
    {
        $this->app->singleton('antares.acl', function ($app) {
            return new Factory($app->make('auth.driver'));
        });

        $this->app->bind('antares.auth.permission', function () {
            return new Permission();
        });
        $this->app->bind('antares.auth.action', function () {
            return new Action();
        });
    }
1259699
public function register()
    {
        $this->registerAuthenticator();

        $this->registerPasswordService();

        $this->registerThrottleService();

        $this->registerUserResolver();

        $this->registerRequestRebindHandler();
    }
103854
public function register()
    {
        $this->mergeConfigFrom(__DIR__ . '/../../config/verification.php', 'verification');

        $this->app->singleton('auth.verification', function ($app) {
            return new VerificationBrokerManager($app);
        });

        $this->app->bind('auth.verification.broker', function ($app) {
            return $app->make('auth.verification')->broker();
        });

        foreach ($this->aliases as $key => $aliases) {
            foreach ($aliases as $alias) {
                $this->app->alias($key, $alias);
            }
        }

        $this->registerCommands();
    }
701250
public function register() {
		// if the provider method exists then we are at least in Laravel 5.1
		if(method_exists('Illuminate\Auth\AuthManager', 'provider')) {
			// LDAP auth extension
			Auth::provider('ldap', function($app, array $config) {
				return new \CSUNMetaLab\Authentication\Providers\UserProviderLDAP();
			});

			// database auth extension
			Auth::provider('dbauth', function($app, array $config) {
				return new \CSUNMetaLab\Authentication\Providers\UserProviderDB();
			});
		}
		else
		{
			// Laravel 5.0
			Auth::extend('ldap', function() {
				return new Guard(new \CSUNMetaLab\Authentication\Providers\UserProviderLDAP,
					App::make('session.store'));
			});
			Auth::extend('dbauth', function() {
				return new Guard(new \CSUNMetaLab\Authentication\Providers\UserProviderDB,
					App::make('session.store'));
			});
		}
	}
821047
protected function registerAuthenticator()
	{
		$this->app->singleton('auth', function($app)
		{
			// Once the authentication service has actually been requested by the developer
			// we will set a variable in the application indicating such. This helps us
			// know that we need to set any queued cookies in the after event later.
			$app['auth.loaded'] = true;

			return new AuthManager($app);
		});

		$this->app->singleton('auth.driver', function($app)
		{
			return $app['auth']->driver();
		});
	}
374483
public function register()
    {
        $this->registerAliases();

        $this->registerJWTProvider();
        $this->registerAuthProvider();
        $this->registerStorageProvider();
        $this->registerJWTBlacklist();

        $this->registerManager();
        $this->registerTokenParser();

        $this->registerJWT();
        $this->registerJWTAuth();
        $this->registerPayloadValidator();
        $this->registerClaimFactory();
        $this->registerPayloadFactory();
        $this->registerJWTCommand();

        $this->commands('tymon.jwt.secret');
    }
277613
public function register()
    {
        $this->mergeConfigFrom(
            __DIR__.'/config/config.php', 'laravel-ab'
        );
        $this->app->make('Illuminate\Contracts\Http\Kernel')->prependMiddleware('\ComoCode\LaravelAb\App\Http\Middleware\LaravelAbMiddleware');
        $this->app->bind('Ab', 'ComoCode\LaravelAb\App\Ab');
        $this->registerCompiler();
        $this->registerCommands();
    }
696887
protected function registerAuthenticator()
	{
		$this->app->singleton('auth', function ($app) {
			// Once the authentication service has actually been requested by the developer
			// we will set a variable in the application indicating such. This helps us
			// know that we need to set any queued cookies in the after event later.
			$app['auth.loaded'] = true;
			return new MultiManager($app);
		});
		$this->app->singleton('auth.driver', function ($app) {
			return $app['auth']->driver();
		});
	}
318139
public function register()
	{
		$app = $this->app;

		$app['oauth2.storage.access_token'] = $app->share(function(Container $app) {
			/** @var AccessTokenRepositoryInterface  $tokenRepo */
			$tokenRepo = $app->make( self::ACCESS_TOKEN_INTERFACE );
			return new AccessTokenStorage( $tokenRepo );
		});

		$app['oauth2.storage.refresh_token'] = $app->share(function(Container $app) {
			/** @var RefreshTokenRepositoryInterface  $tokenRepo */
			$tokenRepo = $app->make( self::REFRESH_TOKEN_INTERFACE );
			return new RefreshTokenStorage( $tokenRepo );
		});

		$app['oauth2.storage.client_credentials'] = $app->share(function(Container $app) {
			/** @var ClientCredentialsRepositoryInterface  $clientRepo */
			$clientRepo = $app->make( self::CLIENT_CREDENTIALS_INTERFACE );
			return new ClientCredentialsStorage( $clientRepo );
		});

    $app['oauth2.storage.authorization_code'] = $app->share(function(Container $app) {
      /** @var AuthorizationCodeRepositoryInterface  $clientRepo */
      $authCodeRepo = $app->make( self::AUTHORIZATION_CODE_INTERFACE );
      return new AuthorizationCodeStorage( $authCodeRepo );
    });

		$app['oauth2.storage.user_storage'] = $app->share(function(Container $app) {
			$credsFormatter = $app['config']->get('laravel-oauth2-server::user_storage.format_credentials', null);
			return new UserStorage( $app['auth'], $credsFormatter );
		});

		$app['oauth2.storage'] = $app->share(function(Container $app) {
			$storages = array(
				$app['oauth2.storage.access_token'],
				$app['oauth2.storage.refresh_token'],
				$app['oauth2.storage.client_credentials'],
				$app['oauth2.storage.user_storage'],
        $app['oauth2.storage.authorization_code']
			);

			return array_filter($storages);
		});

		$app['oauth2.server'] = $app->share(function(Container $app) {
			$storage = $app['oauth2.storage'];
			$config = $app['config']->get('laravel-oauth2-server::server', array());

			return new Server( $storage, $config );

		});

		/**
		 * Allow for DI of server.
		 */
		$app->bind('Tappleby\OAuth2\Server\Server', function($app) {
			return $app['oauth2.server'];
		});

		$app->bind('Tappleby\OAuth2\Filter\AccessFilter', function($app) {
			$server = $app['oauth2.server'];
			$events = $app['events'];

			$clientRepo = $app->make( self::CLIENT_CREDENTIALS_INTERFACE );
			$userProvider = $app['auth']->getProvider();

			return new AccessFilter($server, $events, $clientRepo, $userProvider);
		});

		/**
		 * Register commands
		 */

		$this->app['command.oauth2-server.purge-expired-tokens'] = $this->app->share(function ($app) {
			return new PurgeExpiredTokensCommand(
				$app[self::ACCESS_TOKEN_INTERFACE],
				$app[self::AUTHORIZATION_CODE_INTERFACE],
				$app[self::REFRESH_TOKEN_INTERFACE]
			);
		});

		$this->commands('command.oauth2-server.purge-expired-tokens');

	}