[module.cas] POST fixed 'service' processed from $_SERVER variables
This commit is contained in:
parent
fa83d62d72
commit
73a496faae
|
@ -73,7 +73,7 @@ class casController{
|
|||
/* (2) Check ticket (validate)
|
||||
---------------------------------------------------------*/
|
||||
/* (1) Build useful variables */
|
||||
$service = 'http://ptut.com:8080/api/v/1.0/cas';
|
||||
$service = $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].'/api/v/1.0/cas';
|
||||
$ticket = urlencode($_GET['ticket']);
|
||||
$validate_url = "https://sso.univ-pau.fr/cas/serviceValidate?ticket=$ticket&service=$service";
|
||||
|
||||
|
|
Loading…
Reference in New Issue