use BookStack\Access\Oidc\OidcException;
use BookStack\Access\Oidc\OidcService;
-use BookStack\Http\Controllers\Controller;
+use BookStack\Http\Controller;
use Illuminate\Http\Request;
class OidcController extends Controller
{
protected OidcService $oidcService;
- /**
- * OpenIdController constructor.
- */
public function __construct(OidcService $oidcService)
{
$this->oidcService = $oidcService;
return redirect()->intended();
}
+
+ /**
+ * Log the user out then start the OIDC RP-initiated logout process.
+ */
+ public function logout()
+ {
+ return redirect($this->oidcService->logout());
+ }
}