-
Notifications
You must be signed in to change notification settings - Fork 52
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 prompting login for public pages issue #792
base: master
Are you sure you want to change the base?
Conversation
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.
It is a nice idea but breaks pages that are designed to work with conditional content when logged in. I do not see it present in the test environment or links to the code changes also required to keep the pages working as intended.
@@ -16,7 +16,7 @@ security.cas.uriFilterPattern={{ collectory_uri_filter_pattern | default('/admin | |||
security.cas.uriFilterPattern={{ collectory_uri_filter_pattern | default('/admin,/admin/*,/collection/*,/institution/*,/contact/*,/reports/*,/providerCode/*,/providerMap/*,/dataProvider/*,/dataResource/*,/dataHub/*,/manage/*,/alaAdmin,/alaAdmin/*,/ws/ipt/scan/*') }} | |||
{% endif %} | |||
|
|||
security.cas.authenticateOnlyIfLoggedInFilterPattern={{ collectory_authenticate_only_if_logged_in_filter_pattern | default('/public/show/*') }} | |||
security.cas.authenticateOnlyIfLoggedInFilterPattern={{ collectory_authenticate_only_if_logged_in_filter_pattern | default('') }} |
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.
The removal of /public/show/* breaks the functionality of this page. There is role conditional content and without this pattern it breaks the login button that would otherwise be required to make it work.
@@ -14,7 +14,7 @@ security.cas.casServerLogoutUrl={{ auth_base_url }}/cas/logout | |||
security.cas.loginUrl={{ auth_base_url }}/cas/login | |||
security.cas.logoutUrl={{ auth_base_url }}/cas/logout | |||
security.cas.uriFilterPattern={{ biocache_hub_uri_filter_pattern | default('/admin/*,/alaAdmin/*,/download/*') }} | |||
security.cas.authenticateOnlyIfLoggedInFilterPattern={{ biocache_hub_authenticate_only_if_logged_in_filter_pattern | default('/occurrences/*,/explore/your-area,/query,/proxy/download/*,/') }} | |||
security.cas.authenticateOnlyIfLoggedInFilterPattern={{ biocache_hub_authenticate_only_if_logged_in_filter_pattern | default('/query,/proxy/download/*') }} |
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.
The removal of /occurrences/* breaks the role conditional content of occurrence pages, i.e. club view.
This is the fix for AtlasOfLivingAustralia/ala-bie-hub#117