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

Plone 6 and pas.plugin.oidc compatibility #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

damilgra
Copy link

@damilgra damilgra commented Nov 3, 2023

This change adds 'callback' as a valid ID, ensuring compatibility with pas.plugin.oidc.

Otherwise, a site configured with both iw.rejectanonymous and pas.plugin.oidc leads to a login redirect cycle.

This configuration isn't compatible with Plone 6.
When included, an error is rendered in the viewlet.
@damilgra damilgra changed the title Add 'callback' as a valid ID Plone 6 and pas.plugin.oid compatibility Nov 3, 2023
@damilgra damilgra changed the title Plone 6 and pas.plugin.oid compatibility Plone 6 and pas.plugin.oidc compatibility Nov 3, 2023
Copy link
Member

@ale-rt ale-rt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

If you have valid reasons to remove the viewlet, please do that in a separate PR.

As described by the package README, you can achieve the same result by running this code:

from iw.rejectanonymous import addValidIds
...
addValidIds('callback')

manager="plone.app.layout.viewlets.interfaces.IPortalHeader"
class="plone.app.layout.viewlets.common.PersonalBarViewlet"
permission="cmf.SetOwnProperties"
/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not see why you need to remove the personal bar viewlet

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.

None yet

2 participants