|  | 
|  | 1 | +<?php | 
|  | 2 | +return [ | 
|  | 3 | +    /* | 
|  | 4 | +    |-------------------------------------------------------------------------- | 
|  | 5 | +    | CAS Hostname | 
|  | 6 | +    |-------------------------------------------------------------------------- | 
|  | 7 | +    | Example: 'cas.myuniv.edu'. | 
|  | 8 | +    */ | 
|  | 9 | +    'cas_hostname'        => env('CAS_HOSTNAME', 'sso.mycompany.com'), | 
|  | 10 | + | 
|  | 11 | +    /* | 
|  | 12 | +    |-------------------------------------------------------------------------- | 
|  | 13 | +    | CAS Authorized Hosts | 
|  | 14 | +    |-------------------------------------------------------------------------- | 
|  | 15 | +    | Example: 'cas.myuniv.edu'.  This is used when SAML is active and is | 
|  | 16 | +    | recommended for protecting against DOS attacks.  If using load | 
|  | 17 | +    | balanced hosts, then separate each with a comma. | 
|  | 18 | +    */ | 
|  | 19 | +    'cas_real_hosts'      => env('CAS_REAL_HOSTS', 'sso.mycompany.com'), | 
|  | 20 | + | 
|  | 21 | + | 
|  | 22 | +    /* | 
|  | 23 | +    |-------------------------------------------------------------------------- | 
|  | 24 | +    | Customize CAS Session Cookie Name | 
|  | 25 | +    |-------------------------------------------------------------------------- | 
|  | 26 | +    */ | 
|  | 27 | +    'cas_session_name'    => env('CAS_SESSION_NAME', 'CASAuth'), | 
|  | 28 | + | 
|  | 29 | +    /* | 
|  | 30 | +    |-------------------------------------------------------------------------- | 
|  | 31 | +    | Laravel has it's own authentication sessions. Unless you want phpCAS | 
|  | 32 | +    | to manage the session, leave this set to false.  Note that the | 
|  | 33 | +    | middleware and redirect classes will be handling removal | 
|  | 34 | +    | of the Laravel sessions when this is set to false. | 
|  | 35 | +    |-------------------------------------------------------------------------- | 
|  | 36 | +    */ | 
|  | 37 | +    'cas_control_session' => env('CAS_CONTROL_SESSIONS', false), | 
|  | 38 | + | 
|  | 39 | +    /* | 
|  | 40 | +    |-------------------------------------------------------------------------- | 
|  | 41 | +    | Enable using this as a cas proxy | 
|  | 42 | +    |-------------------------------------------------------------------------- | 
|  | 43 | +    */ | 
|  | 44 | +    'cas_proxy'           => env('CAS_PROXY', false), | 
|  | 45 | + | 
|  | 46 | +    /* | 
|  | 47 | +    |-------------------------------------------------------------------------- | 
|  | 48 | +    | Cas Port | 
|  | 49 | +    |-------------------------------------------------------------------------- | 
|  | 50 | +    | Usually 443 | 
|  | 51 | +    */ | 
|  | 52 | +    'cas_port'            => env('CAS_PORT', 443), | 
|  | 53 | + | 
|  | 54 | +    /* | 
|  | 55 | +    |-------------------------------------------------------------------------- | 
|  | 56 | +    | CAS URI | 
|  | 57 | +    |-------------------------------------------------------------------------- | 
|  | 58 | +    | Sometimes is /cas | 
|  | 59 | +    */ | 
|  | 60 | +    'cas_uri'             => env('CAS_URI', '/idp/cas'), | 
|  | 61 | + | 
|  | 62 | +    /* | 
|  | 63 | +    |-------------------------------------------------------------------------- | 
|  | 64 | +    | CAS Validation | 
|  | 65 | +    |-------------------------------------------------------------------------- | 
|  | 66 | +    | CAS server SSL validation: 'self' for self-signed certificate, 'ca' for | 
|  | 67 | +    | certificate from a CA, empty for no SSL validation. | 
|  | 68 | +    | | 
|  | 69 | +    | VALIDATING THE CAS SERVER IS CRUCIAL TO THE SECURITY OF THE CAS PROTOCOL | 
|  | 70 | +    */ | 
|  | 71 | +    'cas_validation'          => env('CAS_VALIDATION', ''), | 
|  | 72 | + | 
|  | 73 | +    /* | 
|  | 74 | +    |-------------------------------------------------------------------------- | 
|  | 75 | +    | CA Certificate | 
|  | 76 | +    |-------------------------------------------------------------------------- | 
|  | 77 | +    | Path to the CA certificate file.  For production use set | 
|  | 78 | +    | the CA certificate that is the issuer of the cert | 
|  | 79 | +    */ | 
|  | 80 | +    'cas_cert'                => env('CAS_CERT', ''), | 
|  | 81 | + | 
|  | 82 | +    /* | 
|  | 83 | +    |-------------------------------------------------------------------------- | 
|  | 84 | +    | CN Validation (if you are using CA certs) | 
|  | 85 | +    |-------------------------------------------------------------------------- | 
|  | 86 | +    | If for some reason you want to disable validating the certificate | 
|  | 87 | +    | intermediaries, here is where you can.  Recommended to leave | 
|  | 88 | +    | this set with default (true). | 
|  | 89 | +    */ | 
|  | 90 | +    'cas_validate_cn'     => env('CAS_VALIDATE_CN', true), | 
|  | 91 | + | 
|  | 92 | +    /* | 
|  | 93 | +    |-------------------------------------------------------------------------- | 
|  | 94 | +    | CAS Login URI | 
|  | 95 | +    |-------------------------------------------------------------------------- | 
|  | 96 | +    | Empty is fine | 
|  | 97 | +    */ | 
|  | 98 | +    'cas_login_url'       => env('CAS_LOGIN_URL', ''), | 
|  | 99 | + | 
|  | 100 | +    /* | 
|  | 101 | +    |-------------------------------------------------------------------------- | 
|  | 102 | +    | CAS Logout URI | 
|  | 103 | +    |-------------------------------------------------------------------------- | 
|  | 104 | +    */ | 
|  | 105 | +    'cas_logout_url'      => env('CAS_LOGOUT_URL', 'https://sso.mycompany.com/idp/cas/logout'), | 
|  | 106 | + | 
|  | 107 | +    /* | 
|  | 108 | +    |-------------------------------------------------------------------------- | 
|  | 109 | +    | CAS Logout Redirect Services | 
|  | 110 | +    |-------------------------------------------------------------------------- | 
|  | 111 | +    | If your server supports redirection services, enter the redirect url | 
|  | 112 | +    | in this section.  If left blank, it will default to disabled. | 
|  | 113 | +    */ | 
|  | 114 | +    'cas_logout_redirect' => env('CAS_LOGOUT_REDIRECT', ''), | 
|  | 115 | + | 
|  | 116 | +    /* | 
|  | 117 | +    |-------------------------------------------------------------------------- | 
|  | 118 | +    | CAS Successful Logon Redirection Url | 
|  | 119 | +    |-------------------------------------------------------------------------- | 
|  | 120 | +    | By default, CAS will assume that the user should be redirected to the | 
|  | 121 | +    | page in which the call was initiated.  You can override this method | 
|  | 122 | +    | and force the user to be redirected to a specific URL here. | 
|  | 123 | +    */ | 
|  | 124 | +    'cas_redirect_path'   => env('CAS_REDIRECT_PATH', ''), | 
|  | 125 | + | 
|  | 126 | +    /* | 
|  | 127 | +    |-------------------------------------------------------------------------- | 
|  | 128 | +    | CAS Supports SAML 1.1, allowing you to retrieve more than just the | 
|  | 129 | +    | user identifier.  If your CAS authentication service supports | 
|  | 130 | +    | this feature, you may be able to retrieve user meta data. | 
|  | 131 | +    |-------------------------------------------------------------------------- | 
|  | 132 | +    */ | 
|  | 133 | +    'cas_enable_saml'     => env('CAS_ENABLE_SAML', false), | 
|  | 134 | + | 
|  | 135 | +    /* | 
|  | 136 | +    |-------------------------------------------------------------------------- | 
|  | 137 | +    | CAS will support version 1.0, 2.0, 3.0 of the protocol.  It is recommended | 
|  | 138 | +    | to use version 2.0, 3.0, or SAML 1.1.  If you enable SAML, then that | 
|  | 139 | +    | will override this configuration. | 
|  | 140 | +    |-------------------------------------------------------------------------- | 
|  | 141 | +    */ | 
|  | 142 | +    'cas_version'         => env('CAS_VERSION', "2.0"), | 
|  | 143 | +     | 
|  | 144 | +    /* | 
|  | 145 | +    |-------------------------------------------------------------------------- | 
|  | 146 | +    | Enable PHPCas Debug Mode | 
|  | 147 | +    | Options are: | 
|  | 148 | +    | 1) true (defaults logfile creation to /tmp/phpCAS.log) | 
|  | 149 | +    | 2) 'path/to/logfile' | 
|  | 150 | +    | 3) false | 
|  | 151 | +    |-------------------------------------------------------------------------- | 
|  | 152 | +    */ | 
|  | 153 | +    'cas_debug'           => env('CAS_DEBUG', false), | 
|  | 154 | + | 
|  | 155 | +    /* | 
|  | 156 | +    |-------------------------------------------------------------------------- | 
|  | 157 | +    | Enable Verbose error messages. Not recommended for production. | 
|  | 158 | +    | true | false | 
|  | 159 | +    |-------------------------------------------------------------------------- | 
|  | 160 | +    */ | 
|  | 161 | +    'cas_verbose_errors'  => env('CAS_VERBOSE_ERRORS', false), | 
|  | 162 | + | 
|  | 163 | +    /* | 
|  | 164 | +    |-------------------------------------------------------------------------- | 
|  | 165 | +    | This will cause CAS to skip authentication and assume this user id. | 
|  | 166 | +    | This should only be used for developmental purposes.  getAttributes() | 
|  | 167 | +    | will return null in this condition. | 
|  | 168 | +     */ | 
|  | 169 | +    'cas_masquerade'      => env('CAS_MASQUERADE', '') | 
|  | 170 | +]; | 
0 commit comments