Skip to content
Snippets Groups Projects
Commit 29e3868f authored by Nicolas Borboën's avatar Nicolas Borboën
Browse files

[feature] config

parent 60929892
No related branches found
No related tags found
No related merge requests found
APP_ENV=local APP_ENV=local
APP_DEBUG=true APP_DEBUG=true
APP_KEY= APP_KEY=CHANGEMEfuef5ahX7ohSh3ieDaiPh3eiy
APP_TIMEZONE=Europe/Zurich APP_TIMEZONE=Europe/Zurich
# mysql -u canap_db -p canap_db -h localhost --port 9906 --protocol=tcp
DB_CONNECTION=mysql DB_CONNECTION=mysql
DB_HOST=127.0.0.1 DB_HOST=db
DB_PORT=3306 DB_PORT=3306
DB_DATABASE=homestead DB_DATABASE=canap_db
DB_USERNAME=homestead DB_USERNAME=canap_db
DB_PASSWORD=secret DB_PASSWORD=canap_db
CACHE_DRIVER=file CACHE_DRIVER=file
QUEUE_DRIVER=sync QUEUE_DRIVER=sync
JWT_SECRET= JWT_SECRET=CHANGEMEruPigh9cui2eighahd2luu0di
\ No newline at end of file
TEQUILA_REQUIRE_PARAMS='group=canap-gest-users'
TEQUILA_RETURN_URL='https://canap-gest.epfl.ch/#/?key='
BYPASS_RESPONSIBLE_SCIPER=''
...@@ -37,8 +37,8 @@ class AuthController extends Controller ...@@ -37,8 +37,8 @@ class AuthController extends Controller
]; ];
// DEV ndubois droits responsable // DEV ndubois droits responsable
if ($tequila_attributes["uniqueid"] == "167916") { if ($tequila_attributes["uniqueid"] == "169419") {
// $payload["role"] = 'responsable'; $payload["role"] = 'responsable';
} }
...@@ -60,7 +60,8 @@ class AuthController extends Controller ...@@ -60,7 +60,8 @@ class AuthController extends Controller
$oClient->setRequested( $oClient->setRequested(
array( array(
'request' => "name,firstname,uniqueid,group", 'request' => "name,firstname,uniqueid,group",
'require' => "group=canap-gest-users" //'require' => "group=canap-gest-users"
'require' => env('DB_USERNAME', 'group=canap-gest-users')
) )
); );
...@@ -82,7 +83,9 @@ class AuthController extends Controller ...@@ -82,7 +83,9 @@ class AuthController extends Controller
public function tequilareturn() public function tequilareturn()
{ {
// return redirect()->to("https://canap-gest-dev.local:8080/#/?key=" . $_GET["key"]); // return redirect()->to("https://canap-gest-dev.local:8080/#/?key=" . $_GET["key"]);
return redirect()->to("https://canap-gest.epfl.ch/#/?key=" . $_GET["key"]); // PROD // return redirect()->to("https://canap-gest.epfl.ch/#/?key=" . $_GET["key"]); // PROD
// return redirect()->to("http://localhost:8080/#/?key=" . $_GET["key"]); // DEV
return redirect()->to(env('DB_USERNAME', 'group=canap-gest-users') . $_GET["key"]); // DEV
} }
public function logout() public function logout()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment