Skip to content

ba-st-dependencies/JSONWebToken

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

154 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 10 Pharo 11 Pharo 12 Pharo 13

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

Contributors

Languages

  • Smalltalk 100.0%