-
Notifications
You must be signed in to change notification settings - Fork 709
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
Deploy to prod #1812
Merged
Merged
Deploy to prod #1812
Conversation
This file contains 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
feat(settings): add admin switch for debugging boxes
fix(viewsqlite): only admins
This changes handling our authentication via Catchpoint's OpenID-based service. - Introduces the library RandomLib (and its deps) for random string generation for nonces and code verifiers - Starts obscuring our cookie names via a hash and secret key. It's a bit of security through obscurity and it's not 100% great, but it's an additional line - Moves GetServerSecret's implementation to Util so I can use it within a Util setting - Creates an OAuth class tucked into the WebPageTest\Util namespace. This will likely change.
setting a cookie in one file does not mean it will be accessible with $_COOKIE in the same request. Let's add some state management within the client itself.
We switched the way we do login to work with the Catchpoint OAuth. This also involved obscuring some cookie names. I also cleaned up some of this code
When a user's token has been revoked/is bad, but we still have it, we get into a state of endless redirects
What if the cookie is not set, but somebody POSTs to logout anyway? Just go ahead and don't bother calling it.
What if the token is bad, but we want the user to have a nicer experience? Let's not just log them out, let's retry!
Following conventions of PSR-12 for some existing things Also rewrite some tests to make sure they pass with the changing in functionality
feat(login): login with openid auth code flow
Allow for the extensions cache time to be configured in settings
This is a fix, for now
fix(admin): this needs to use the global admin
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.
No description provided.