aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorCamil Staps2015-02-21 21:42:43 +0100
committerCamil Staps2015-02-21 21:42:43 +0100
commitb7d7f5b90e373329e8b5b9a8aa5f6879834f076e (patch)
treeadf8b5575e3e3b1bf7b864042b1e94420297bc24 /src/config
parentBasic controllers and authentication (diff)
trying to get auth work
Diffstat (limited to 'src/config')
-rw-r--r--src/config/auth.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/config/auth.php b/src/config/auth.php
new file mode 100644
index 0000000..ee836e2
--- /dev/null
+++ b/src/config/auth.php
@@ -0,0 +1,34 @@
+<?php
+
+return [
+
+ /*
+ |--------------------------------------------------------------------------
+ | Debug Mode
+ |--------------------------------------------------------------------------
+ |
+ | Enabling debug mode will result in error responses caused by thrown
+ | exceptions to have a "debug" key that will be populated with
+ | more detailed information on the exception.
+ |
+ */
+
+ 'debug' => true,
+
+ /*
+ |--------------------------------------------------------------------------
+ | Authentication Providers
+ |--------------------------------------------------------------------------
+ |
+ | The authentication providers that should be used when attempting to
+ | authenticate an incoming API request.
+ |
+ */
+
+ 'auth' => [
+ 'custom' => function ($app) {
+ return new AuthProvider;
+ },
+ ]
+
+];