The custom PAS plugin implements IExtractionPlugin, IAuthenticationPlugin and IUserFactoryPlugin using an external identity provider running the authentication and providing user data.
User data (user id, fullname, email) are stored in the custom PAS plugin by using IPropertiesPlugin via an OOBTree.
How to display the fullname stored in the plugin storage in personal bar viewlet?
Personal bar viewlet makes use of portal membership tool to get the member info:
... membership = getToolByName(context, 'portal_membership') member_info = membership.getMemberInfo(userid) ... if member_info: fullname = member_info.get('fullname', '')
The user authenticated via the custom PAS plugin is not a portal member, so the viewlet falls back to the user id.
Is it a proper way to render the fullname in the viewlet to customize the viewlet and make use of the plugin's user properties?
Is there another / better way to render the fullname in the viewlet?