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

ui: Improve dev-time SSO/OIDC visibility #11248

Merged
merged 1 commit into from Oct 11, 2021
Merged

Conversation

johncowen
Copy link
Contributor

@johncowen johncowen commented Oct 7, 2021

We recently had a PR to fix a bug with the UIs OIDC support which we fixed in:

#10901

..and whilst we do have ways to to test this both automatically (to some extent) and manually, it's never been something I've been entirely happy with from an e2e perspective.

This PR tries to make the development experience of working on our OIDC support a little more realistic, essentially by creating our own OIDC provider in our application (only during development builds). You can still provide a real OIDC provider to work with via our dev time environment/cookie variables as before, just now we default to the behaviour in this PR. Overall this makes it much easier to verify our OIDC support in the UI, and also opens up avenues for us to be able to test more scenarios that we couldn't before (for example not only successful logins, but also erroneous, potentially with multiple error reasons).

There are some potential enhancements to our OIDC coming up, so I felt it would be good to get this in in the sense of working on preventative measures rather than curative measures when it comes to working on/improving/changing new features and potential bugs that could come from that.

oidc-debug

note the base branch here which includes the work we needed to be able to do this.

@johncowen johncowen added the theme/ui Anything related to the UI label Oct 7, 2021
@johncowen johncowen requested a review from kaxcode October 7, 2021 18:06
Base automatically changed from ui/chore/exclude-more-debug to ui/feature/test-helpers October 8, 2021 11:36
@johncowen johncowen force-pushed the ui/feature/better-oidc-double branch from b1682c6 to 72a452d Compare October 8, 2021 11:49
@vercel vercel bot temporarily deployed to Preview – consul October 8, 2021 11:49 Inactive
Base automatically changed from ui/feature/test-helpers to main October 8, 2021 15:29
@johncowen johncowen force-pushed the ui/feature/better-oidc-double branch from 72a452d to a164567 Compare October 8, 2021 15:38
@vercel vercel bot temporarily deployed to Preview – consul October 8, 2021 15:38 Inactive
@johncowen johncowen added the pr/no-changelog PR does not need a corresponding .changelog entry label Oct 8, 2021
Copy link
Contributor

@kaxcode kaxcode left a comment

Choose a reason for hiding this comment

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

🎉

@johncowen johncowen merged commit ed6918c into main Oct 11, 2021
@johncowen johncowen deleted the ui/feature/better-oidc-double branch October 11, 2021 15:04
@hc-github-team-consul-core
Copy link
Collaborator

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/468426.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/no-changelog PR does not need a corresponding .changelog entry theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants