Skip to content

Commit

Permalink
Feature/shared idp cypress (#680)
Browse files Browse the repository at this point in the history
* add sync_org to feeder options

* change urls for ckan feeder

* initial working version of shared idp

* put back align in radio-card-group

* add the shared idp aud mapper

* add support for shared idp roles

* upd data rule for isShared

* upd controllers

* fix invalid idp shared check

* First pass at new login screens

* fix invalid query

* add namespace field to metrics

* upd types

* upd kong_http_requests_hourly_service grouping

* upd to handle Activity feed context

* Consolidate login pages to single entry

* Fix dialog, button fixes.

* minor cleanup

* make auto the default for issuer mode

* show error on failed deletion of issuer and svc acct

* add validation on issuer name

* add validation for availableScopes

* add in the delete access catch error

* Fix tabs losing data when creating/editing

* Switch access request button to a button, not link

* Fix button again

* Add content, developer layout

* Update login options order.

* Fix redirect bug, multiple query params

* Create shared-idp.yaml

* Update init.sh

* Optimized Cypress Test and added Cypress Tests for update product environment scenarios

* Fix login redirect inception

* upd shared-idp local

* upg database

* cleanup feeder init

* handle logout on local properly

* Add ignored redirect list, move some content to server

* Fix missing type data

* Update cypress scripts which were failing due to changes in fixture/test data

* include identity content

* upg helm chart for mongodb

* upg helm chart for mongodb

* upg helm chart for mongodb

* upg helm chart for mongodb

* upd mongodb

* add auth callback page

* upd mongodb deploy strategy

* Update ci-build-deploy.yaml

* Fix login data test ids

* Added changes for login refresh scenarios

* removed debugger statement

* Added Testdata ID for login button

Co-authored-by: ikethecoder <ikethecoder@copeconsulting.ca>
Co-authored-by: Joshua Jones <joshua@general-metrics.com>
Co-authored-by: Niraj Patel <niraj.patel@gov.bc.ca>
  • Loading branch information
4 people committed Jan 4, 2023
1 parent 8ea362b commit ea2074d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nextapp/components/login-buttons/login-buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { useRouter } from 'next/router';
import { uid } from 'react-uid';
import { FaGithub } from 'react-icons/fa';
import { makeRedirectUrl } from '@/shared/services/auth';
import kebabCase from 'lodash/kebabCase';

function buildUrl(hint: string, path: string) {
const redirectPath = makeRedirectUrl(path);
Expand Down Expand Up @@ -82,6 +83,7 @@ const LoginButtons: React.FC<LoginButtonsProps> = ({
href={href}
leftIcon={icon}
bgColor={bgColor}
data-testid={`login-with-${kebabCase(button.text)}`}
>
Login with {button.text}
</Button>
Expand All @@ -103,6 +105,7 @@ const LoginButtons: React.FC<LoginButtonsProps> = ({
w="100%"
leftIcon={icon}
bgColor={bgColor}
data-testid={`login-with-${kebabCase(button.text)}`}
>
Login with {button.text}
</Button>
Expand Down

0 comments on commit ea2074d

Please sign in to comment.