Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
+3
-3
@@ -16,7 +16,7 @@ import { writeAdminSsoAuditEvent } from "~/modules/admin-sso/audit.server";
|
||||
import { createUserSession, getUserInfo, setLoggedUser } from "~/utils/session.server";
|
||||
import { getUser } from "~/utils/db/users.db.server";
|
||||
import { ensureAdminUserRoleByName } from "~/utils/db/permissions/userRoles.db.server";
|
||||
import { loadRequiredWebConfig } from "@toolctrl/config";
|
||||
import { loadRequiredWebConfig } from "@hivegrid/config";
|
||||
import { absoluteAdminPath } from "~/utils/app/CrossHostUrls";
|
||||
|
||||
/**
|
||||
@@ -25,11 +25,11 @@ import { absoluteAdminPath } from "~/utils/app/CrossHostUrls";
|
||||
* Verifies state + nonce + PKCE via openid-client, exchanges the code
|
||||
* for tokens, runs JIT provisioning, and rotates the App-Session cookie
|
||||
* to the freshly-provisioned admin. Failures always redirect to
|
||||
* /admin/login with a typed error query param.
|
||||
* /login with a typed error query param.
|
||||
*/
|
||||
|
||||
function failRedirect(reason: string): never {
|
||||
const path = `/admin/login?error=${encodeURIComponent(reason)}`;
|
||||
const path = `/login?error=${encodeURIComponent(reason)}`;
|
||||
throw redirect(path);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user