Skip to content

A fork of JSON Web Token to be used as a dependency in ba-st for GS/64 & Pharo.

License

Notifications You must be signed in to change notification settings

ba-st-dependencies/JSONWebToken

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Web Token

A fork of JSON Web Token to be used as a dependency in ba-st for GS/64 & Pharo.

The upstream branch is supposed to track the changes in the master branch of noha/JSONWebToken

The release-candidate is the branch where our changes land before releasing a version.

Pharo - Unit Tests GS64 - Unit Tests Coverage Status

Baseline Groups GS64 Components Markdown Lint

GitHub release Pharo 9.0 Pharo 10 Pharo 11

GS64 3.7.0 GS64 3.7.1

Overview

Implementation of a JSON web token following RFC 7519 for Pharo and GemStone 64

Usage

The class JSONWebTokenTest demonstrates how to encode/serialize a web signature to a token string using compact base 64 notation as well as deserialization:

testRoundtrip
  | jws tokenString materialized |
  
  jws := JsonWebSignature new
    algorithmName: 'HS256';
    payload: (JWTClaimsSet new
      at: 'bar' put: 'foo').
  jws symmetricKey: 'foobar'.
  
  tokenString := jws compactSerialized.
  materialized := JsonWebSignature materializeCompact: tokenString key: 'foobar'.
  self assert: jws equals: materialized

Further Info

About

A fork of JSON Web Token to be used as a dependency in ba-st for GS/64 & Pharo.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Smalltalk 100.0%