From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.187.130 with SMTP id l124mr126035iof.129.1507753583135; Wed, 11 Oct 2017 13:26:23 -0700 (PDT) X-Received: by 10.157.88.135 with SMTP id x7mr109244otg.13.1507753583099; Wed, 11 Oct 2017 13:26:23 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!l196no769592itl.0!news-out.google.com!194ni919itf.0!nntp.google.com!l196no769590itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 11 Oct 2017 13:26:22 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=5.51.16.193; posting-account=lzjH_AoAAABq5H4FTxZ1AkonVQLbXoxB NNTP-Posting-Host: 5.51.16.193 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: JSON Web Tokens From: stephane.carrez@gmail.com Injection-Date: Wed, 11 Oct 2017 20:26:23 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2165 X-Received-Body-CRC: 2431461000 Xref: news.eternal-september.org comp.lang.ada:48429 Date: 2017-10-11T13:26:22-07:00 List-Id: Hi! Le dimanche 8 octobre 2017 20:12:53 UTC+2, joak...@kth.se a =C3=A9crit=C2= =A0: > Hi! >=20 > I was surfing the net and found something called JSON Web Tokens. It seem= s there is support for it in many programming languages but not Ada. Does a= nybody know of any Ada support? >=20 > https://jwt.io/ >=20 > Best regards, > Joakim JWT is used by OAuth 2 and OpenId connect to exchange information during authentication process. I've made an implementation of OAuth 2 client in Ada and there is some support for JWT in it. The file that deals with JWT is the following: https://github.com/stcarrez/ada-security/blob/master/src/security-oauth-jwt= .ads FYI the Ada Security library is intended to support OAuth 2 for client and server implementation. The OAuth 2 client is fully functional and can be used to connect to Google, Facebook and other OAuth 2 aware APIs. The OAuth 2 server is being almost there but it needs some example (The server side is far more complex than client side). Stephane