Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform - UI: simplify auth setup function #230

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

deetz99
Copy link
Collaborator

@deetz99 deetz99 commented Oct 26, 2024

Issue:

  • bcgov/entity/issues/

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

Copy link

sonarcloud bot commented Oct 26, 2024

@deetz99 deetz99 changed the title simplify auth setup function Platform - UI: simplify auth setup function Oct 26, 2024
@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-platform-dev--pr-230-1r1rb2en.web.app

@deetz99 deetz99 marked this pull request as draft October 26, 2024 17:48
await expect(page.getByRole('menuitem', { name: 'IDIR' })).toBeVisible() // will need to change this to BCeID
await page.getByRole('menuitem', { name: 'IDIR' }).click()
// replace with environment variable?
const signinUrl = 'https://dev.account.bcregistry.gov.bc.ca/signin/bceid/'
Copy link
Collaborator

@kialj876 kialj876 Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I think we could do ${...NUXT_AUTH_WEB_URL -- I think this maps to authWebURL?}/signin/bceid

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just thinking if this is actually better than what I had previously or not.

Pros:

  • handles login for dev/test/prod without concerning the test runner with any middleware changes etc we make
  • less steps, marginally faster

Cons:

  • we're relying on auth-web to never change this url redirect

I doubt that will change anytime soon but 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants