Dev SSO: Tables, SAML

This commit is contained in:
2024-12-30 09:44:47 +01:00
parent f7d11c297d
commit 50cc0fc5be
26 changed files with 710 additions and 112 deletions

View File

@@ -21,8 +21,7 @@ class RedirectRoute extends Route {
}
public function call(Router $router, array $params): string {
header("Location: " . $this->getDestination());
http_response_code($this->code);
$router->redirect($this->code, $this->getDestination());
return "";
}

View File

@@ -176,4 +176,9 @@ class RouterCache extends Router {
return $this->routes;
}
public function redirect(int $code, string $location): void {
header("Location: " . $location);
http_response_code($code);
}
}