Proof-of-concept Azure functions written in PowerShell that demonstrate creation and validation of JSON Web Tokens as well as JSON Web Keys via the PSJsonWebToken PowerShell module.
An Azure function app and the PSJsonWebToken PowerShell module.
The three PowerShell scripts in this repository represent three different Azure functions. Brief explanation of each below.
Takes an API key and if valid, returns a JSON Web Token. The API key, private key to sign the JWT and claims for the token should be in Azure Key Vault.
Takes a JWT and validates it against a JWK set URI found in the configuration settings for the Azure function app.
Looks to the configuration settings for a JWK set URI and adds our own JWK to this collection. This is potentially useful in the case where a service provider can only validate JSON Web Tokens against a single JSON Web Key set URI.