Package Data | |
---|---|
Maintainer Username: | DanielMcAssey |
Maintainer Contact: | hello@glokon.me (Daniel McAssey) |
Package Create Date: | 2015-08-03 |
Package Last Update: | 2015-08-10 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-17 03:05:50 |
Package Statistics | |
---|---|
Total Downloads: | 21 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 3 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
A simple way to implement Atlassian Crowd Authentication into your application.
SUPPORTED VERSIONS: Atlassian Crowd 2.1 and later versions only.
In the require
key of composer.json
file add the following
"glokon/crowd-auth": "*"
Run the Composer update comand
$ composer update
In your config/app.php
add 'GLOKON\CrowdAuth\CrowdAuthServiceProvider'
to the end of the providers
array
'providers' => array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
...
'GLOKON\CrowdAuth\CrowdAuthServiceProvider',
),
Now generate the Crowd Auth migrations (make sure you have your database configuration set up):
$ php artisan migrate --package="glokon/crowd-auth"
This will setup three tables - crowd_users
, crowd_groups
and crowdgroup_crowduser
.
Now publish the config files for this package:
$ php artisan config:publish "glokon/crowd-auth"
Once the configuration is published go to your config/packages/glokon/crowd-auth/crowdauth.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-auth',
Once all this is completed you can simply use Auth::Attempt()
and it will attempt to login using your Atlassian Crowd server.