Bug fix : Create Organization is failing because the user is read from the session and not from the repository. Now reading the user at appropriate places.
See merge request theappsmith/internal-tools-server!405
Add server-side templates support for plugins
Two main themes in this MR:
1. Add support for saving query templates as resource files inside a plugin. This has been done for both Postgres and MongoDB plugins, based on current template contents.
2. Loading of form JSON is now reactive. The blocking call has been moved inside a `Mono.fromSupplier`.
3. The loading of from JSON as well as the templates is cached and are loaded on-demand. This means that the templates are loaded once for a plugin through the lifetime of the server process, and that they are loaded only at the first time they are needed.
4. If loading of these resources fails, we try again when they are needed the next time.
See merge request theappsmith/internal-tools-server!385
Make NO_SSL the default for Mongo datasources
Currently, the default option for SSL for Mongo datasources is self signed certificate. This is unintuitive and so this MR changes it to No SSL, as well as moving the "No SSL" option to the top in the dropdown.
Requested by Nikhil.
See merge request theappsmith/internal-tools-server!402
Fixing SSO authentication for new ACL flows
This MR fixes the following:
1. The `User` class implements OidcUser interface that is required by Spring security for OAuth2 login
2. Simplifying the SessionUserService to not query from the MongoDB for each request
3. Modifying the AnalyticsService to log the username instead of the id in Segment.
4. Adding custom user token response classes `CustomOidcUserServiceImpl`, `CustomOAuth2UserServiceImpl` and `CustomFormLoginServiceImpl`. These classes convert the OAuth2 response tokens into User objects before persisting them in SecurityContext.
See merge request theappsmith/internal-tools-server!400
Hacky solve for setting the action execution request in case of failures in URL/HTTP Method/etc.
See merge request theappsmith/internal-tools-server!399
Bug Fix : Application and page can only be deleted if you have manage application/page permissions respectively.
See merge request theappsmith/internal-tools-server!395
Invite User to Organisation : Throw a bad request error in case all the invite dto fields are not set.
See merge request theappsmith/internal-tools-server!393
In case a page is opened in edit mode, it should open with permission of MANAGE_PAGE. In case the user is a viewer, the page must not open.
See merge request theappsmith/internal-tools-server!392
Adding the widget names set to the default layout for a page
During action name refactor, we require the widget names to exist in the layout. Hence all default layouts must have the widgetName set.
See merge request theappsmith/internal-tools-server!387
Bug fix for forgot password error "user not found". During reset password, the user is not logged in and hence the permissions can not be applied during repository findByEmail
See merge request theappsmith/internal-tools-server!381