Forum Academy Marketplace Showcase Pricing Features

New Plugin: JSON Web Tokens

We’ve released a new plugin: JWT

This plugin allows you generate Json Web Tokens (JWTs) within your Bubble application. These are often used to authenticate with third party applications/APIs. The plugin runs on the server an allows you to generate and sign JWTs for the following algorithms: HS256,HS384,HS512,RS256,RS384,RS512,ES256,ES384,ES512

You can set the payload of the JWT, the expiration time, time before it becomes valid and the secret key to sign the JWT. For the RSA and ECDSA algorithm you will have to use an encoded private key. You also have access to the “Verify JWT” action which allows you to decode and check the validity of a JWT.

For a demo of this Plugin please visit: https://anticodepluginsnew.bubbleapps.io/version-test/jwtgenerate

For a demo of this plugin in the Bubble editor please visit: Anticodepluginsnew | Bubble Editor

Plugin page: Json Web Token Plugin | Bubble

Cheers,
Noel

4 Likes

Hi @Anticode - this is (almost) exactly what I need - is it possible to remove the requirement to have expiry?

The use case is Stream’s API: https://getstream.io/docs_rest/ which won’t accept the expiries in the payload.

Eg, the payload it wants is the pure payload:

But the plugin is adding 3 extra fields:

Sure no problem, give us 5 minutes and we’ll push an update. :grinning:

1 Like

Done! The update is live. There are 2 actions: 1 with the expiry date and notbefore date and one without.

Cheers,
Noel

2 Likes

That is a whole new level of service - thanks guys!

2 Likes

Hi Noel,

I’ve managed to have a look at this - unfortunately, it’s still including an additional field “iat”:

Is it possible for it solely to use the payload given?

Hi,

we just released another update that fixes this. the IAT field is now removed.

Cheers,
Noel

2 Likes

Setup Video Tutorial: Generate and Verify Json Web Tokens in Bubble.io - YouTube

1 Like

Thank you for this plugin. Going to use this when I setup my jitsi server + other services.

2 Likes