GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Netstyle/JSONWebToken: A pharo implementation of JSON web token (JWT)

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

59 Commits
59 Commits

Folders and files

NameName
Last commit message
Last commit date
scripts
scripts
 
 
source
source
 
 
.gitattributes
.gitattributes
 
 
.project
.project
 
 
.smalltalk-legacy.ston
.smalltalk-legacy.ston
 
 
.smalltalk.ston
.smalltalk.ston
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

JSONWebToken for Pharo

Build Status

Overview

Implementation of a JSON web token following RFC 7519 for Pharo.

Installation

For pharo9 and above use

Metacello new
      baseline:'JSONWebToken';
      repository: 'github://noha/JSONWebToken:pharo9-openssl1.1/source';
      load

For pharo8 and below use

Metacello new
      baseline:'JSONWebToken';
      repository: 'github://noha/JSONWebToken:master/source';
      load

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 key: 'foobar'.
	
	tokenString := jws compactSerialized.
	materialized := JsonWebSignature materializeCompact: tokenString key: 'foobar'.
	self assert: jws equals: materialized

Further Infos

  • JWT, JWS and JWE for Not So Dummies!

About

A pharo implementation of JSON web token (JWT)

Resources

Readme
License
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.