Skip to content

Fix prompting login for public pages issue#792

Open
yasima-csiro wants to merge 1 commit intomasterfrom
feature/fix_public_pages_issue
Open

Fix prompting login for public pages issue#792
yasima-csiro wants to merge 1 commit intomasterfrom
feature/fix_public_pages_issue

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.

{% 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.

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