× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I thought I had written some SQL JWT code for the IBM i but it was for MariaDb, but you might find something useful here anyway https://bitbucket.org/fathert/mariadb-jwt/src/master/ there are a few syntax differences with the JSON functions (e.g. json_extract() is json_query() etc. when you need to pluck out values from the JWT) and in 7.4 there are some equivalent HASH_SHA***() functions on the IBM i to replace the ones I have used. I tested this code here https://jwt.io/ when I wrote it but I ended up not using JWTs for my app because I didn't like the fact that they can't be revoked from the server side.

One thing to note regarding your base-64 question, the base-64 in a JWT is URL compliant, so has some characters from normal base-64 replaced with URL compliant ones and also, the trailing = signs can be truncated which messes up some decoders, so my code adds them back.

Tim.


________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of B Stone <bvstone@xxxxxxxxx>
Sent: 06 February 2020 21:59
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Creating/Verifying/Decoding JWT on IBM i

Are they only using base64 or do they allow other algorithms? Looking for
mainly decoding to get the payload. I didn't really find any example of
that.

I can handle base64, it's if any other algorithms are used that would make
it a little trickier. I can do it in node if I have to, though.


On Thu, Feb 6, 2020 at 2:40 PM Niels Liisberg <nli@xxxxxxxxxxxxxxxxx> wrote:

You can take a look at the ILEastic project.

There is a jet example made in RPG

https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsitemule%2FILEastic&amp;data=02%7C01%7C%7C6b48aea02a9849d29cfa08d7ab478a5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637166196055843451&amp;sdata=PW7m20A%2BkV9mZ03Hb%2FLPv2MRSOElSgEC2gytpzJq9Y0%3D&amp;reserved=0



tor. 6. feb. 2020 kl. 17.57 skrev B Stone <bvstone@xxxxxxxxx>:

Besides OSS or Java, has anyone run across anything that works with JWTs
on
the IBM i? C, RPG, SQL, etc?

Thanks!

Bradley V. Stone
https://nam04.safelinks.protection.outlook.com/?url=www.bvstools.com&amp;data=02%7C01%7C%7C6b48aea02a9849d29cfa08d7ab478a5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637166196055853462&amp;sdata=8CSbHRNwCENqSTPkhFtHGvGbEr815MgdCtGcCfgUE3g%3D&amp;reserved=0
MAILTOOL Benefit #3 <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.bvstools.com%2Fmailtool.html&amp;data=02%7C01%7C%7C6b48aea02a9849d29cfa08d7ab478a5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637166196055853462&amp;sdata=qIZlLZypdMFcp2K4ZxSy8MFS8CVq6vp%2BMpJuxDvt7p0%3D&amp;reserved=0>: No 400
byte
or less message limit as with SNDDST or SNDSMTPEMM.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&amp;data=02%7C01%7C%7C6b48aea02a9849d29cfa08d7ab478a5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637166196055853462&amp;sdata=AdlNaNiluGGwTyiJaHZH1QpQxOWiwquXi0zmEZK1dUo%3D&amp;reserved=0
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&amp;data=02%7C01%7C%7C6b48aea02a9849d29cfa08d7ab478a5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637166196055853462&amp;sdata=WeZTd%2B61naXxnhWtaHpjeNBARYy4cOdhqrQ5zC0UU5k%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com&amp;data=02%7C01%7C%7C6b48aea02a9849d29cfa08d7ab478a5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637166196055853462&amp;sdata=zMnETygHf0iSTr68wWTDrEQhgMB6UwzkA%2F8clYqr0yU%3D&amp;reserved=0

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&amp;data=02%7C01%7C%7C6b48aea02a9849d29cfa08d7ab478a5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637166196055853462&amp;sdata=AdlNaNiluGGwTyiJaHZH1QpQxOWiwquXi0zmEZK1dUo%3D&amp;reserved=0
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&amp;data=02%7C01%7C%7C6b48aea02a9849d29cfa08d7ab478a5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637166196055853462&amp;sdata=WeZTd%2B61naXxnhWtaHpjeNBARYy4cOdhqrQ5zC0UU5k%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com&amp;data=02%7C01%7C%7C6b48aea02a9849d29cfa08d7ab478a5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637166196055853462&amp;sdata=zMnETygHf0iSTr68wWTDrEQhgMB6UwzkA%2F8clYqr0yU%3D&amp;reserved=0

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&amp;data=02%7C01%7C%7C6b48aea02a9849d29cfa08d7ab478a5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637166196055863473&amp;sdata=%2FRwZyJyF8X3UCRoqbVJSrGLRSegCY1DPIMuGqPpxtf8%3D&amp;reserved=0
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&amp;data=02%7C01%7C%7C6b48aea02a9849d29cfa08d7ab478a5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637166196055863473&amp;sdata=Zm004qzKeQpJggbwR5r7mBz02zF9bKZmOU2%2FHMjoClw%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com&amp;data=02%7C01%7C%7C6b48aea02a9849d29cfa08d7ab478a5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637166196055863473&amp;sdata=6BFwr0MZgGGUDTlDYZRFFsKhyrYnWjDOeUvfUsXa3DE%3D&amp;reserved=0

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.