Advertisement
Guest User

CAS Config

a guest
Sep 10th, 2014
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.14 KB | None | 0 0
  1. <?php
  2.  
  3. return array(
  4.     'default' => array(
  5.  
  6.         /*
  7.         |--------------------------------------------------------------------------
  8.         | PHPCas Hostname
  9.         |--------------------------------------------------------------------------
  10.         |
  11.         | Laravel uses a flexible driver-based system to handle authentication.
  12.         | You are free to register your own drivers using the Auth::extend
  13.         | method. Of course, a few great drivers are provided out of
  14.         | box to handle basic authentication simply and easily.
  15.         |
  16.         | Exemple: 'cas.myuniv.edu'.
  17.         |
  18.         */
  19.  
  20.         'cas_hostname' => 'centrallogin.redacted4privacy.edu',
  21.  
  22.         /*
  23.         |--------------------------------------------------------------------------
  24.         | Authentication Username
  25.         |--------------------------------------------------------------------------
  26.         |
  27.         | Here you may specify the database column that should be considered the
  28.         | "username" for your users. Typically, this will either be "username"
  29.         | or "email". Of course, you're free to change the value to anything.
  30.         |
  31.         */
  32.  
  33.         'cas_proxy' => false,
  34.  
  35.         /*
  36.         |--------------------------------------------------------------------------
  37.         | Enable service to be proxied
  38.         |--------------------------------------------------------------------------
  39.         |
  40.         | Example:
  41.         | phpCAS::allowProxyChain(new CAS_ProxyChain(array(
  42.         |                                 '/^https:\/\/app[0-9]\.example\.com\/rest\//',
  43.         |                                 'http://client.example.com/'
  44.         |                         )));
  45.         | For the exemple above:
  46.         |   'cas_service' => array('/^https:\/\/app[0-9]\.example\.com\/rest\//','http://client.example.com/'),
  47.         */
  48.  
  49.         'cas_service' => array(),
  50.  
  51.         /*
  52.         |--------------------------------------------------------------------------
  53.         | Authentication Password
  54.         |--------------------------------------------------------------------------
  55.         |
  56.         | Here you may specify the database column that should be considered the
  57.         | "password" for your users. Typically, this will be "password" but,
  58.         | again, you're free to change the value to anything you see fit.
  59.         |
  60.         */
  61.  
  62.         'cas_port' => 443,
  63.  
  64.         /*
  65.         |--------------------------------------------------------------------------
  66.         | Authentication Model
  67.         |--------------------------------------------------------------------------
  68.         |
  69.         | When using the "eloquent" authentication driver, you may specify the
  70.         | model that should be considered the "User" model. This model will
  71.         | be used to authenticate and load the users of your application.
  72.         |
  73.         */
  74.  
  75.         'cas_uri' => 'User',
  76.  
  77.         /*
  78.         |--------------------------------------------------------------------------
  79.         | Authentication Table
  80.         |--------------------------------------------------------------------------
  81.         |
  82.         | When using the "fluent" authentication driver, the database table used
  83.         | to load users may be specified here. This table will be used in by
  84.         | the fluent query builder to authenticate and load your users.
  85.         |
  86.         */
  87.  
  88.         'cas_validation' => '',
  89.         'cas_cert' => '/path/to/cert/file',
  90.         'cas_login_url' => '',
  91.         'cas_logout_url' => 'https://centrallogin.redacted4privacy.edu/logout?service=',
  92.     )
  93. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement