Hi @zopyx and anyone that can help me
I am working with the addon "zopyx.usersascontent" to create a user profile as a content type, this plugin has an adapter class called "RedirectAfterLoginAdapter", which redirects the user after login to create a content type" PloneUser" inside a folder content type called "PloneUserFolder".
My requirement is to enable this behavior before it works with an external user from a login with a "pas.plugins.oidc" connection from a Keycloak server with version 22.0.5.
Analyzing the "zopyx.usersascontent" addon
It works correctly with the following use cases:
Plone users with "Member" roles
-
When Plone users with "Member" role log in, the "Authenticated" role is granted, i.e. it creates a content type "PloneUserFolder" folder named "users" in the root directory of the website.
-
Create the "PloneUser" content type correctly.
It does not work correctly with the following use case:
External users connected with the "pas.plugins.oidc" addon
-
When external users connect using the "pas.plugins.oidc" addon it does not have the "Member" role when logging in, it only has the "Authenticated" role, i.e. it does not create a content type folder "PloneUserFolder" called " users" in the root directory of the website.
-
Does not create the "PloneUser" content type correctly.
My Versions are:
-
Plone (Classic UI) 6.0.7 (6018)
-
CMF 3.2
-
Zope 5.8.5
-
Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]
-
PIL 9.5.0 (Pillow)
-
WSGI: On
-
Server: waitress 2.1.2
My Addons extra are:
-
pas.plugins.oidc = 1.0.0
-
zopyx.usersascontent = master branch
-
python-keycloak = 3.9.1