Release Notes > 5.41.4
Webiny 5.41.4 Changelog
See what's new in Webiny version 5.41.4
Security
Cognito Federation: Fixed Handling of Identity's Groups and Teams Properties (#4418)
When using Cognito Federation, via the getIdentity
callback, developers have the ability to customize the identity object.
This is useful when you need to add additional properties to the identity object, such as groups or teams, which can then be used for authorization purposes.
But, there was an issue with how the identity’s groups and teams-related properties were handled. Previously, only the group
property was handled. Now, all of the following properties are handled:
group
groups
team
teams
This change ensures that the identity object is correctly processed, and that the groups and teams properties are correctly loaded and used for authorization purposes.
Fixed Loading of Teams When Using 3rd Party IdPs (#4419)(#4420)
When using 3rd party IdPs, such as Okta or Cognito Federation, and using the getIdentity
callback to customize the identity object, assigning teams to the identity object was not working correctly.
More specifically, resolving security roles from teams that were created via the Admin app was not working as expected. On the other hand, teams that were define programmatically were working as expected.
This issue has been fixed, and now, when using the getIdentity
callback, teams are correctly loaded and assigned to the identity object.
Page Builder
New "Page Builder Element" Extension (#4342)
We’ve introduced a new type of an extension called Page Builder element extension.
Once run, the extension will make sure a users ends up with all of the required files and configurations for a new Page Builder element plugin. This will make it easier for users to start developing new Page Builder elements.
The extension can be accessed like any other extension, via the webiny extension
command, by then selecting Page Builder Element from the list of all available extensions.
New Page Element Plugins (#4340)
In order to be more in line with the new Page Builder element extension, and also some of the best practices we’ve been pushing lately, we’ve updated the existing Page Builder element plugins. Essentially, instead of using plain JavaScript objects, users will now do the same via React components.
Note that the previous way of creating Page Builder element plugins will still work, but moving on, we recommend using the new way.
Our existing Create a Custom Page Element article has been updated to reflect these changes.