Mega Search
23.2 Million


Sign Up

Make a donation  
JSON Web Token  
News Group: embarcadero.public.delphi.internet.winsock

Hi,

Are there Delphi classes to help create a JSON Web Token ?
Or third party functions, etc?

Any help would be appreciated.

Thanks,
Joe

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 28-Nov-2014, at 1:09 PM EST
From: Joe Sansalone
 
Re: JSON Web Token [Edit]  
News Group: embarcadero.public.delphi.internet.winsock
> {quote:title=Remy Lebeau (TeamB) wrote:}{quote}
> Joe wrote:
> 
> > Are there Delphi classes to help create a JSON Web Token ? Or
> > third party functions, etc?
> 
> JSON itself has no concept of tokens, so what specific protocol you are actually 
> trying to use that utilizes JSON for its data formatting?
> 
> --
> Remy Lebeau (TeamB)


I need to encapsulate information (claims) in JSON format with encryption etc using this new "JSON Web Token" specification (uses JSON Web Signature)
here's a link:  http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html

Here's a more straightforward description: http://jwt.io  

It's then used in a VoIP (SIP) mobile client to communicate to a server.  The token is good for some default period of time. 
The purpose is to avoid having the mobile client contain the username/password for an HTTPS cloud service (Twilio).

This is new to me.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 28-Nov-2014, at 5:54 PM EST
From: Joe Sansalone
 
Re: JSON Web Token  
News Group: embarcadero.public.delphi.internet.winsock
Joe wrote:

> Are there Delphi classes to help create a JSON Web Token ? Or
> third party functions, etc?

JSON itself has no concept of tokens, so what specific protocol you are actually 
trying to use that utilizes JSON for its data formatting?

--
Remy Lebeau (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 28-Nov-2014, at 3:31 PM EST
From: Remy Lebeau (TeamB)