This is a Proof of Concept(POC) for how to do licensing with a JWT in the Make iPaaS environment.
Generator: There you will find example code to generate an JWT see for more details Generator
Make: There are all parts which are used in Make to verify the JWT see for more details Make
Make/MyApp: Is a example App export from Make for more details MyApp
Adapt the three constants lifetime
, host
and secret
to your needs.
The constant lifetime
is what you can already guess by the name the lifetime of the JWT.
Host
is the part of the url which should be contained in the url later on for the verification.
The secret
contains the string which is used to encrypt the JWT.
Contains a simple representation of the Make IML Functions to make it possible to test the JWT without a Make Connector.
Only edit the two constants jwtValue
, secret
and host
.
The jwtValue
is the JWT which was generated and should be verified.
Secret
contains the string which is used for the verify encryption to check the validity of the JWT.
The host
constant represent a url where the host from the generation is contained or not.
When there isn't the host contained the JWT is invalid.
All functions in this file are the same like in the make MyApp example.
Configure first the Make app SDK further information how to under https://docs.integromat.com/apps/apps-sdk
Request for your developer account the IML Functions https://docs.integromat.com/apps/app-structure/iml-functions because these are disabled by default and
without it isn't possible to use the example.\
After that import the backup with the Import App in Visual Studio Code.