comp.lang.ada
 help / color / mirror / Atom feed
* JSON Web Tokens
@ 2017-10-08 18:12 joakimds
  2017-10-08 19:51 ` Dmitry A. Kazakov
  2017-10-11 20:26 ` stephane.carrez
  0 siblings, 2 replies; 3+ messages in thread
From: joakimds @ 2017-10-08 18:12 UTC (permalink / raw)


Hi!

I was surfing the net and found something called JSON Web Tokens. It seems there is support for it in many programming languages but not Ada. Does anybody know of any Ada support?

https://jwt.io/

Best regards,
Joakim

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: JSON Web Tokens
  2017-10-08 18:12 JSON Web Tokens joakimds
@ 2017-10-08 19:51 ` Dmitry A. Kazakov
  2017-10-11 20:26 ` stephane.carrez
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry A. Kazakov @ 2017-10-08 19:51 UTC (permalink / raw)


On 2017-10-08 20:12, joakimds@kth.se wrote:

> I was surfing the net and found something called JSON Web Tokens. It
> seems there is support for it in many programming languages but not Ada.

It is a web-programming issue. Why there should be Ada support?

> Does anybody know of any Ada support?

Specifically for the Simple Components' HTTP server, there was no 
request to implement any of various authorization schemes, e.g. for 
Gnoga. It would be quite simple to implement JWT if anybody actually 
needed it...

P.S. I think that in some cases Gnoga just keeps the session alive, so 
that no authorization token is ever needed.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: JSON Web Tokens
  2017-10-08 18:12 JSON Web Tokens joakimds
  2017-10-08 19:51 ` Dmitry A. Kazakov
@ 2017-10-11 20:26 ` stephane.carrez
  1 sibling, 0 replies; 3+ messages in thread
From: stephane.carrez @ 2017-10-11 20:26 UTC (permalink / raw)


Hi!

Le dimanche 8 octobre 2017 20:12:53 UTC+2, joak...@kth.se a écrit :
> Hi!
> 
> I was surfing the net and found something called JSON Web Tokens. It seems there is support for it in many programming languages but not Ada. Does anybody know of any Ada support?
> 
> https://jwt.io/
> 
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-11 20:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-08 18:12 JSON Web Tokens joakimds
2017-10-08 19:51 ` Dmitry A. Kazakov
2017-10-11 20:26 ` stephane.carrez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox