]> BookStack Code Mirror - bookstack/blobdiff - resources/views/common/header.blade.php
Fixed OIDC Logout
[bookstack] / resources / views / common / header.blade.php
index 97a411d84541684150f5b81bd4e6b6c8e9a8825f..8c05dc7ce9f9156af9de18ae119edf6d22b86435 100644 (file)
                             </a>
                         </li>
                         <li>
+<?php
+// OIDC Logout Feature: Use /oidc/logout if authentication method is oidc.
+if (config('auth.method') === 'oidc')  {
+?>
+                            <form action="/oidc/logout"
+                                  method="get">
+<?php
+// OIDC Logout Feature: Use /oidc/logout if authentication method is oidc.
+} else {
+?>
                             <form action="{{ url(config('auth.method') === 'saml2' ? '/saml2/logout' : '/logout') }}"
                                   method="post">
+<?php
+// OIDC Logout Feature: Use /oidc/logout if authentication method is oidc.
+}
+?>
                                 {{ csrf_field() }}
                                 <button class="icon-item" data-shortcut="logout">
                                     @icon('logout')