Skip to content

Proof of concept, how to use a JWT for licensing purpose in a IPaaS environment.

License

Notifications You must be signed in to change notification settings

DocuWare/iPaaS-POC-JWT-license-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use this POC

This is a Proof of Concept(POC) for how to do licensing with a JWT in the Make iPaaS environment.

What is in the folders

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

Generator

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.

Make

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.

Make/MyApp

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.\

Import app

After that import the backup with the Import App in Visual Studio Code.

  1. Klick on the import app button.
    import-app
  2. Select the backup zip file.
    import-app-select
  3. Give them a better name.
    import-app-give-a-name

Use JWT verify

  1. Change common secret.
    common-secret\
  2. Create scenario with the test module.\
  3. Add connection.
    create-connection
    select-connection
    3.1. Run the module with success.
    module-success
    3.2. Run Module with error.
    module-error

About

Proof of concept, how to use a JWT for licensing purpose in a IPaaS environment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published