From 4225346199066628eec79909c3941e2518f3c065 Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Mon, 1 Jul 2024 21:40:58 +0300 Subject: [PATCH] cleanup ui jwt/auth providers --- ui/app/models/role-jwt.js | 8 +- ui/app/styles/components/auth-buttons.scss | 11 --- .../components/auth-button-auth0.hbs | 24 ------ .../components/auth-button-gitlab.hbs | 53 ------------- .../components/auth-button-google.hbs | 75 ------------------- 5 files changed, 1 insertion(+), 170 deletions(-) delete mode 100644 ui/app/templates/components/auth-button-auth0.hbs delete mode 100644 ui/app/templates/components/auth-button-gitlab.hbs delete mode 100644 ui/app/templates/components/auth-button-google.hbs diff --git a/ui/app/models/role-jwt.js b/ui/app/models/role-jwt.js index 9a68051a4..12652a7e6 100644 --- a/ui/app/models/role-jwt.js +++ b/ui/app/models/role-jwt.js @@ -7,15 +7,9 @@ import Model, { attr } from '@ember-data/model'; import parseURL from 'core/utils/parse-url'; const DOMAIN_STRINGS = { - 'github.com': 'GitHub', - 'gitlab.com': 'GitLab', - 'google.com': 'Google', - 'ping.com': 'Ping', - 'okta.com': 'Okta', - 'auth0.com': 'Auth0', }; -const PROVIDER_WITH_LOGO = ['GitLab', 'Google', 'Auth0']; +const PROVIDER_WITH_LOGO = []; export { DOMAIN_STRINGS, PROVIDER_WITH_LOGO }; diff --git a/ui/app/styles/components/auth-buttons.scss b/ui/app/styles/components/auth-buttons.scss index 84310f7c0..d8ad4ec05 100644 --- a/ui/app/styles/components/auth-buttons.scss +++ b/ui/app/styles/components/auth-buttons.scss @@ -10,18 +10,7 @@ border-radius: 1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); } -.auth-button-type-google { - position: relative; - top: -10px; - left: -1.05rem; -} -.auth-button-type-auth0, -.auth-button-type-gitlab { - position: relative; - top: -6px; - left: -0.75rem; -} [class*='auth-button-type'] .text { padding-left: $spacing-m; } diff --git a/ui/app/templates/components/auth-button-auth0.hbs b/ui/app/templates/components/auth-button-auth0.hbs deleted file mode 100644 index 0a4e4154e..000000000 --- a/ui/app/templates/components/auth-button-auth0.hbs +++ /dev/null @@ -1,24 +0,0 @@ -{{! - Copyright (c) HashiCorp, Inc. - SPDX-License-Identifier: BUSL-1.1 -~}} - -
-
- {{! template-lint-disable no-forbidden-elements }} - - - - - - - - {{! template-lint-enable no-forbidden-elements }} -
-
- Sign in with Auth0 -
-
\ No newline at end of file diff --git a/ui/app/templates/components/auth-button-gitlab.hbs b/ui/app/templates/components/auth-button-gitlab.hbs deleted file mode 100644 index 16e48fe66..000000000 --- a/ui/app/templates/components/auth-button-gitlab.hbs +++ /dev/null @@ -1,53 +0,0 @@ -{{! - Copyright (c) HashiCorp, Inc. - SPDX-License-Identifier: BUSL-1.1 -~}} - -
- {{! template-lint-disable no-forbidden-elements }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{! template-lint-enable no-forbidden-elements }} -
- Sign in with GitLab -
-
\ No newline at end of file diff --git a/ui/app/templates/components/auth-button-google.hbs b/ui/app/templates/components/auth-button-google.hbs deleted file mode 100644 index 984957270..000000000 --- a/ui/app/templates/components/auth-button-google.hbs +++ /dev/null @@ -1,75 +0,0 @@ -{{! - Copyright (c) HashiCorp, Inc. - SPDX-License-Identifier: BUSL-1.1 -~}} - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Sign in with Google -
-
\ No newline at end of file