Repository navigation
Add a login agreement interstitial - #3479
Open
fakemonster wants to merge 2 commits into
Open
fakemonster wants to merge 2 commits into
fakemonster wants to merge 2 commits into
Conversation
This agreement text is always visible, but we expect SAML pages to show it on the IdP's login page.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a simple agreement interstitial prior to local login, when one has been configured for the silo. Original discussion implied that we'd show this inline with a checkbox, but working examples showed a variety of options, and this felt like a good balance of "make sure users actually see this text" and "don't be confusing". Necessitated toying with the login layout a bit (320px for paragraph text is simply intolerable) but if you have no agreement text, there should be no visible difference as a result of this change.
One debatable decision I've made is to error out of the page if the agreement text fetch fails, since setting the agreement text implies you actually care about people seeing it. This isn't unsafe, in that the endpoint is unauthenticated and so your only errors should be 5xx (genuine problems) or, if 4xx, it's because your client is too new (so no endpoint is going to work for you). But it's arguably unpleasant, in that if your silo doesn't have an agreement text, and this fails for, say, a network blip, you can't log in! You're failing for "no good reason"; the frontend just doesn't know about it.
Depends on oxidecomputer/omicron#11960; paired with it, resolves github.com/oxidecomputer/omicron/issues/8201.