Commit 252c3f92 authored by David Surville's avatar David Surville
Browse files

[Fix] Déconnexion du CAS et de Shibboleth lors d'un logout

parent 43226f74
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
# Changelog
# CHANGELOG

## 1.0.1 (07/02/2022)

- 
## 1.0.0 (02/02/2022)

- Scission du module UnicaenAuth en trois modules :
  - UnicaenAuthentification
  - UnicaenUtilisateur
  - UnicaenPrivilege

---

## UnicaenAuth (deprecated)

## 1.3.0 - 23/01/2019

+2 −2
Original line number Diff line number Diff line
@@ -133,13 +133,13 @@ class Cas extends AbstractAdapter
     */
    public function logout(EventInterface $e)
    {
        parent::logout($e);

        $storage = $this->getStorage()->read();
        if (! isset($storage['identity'])) {
            return;
        }

        parent::logout($e);

        $returnUrl = $this->router->getRequestUri()->setPath($this->router->getBaseUrl())->toString();
        $this->getCasClient()->logoutWithRedirectService($returnUrl);
    }
+2 −2
Original line number Diff line number Diff line
@@ -137,13 +137,13 @@ class Shib extends AbstractAdapter
     */
    public function logout(EventInterface $e)
    {
        parent::logout($e);

        $storage = $this->getStorage()->read();
        if (! isset($storage['identity'])) {
            return;
        }

        parent::logout($e);

        // désactivation de l'usurpation d'identité éventuelle
        $this->shibService->deactivateUsurpation();

+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
<p>
    Et voici ce que vous devez ajouter dans la configuration Apache de votre site :
</p>
<pre><?php echo htmlspecialchars(\UnicaenAuth\Service\ShibService::apacheConfigSnippet()) ?></pre>
<pre><?php echo htmlspecialchars(\UnicaenAuthentification\Service\ShibService::apacheConfigSnippet()) ?></pre>


<h2>Autre solution : simuler une authentification Shibboleth</h2>