mglinski / laravel-crowd-auth
A simple way to implement Atlassian Crowd Authentication into your application.
Requires
- php: >=5.6.9
- ext-json: *
- ext-mbstring: *
- guzzlehttp/psr7: ^1.3
- illuminate/auth: ^5.3
- illuminate/database: ^5.3
- illuminate/support: ^5.3
- php-http/cache-plugin: ^1.2
- php-http/discovery: ^1.1
- php-http/guzzle6-adapter: ^1.1
- php-http/httplug: ^1.1
- php-http/message-factory: ^1.0
Requires (Dev)
- mockery/mockery: 0.9.*
- orchestra/testbench: 3.3.*
- phpunit/phpunit: 5.0
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.