psjwt icon indicating copy to clipboard operation
psjwt copied to clipboard

PowerShell Module for JWT (JSON Web Tokens)

psjwt

PowerShell Module for JWT (JSON Web Tokens)

Installation

You can install the PowerShell module using the PowerShell Gallery.

Install-Module -Name psjwt

Library

The PowerShell Module is using the Jwt.Net library.

This library supports generating and decoding JSON Web Tokens.

JSON Web Tokens

From Wikipedia:

JSON Web Token (JWT) is a JSON-based open standard (RFC 7519) for creating access tokens that assert some number of claims. For example, a server could generate a token that has the claim "logged in as admin" and provide that to a client. The client could then use that token to prove that it is logged in as admin. The tokens are signed by one party's private key (usually the server's), so that both parties (the other already being, by some suitable and trustworthy means, in possession of the corresponding public key) are able to verify that the token is legitimate. The tokens are designed to be compact, URL-safe, and usable especially in a web-browser single-sign-on (SSO) context. JWT claims can be typically used to pass identity of authenticated users between an identity provider and a service provider, or any other type of claims as required by business processes. JWT relies on other JSON-based standards: JWS (JSON Web Signature) RFC 7515 and JWE (JSON Web Encryption) RFC 7516

Change log

  • 16-05-2020

    Version 1.0.5 - Fixed typo for extra help info added in version 1.0.4

  • 16-05-2020

    Version 1.0.4 - Updated JWT Library to version 7.2.0 - Extra help info added for ConvertFrom-JWT function

  • 10-05-2020

    Version 1.0.3 - Updated help files

  • 10-05-2020

    Version 1.0.2 - Updated JWT library to 7.1.0 - Added support for extra header info

  • 05-05-2020:

    Version 1.0.1 - Updated JWT package to latest version.

  • 31-12-2018:

    Version 1.0.0 - Changed from Pre-release version to Release version.

  • 27-12-2018:

    Version 0.0.4 - Updated Build tasks

  • 25-12-2018:

    Version 0.0.3 - Created Alpha version

  • 25-11-2018:

    Version 0.0.2 - Function ConvertTo-JWT added

  • 24-11-2018:

    Version 0.0.1 - Function ConvertFrom-JWT added