-
Notifications
You must be signed in to change notification settings - Fork 101
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
Fix authentication error viewing ZMI resource with virtual hosting #1204
Merged
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
dataflake
requested changes
Apr 12, 2024
The previous approach from #1196 was not correct when using virtual host, because AUTHENTICATION_PATH is not usable in virtual host contexts. This uses a different approach, by making the js and css path subscribers take care of generating the URLs with the authentication path prepended using request API aware of virtual hosting.
/++resource++zmi/logo/ and /++resource++logo/ is the same folder on disk, the former is protected by Manage portal and the later is public. Protected resources were problematic, because we want to serve them from the root, but the manager user might not have permission on the root.
Using this approach we serve a resource relative to the path where user is authenticated.
perrinjerome
force-pushed
the
perrinjerome/fix-zmi-user-path
branch
from
April 14, 2024 14:31
fd73b7d
to
1a4b3e4
Compare
dataflake
previously approved these changes
Apr 19, 2024
mauritsvanrees
previously approved these changes
Apr 19, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work. Thanks!
One small inline suggestion, but that is not a problem caused by this PR, so I approve.
This was referencing an old URL. Co-authored-by: Maurits van Rees <[email protected]>
perrinjerome
dismissed stale reviews from mauritsvanrees and dataflake
via
April 24, 2024 02:59
d8a7054
after applying the suggestion of fixing bootstrap url in copyright page, your approvals became "stale", so I had to ask review again. |
mauritsvanrees
approved these changes
Apr 24, 2024
Thanks you ! |
This was referenced Apr 29, 2024
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.
Fixes #1203