RelayState is missing
- Dominant language
- PHP
- Stars
- 29
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
Quando si usa il login in HTTP-POST il campo RelayState all'interno del form che viene inviato risulta vuoto.
Analizzando il codice ho notato questo:
```
public function postForm($url, $redirectTo = null)
{
$SAMLRequest = base64_encode($this->xml);
$relayState = is_null($redirectTo) ? (isset($_SERVER['HTTPS']) &&
$_SERVER['HTTPS'] === 'on' ? "https" : "http") .
"//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}" : $redirectTo;
$relayState = base64_encode($relayState);
return <<
HTML;
}
```
Effettuando un check con spid_sp_test infatti si ottiene questo:
`ERROR:spid_sp_test.authn_request:RelayState is missing`
La variable $relayState è risettata a NULL quando invece dovrebbe essere qualcosa del tipo
`$relayState = base64_encode($relayState)`
Dopo la modifica il test su descritto viene correttamente passato
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.