mglinski/laravel-crowd-auth

A simple way to implement Atlassian Crowd Authentication into your application.

v1.1.2 2017-08-04 11:51 UTC

This package is auto-updated.

Last update: 2024-11-11 16:46:53 UTC


README

A simple way to implement Atlassian Crowd Authentication into your application.

SUPPORTED VERSIONS: Atlassian Crowd 2.1 and later versions only.

Quick start

Laravel 5.3.x

Require the package by running a dcomposer require:

composer require mglinski/laravel-crowd-auth

In your config/app.php add Crowd\Auth\CrowdAuthApiServiceProvider::class and Crowd\Auth\CrowdAuthServiceProvider::class to the end of the providers array

'providers' => [
    ...

    Crowd\Auth\CrowdAuthApiServiceProvider::class,
    Crowd\Auth\CrowdAuthServiceProvider::class,
],

Now generate the Crowd Auth migrations (make sure you have your database configuration set up):

$ php artisan vendor:publish --tag=migrations
$ php artisan migrate

This will setup three tables - crowd_auth_users, crowd_auth_users and crowd_auth_group_auth_user.

Now publish the config files for this package:

$ php artisan vendor:publish --tag=config

Once the configuration is published go to your config/crowd_auth.php and configure your Atlassian Crowd settings.

After you have configured your Atlassian Crowd settings you need to change the driver setting in config/auth.php to:

'driver' => 'crowd',

Once all this is completed you can simply use Auth::Attempt() and it will attempt to login using your Atlassian Crowd server.