From 033b948982f9c7bf4202cad9d3529bd7539cae5d Mon Sep 17 00:00:00 2001 From: Eamon Dysinger Date: Mon, 7 Oct 2024 11:25:44 -0700 Subject: [PATCH 1/4] revised 403 forbidden page for readibility and added additional regex for catching self-signup IdPs like gitHub and google --- pages/forbiddenlogin.vue | 111 +++++++++++++++++++++++++------------ server/routes/login.get.ts | 12 +++- 2 files changed, 87 insertions(+), 36 deletions(-) diff --git a/pages/forbiddenlogin.vue b/pages/forbiddenlogin.vue index ab29688..ad1b1cd 100644 --- a/pages/forbiddenlogin.vue +++ b/pages/forbiddenlogin.vue @@ -6,45 +6,86 @@ const badIdPType = route.query.type; + + diff --git a/server/routes/login.get.ts b/server/routes/login.get.ts index 6a6c627..f3142da 100644 --- a/server/routes/login.get.ts +++ b/server/routes/login.get.ts @@ -117,7 +117,17 @@ function checkTokenIdPIsValid(tokenResponse: AuthenticationResult): string { /(\.kp\/)/, // Democratic People's Republic of Korea /(\.ru\/)/, // Russian Federation ]; - const selfAttestationIdPPatterns = [/(sts\.windows\.net)/, /github\.com/]; + const selfAttestationIdPPatterns = [ + /(sts\.windows\.net)/, + /(github\.com)/, + /(orcid\.org)/, + /(microsoftonline\.com)/, + /(google\.com)/, + /(amazonaws\.com)/, + /(saml\.nelnet\.net)/, + /(miracosta\.fedgw\.com)/, + /(cirrusidentity)/, + ]; const indexableClaims = { ...tokenResponse.idTokenClaims }; const idpName = getStringTokenClaim(indexableClaims, "idp"); From 43b1f0d2627a58d8496f82b610b21eaac838ef22 Mon Sep 17 00:00:00 2001 From: Eamon Dysinger Date: Mon, 7 Oct 2024 11:26:53 -0700 Subject: [PATCH 2/4] from Abigail: fixed typo on licenseform and revised login text to reflect transition away from self-attested sign-up to cilogon federated IDP --- components/download/LicenseForm.vue | 2 +- pages/datasets/[datasetid]/access/login.vue | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/components/download/LicenseForm.vue b/components/download/LicenseForm.vue index f3551a7..9ad3d71 100644 --- a/components/download/LicenseForm.vue +++ b/components/download/LicenseForm.vue @@ -38,7 +38,7 @@ onMounted(() => {