Skip to content
Snippets Groups Projects
Commit 22b3d45f authored by nicrausaz's avatar nicrausaz
Browse files

Prod v.1

parent c16602fa
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,8 @@ class AuthController extends Controller
public function login()
{
// TODO: Limit group access
// TODO: Limit group access to canap-gest-users
$oClient = new TequilaClient("https://tequila.epfl.ch/cgi-bin/tequila/");
$oClient->setParam(
array(
......@@ -74,7 +75,7 @@ class AuthController extends Controller
public function tequilareturn()
{
// return redirect()->to("https://canap-gest-dev.local:8080/#/?key=" . $_GET["key"]);
return redirect()->to("https://canap-gest:8443/#/?key=" . $_GET["key"]);
return redirect()->to("https://canap-gest.epfl.ch/#/?key=" . $_GET["key"]);
}
public function logout()
......
......@@ -4,7 +4,7 @@ import router from '@/router/index.js'
const instance = axios.create({
headers: { 'Authorization': "Bearer " + localStorage.getItem('stored_token') },
baseURL: 'https://canap-gest.epfl.ch:8443/api'
baseURL: 'https://canap-gest.epfl.ch/api'
})
instance.interceptors.response.use(function (response) {
......
......@@ -8,7 +8,7 @@ export function login (context, key) {
})
}
else {
window.location.href = "https://canap-gest.epfl.ch:8443/api/auth/login"
window.location.href = "https://canap-gest.epfl.ch/api/auth/login"
}
}
......
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