To provide maximal flexibility, the Loginapp REST UI SDK allows adding of entire pages written completely in JavaScript. This mechanism should be chosen with care since it also comes with additional costs and complexity.
- However, there are reasons why it might be necessary to write a page using JavaScript:
- For custom server-side flow steps that require a front-end that cannot be done using the Configurable Step UI Config plugin UI in IAM's server-side configuration.
- For existing product pages that have to be altered in a way such that the mechanism provided for Customizing an existing product page using the Loginapp REST UI SDK is insufficient.
On top of all API methods defined for Customizing an existing product page using the Loginapp REST UI SDK, this method provides additional API methods for custom pages.
While writing custom pages in JavaScript is very powerful, it also comes with additional responsibilities: rendering the page's HTML, handling form input and validation, dealing with button clicks and interacting with the back-end must be implemented individually. Therefore, choose this option only if needed and make sure to have a good understanding of JavaScript.
To avoid problems with caching, it is recommended to use SASS whenever possible.