Member-only story
Building a simple Express server with JWT authentication for iFormBuilder API
iFormBuilder provides a vast and mature API set for managing all your data. Due to security concerns, the API does not allow Cross-Origin Resource Sharing (CORS). In order for your front-end to access data within iFormBuilder, a simple server is required.
Below is a simple express server that will provide access to your front-end.
STEP 1: Obtain Client_key and Client_secret from iFormBuilder Admin Portal
Under the [Company] menu, select [API Apps]. You have to be a company admin to have access to this menu.
Then click on [New Client] to create a new API client. Give your client a name, and make sure you select JWT as the authentication type.
Next, you will need to select which user should have API access. When you code authenticates using the client_key and client_secret, the code will inherit all the rights from this user. As a…