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

Fix prompting login for public pages issue #792

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yasima-csiro
Copy link
Contributor

Copy link
Contributor

@adam-collins adam-collins left a 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('') }}
Copy link
Contributor

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/*') }}
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants