mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-08 03:36:37 +00:00
fix idp infinite redirect closes #1540
This commit is contained in:
@@ -207,7 +207,7 @@ export default async function ResourceAuthPage(props: {
|
|||||||
})) as LoginFormIDP[];
|
})) as LoginFormIDP[];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (authInfo.skipToIdpId && authInfo.skipToIdpId !== null) {
|
if (!userIsUnauthorized && isSSOOnly && authInfo.skipToIdpId && authInfo.skipToIdpId !== null) {
|
||||||
const idp = loginIdps.find((idp) => idp.idpId === authInfo.skipToIdpId);
|
const idp = loginIdps.find((idp) => idp.idpId === authInfo.skipToIdpId);
|
||||||
if (idp) {
|
if (idp) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user