Skip to content
Snippets Groups Projects
Commit ac502817 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch 'hotline#79470_mise_en_place_des_sets_bibiondemand' into 'hotline'

hotline #79470 : fix new sso url

See merge request !3539
parents 0577a43b a128fcd2
Branches
Tags
3 merge requests!3543Master,!3542Hotline,!3539hotline #79470 : fix new sso url
Pipeline #10352 passed with stage
in 44 minutes and 5 seconds
- ticket #79470 : Ressource numériques : Mise à jour du lien SSO pour le connecteur Bibiondemand
\ No newline at end of file
......@@ -61,7 +61,7 @@ class Bibliondemand_Config extends Class_DigitalResource_Config {
$url = Class_AdminVar::getValueOrDefault($this->withNameSpace('SSO_URL'));
return ($record_url = (new Class_Notice_Sso($record))->getFirstPrivateUrl())
? $url . '&' . http_build_query(['returnUrl' => $record_url])
? $url . '&' . http_build_query(['returnUrl' => '/sarasvati/ws/secure/redirect.ashx?url=' . $record_url])
: $url;
}
......
......@@ -172,7 +172,8 @@ class ModulesControllerBibliondemandSsoTest extends AbstractControllerTestCase {
/** @test */
public function record21ShouldRedirectToBibliondemandSso() {
$this->dispatch('/modules/sso/id/21', true);
$this->assertXPathContentContains('//script', 'document.location.href="http://numerique-pasdecalais.bibliondemand.com/logon.aspx?provider=SsoCas&sso-id=cg62-saintomer&returnUrl='. urlencode('http://music.1dtouch.com/users/auth/assa?dest=albums/137962&bibid=CG62').'"', $this->_response->getBody());
$this->assertXPathContentContains('//script', 'document.location.href="http://numerique-pasdecalais.bibliondemand.com/logon.aspx?provider=SsoCas&sso-id=cg62-saintomer&returnUrl='. urlencode('/sarasvati/ws/secure/redirect.ashx?url=http://music.1dtouch.com/users/auth/assa?dest=albums/137962&bibid=CG62').'"',
$this->_response->getBody());
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment