mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-20 11:12:31 +02:00
redirect differently for org auth domain
This commit is contained in:
@@ -201,7 +201,11 @@ export default async function ResourceAuthPage(props: {
|
|||||||
// Inference resources never establish a resource session on the inference
|
// Inference resources never establish a resource session on the inference
|
||||||
// host. Authenticated users retrieve their virtual API key on the dashboard.
|
// host. Authenticated users retrieve their virtual API key on the dashboard.
|
||||||
if (isInference && user) {
|
if (isInference && user) {
|
||||||
redirect(keysPath);
|
if (host !== expectedHost) {
|
||||||
|
redirect(`/auth/org?redirect=${encodeURIComponent(keysPath)}`);
|
||||||
|
} else {
|
||||||
|
redirect(keysPath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// After password/pincode/SSO, do not send the browser back to the
|
// After password/pincode/SSO, do not send the browser back to the
|
||||||
|
|||||||
Reference in New Issue
Block a user