Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11724552
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
9 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/README.md b/README.md
index 4111b87..346f794 100644
--- a/README.md
+++ b/README.md
@@ -1,70 +1,70 @@
\ | | __|
_ \ | | _| \ (_ | _|_ \\ \ / -_)
_/ _\\_,_|\__|_| _| \___|_|\___/ \_/\___|
Welcome to Auth Grove, an authentication grove application.
## What we do
An authentication grove is the fount of your authentication system. From here,
you can implement SSO for any other website and service on your domain.
You also provide your users a clean UI to register or recover a password.
Registration could be implemented by traditional login/pass, social sources
like GitHub or Google OAuth2 or SSO sources like SAML.
## Why we build this
Nasqueron uses a variety of services.
We love single sign on and unified login. Actually, we implemented our first
unified back to 2001. We aren't really into create a login by site.
## Requirements
-* PHP 5.4+
+* PHP 5.5.9+
## How to develop for Auth Grove?
You'll find these tools handy:
* Node
* Composer
* Gulp
* PHPUnit
To get dependencies:
git clone <this repository>
cd auth-grove
composer install
npm install
## If you wish to contribute to development
We would especially like to see dashboard features to:
* allow any user to download their data
* offer a view of services used and data in the system
We also welcome anyone who wants to work on SAML integration, especially Shibboleth.
## What we use
-* [Laravel](http://laravel.com/docs/5.0), as web application framework
+* [Laravel](http://laravel.com/docs/5.1), as web application framework
* [Laravel socialite](https://github.com/laravel/socialite), for social authentication
* A [Bootstrap](http://getbootstrap.com/) interface, to provide a familiar interface
## Support
* [IRC support](http://irc.lc/wolfplex)
* [Forum](http://purl.org/NET/Nasqueron/AuthGrove/Forum)
* [DevCentral](http://devcentral.nasqueron.org/tag/auth_grove/)
(bug tracker, code review)
## License
Auth Grove is open-sourced software licensed
under the [BSD license](http://purl.org/NET/Nasqueron/Software/Licenses/BSD).
\ No newline at end of file
diff --git a/app/Commands/Command.php b/app/Jobs/Command.php
similarity index 100%
rename from app/Commands/Command.php
rename to app/Jobs/Command.php
diff --git a/app/Handlers/Commands/.gitkeep b/app/Listeners/Commands/.gitkeep
similarity index 100%
rename from app/Handlers/Commands/.gitkeep
rename to app/Listeners/Commands/.gitkeep
diff --git a/app/Handlers/Events/.gitkeep b/app/Listeners/Events/.gitkeep
similarity index 100%
rename from app/Handlers/Events/.gitkeep
rename to app/Listeners/Events/.gitkeep
diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php
index e0d3db1..3830137 100644
--- a/bootstrap/autoload.php
+++ b/bootstrap/autoload.php
@@ -1,37 +1,34 @@
<?php
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/
require __DIR__.'/../vendor/autoload.php';
/*
|--------------------------------------------------------------------------
| Include The Compiled Class File
|--------------------------------------------------------------------------
|
| To dramatically increase your application's performance, you may use a
| compiled class file which contains all of the classes commonly used
| by a request. The Artisan "optimize" is used to create this file.
|
*/
-if (file_exists($compiledPath = __DIR__.'/../vendor/compiled.php'))
-{
- require $compiledPath;
-}
-elseif (file_exists($compiledPath = __DIR__.'/../storage/framework/compiled.php'))
-{
- require $compiledPath;
+$compiledPath = __DIR__.'/cache/compiled.php';
+
+if (file_exists($compiledPath)) {
+ require $compiledPath;
}
diff --git a/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore
new file mode 100644
index 0000000..d6b7ef3
--- /dev/null
+++ b/bootstrap/cache/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore
diff --git a/composer.json b/composer.json
index 0ad1f2b..4bb1bf5 100644
--- a/composer.json
+++ b/composer.json
@@ -1,45 +1,52 @@
{
"name": "nasqueron/auth-grove",
"description": "Authentication grove to provide unified login and SSO.",
"keywords": ["nasqueron", "auth", "authentication", "login", "sso"],
"license": "BSD",
"type": "project",
"require": {
- "laravel/framework": "5.0.*",
+ "php": ">=5.5.9",
+ "laravel/framework": "5.1.*",
"keruald/globalfunctions": ">=0.2"
},
"require-dev": {
- "phpunit/phpunit": "~4.0",
- "phpspec/phpspec": "~2.1"
+ "fzaninotto/faker": "~1.4",
+ "mockery/mockery": "0.9.*",
+ "phpunit/phpunit": "~4.0",
+ "phpspec/phpspec": "~2.1"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"AuthGrove\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
- "post-create-project-cmd": [
- "php -r \"copy('.env.example', '.env');\"",
- "php artisan key:generate"
- ]
+ "post-root-package-install": [
+ "php -r \"copy('.env.example', '.env');\""
+ ],
+ "post-create-project-cmd": [
+ "php artisan key:generate"
+ ]
},
"config": {
"preferred-install": "dist"
- }
+ },
+ "minimum-stability": "dev",
+"prefer-stable": true
}
diff --git a/config/broadcasting.php b/config/broadcasting.php
new file mode 100644
index 0000000..36f9b3c
--- /dev/null
+++ b/config/broadcasting.php
@@ -0,0 +1,49 @@
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Default Broadcaster
+ |--------------------------------------------------------------------------
+ |
+ | This option controls the default broadcaster that will be used by the
+ | framework when an event needs to be broadcast. You may set this to
+ | any of the connections defined in the "connections" array below.
+ |
+ */
+
+ 'default' => env('BROADCAST_DRIVER', 'pusher'),
+
+ /*
+ |--------------------------------------------------------------------------
+ | Broadcast Connections
+ |--------------------------------------------------------------------------
+ |
+ | Here you may define all of the broadcast connections that will be used
+ | to broadcast events to other systems or over websockets. Samples of
+ | each available type of connection are provided inside this array.
+ |
+ */
+
+ 'connections' => [
+
+ 'pusher' => [
+ 'driver' => 'pusher',
+ 'key' => env('PUSHER_KEY'),
+ 'secret' => env('PUSHER_SECRET'),
+ 'app_id' => env('PUSHER_APP_ID'),
+ ],
+
+ 'redis' => [
+ 'driver' => 'redis',
+ 'connection' => 'default',
+ ],
+
+ 'log' => [
+ 'driver' => 'log',
+ ],
+
+ ],
+
+];
diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php
new file mode 100644
index 0000000..ae7165b
--- /dev/null
+++ b/database/factories/ModelFactory.php
@@ -0,0 +1,21 @@
+<?php
+
+/*
+|--------------------------------------------------------------------------
+| Model Factories
+|--------------------------------------------------------------------------
+|
+| Here you may define all of your model factories. Model factories give
+| you a convenient way to create models for testing and seeding your
+| database. Just tell the factory how a default model should look.
+|
+*/
+
+$factory->define(App\User::class, function ($faker) {
+ return [
+ 'name' => $faker->name,
+ 'email' => $faker->email,
+ 'password' => str_random(10),
+ 'remember_token' => str_random(10),
+ ];
+});
diff --git a/tests/TestCase.php b/tests/TestCase.php
index 69726c3..8578b17 100644
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@ -1,19 +1,25 @@
<?php
-class TestCase extends Illuminate\Foundation\Testing\TestCase {
+class TestCase extends Illuminate\Foundation\Testing\TestCase
+{
+ /**
+ * The base URL to use while testing the application.
+ *
+ * @var string
+ */
+ protected $baseUrl = 'http://localhost';
- /**
- * Creates the application.
- *
- * @return \Illuminate\Foundation\Application
- */
- public function createApplication()
- {
- $app = require __DIR__.'/../bootstrap/app.php';
+ /**
+ * Creates the application.
+ *
+ * @return \Illuminate\Foundation\Application
+ */
+ public function createApplication()
+ {
+ $app = require __DIR__.'/../bootstrap/app.php';
- $app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
-
- return $app;
- }
+ $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
+ return $app;
+ }
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Sep 18, 15:56 (34 m, 21 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2991056
Default Alt Text
(9 KB)
Attached To
Mode
rGROVE Auth Grove
Attached
Detach File
Event Timeline
Log In to Comment