https://github.com/anthonyg-1/psjwtmicroservices-azure
Proof-of-concept Azure functions written in PowerShell that demonstrate creation and validation of a JSON Web Token via the PSJsonWebToken PowerShell module.
https://github.com/anthonyg-1/psjwtmicroservices-azure
azure-functions jwk jwt jwt-authentication openid-connect powershell
Last synced: 8 months ago
JSON representation
Proof-of-concept Azure functions written in PowerShell that demonstrate creation and validation of a JSON Web Token via the PSJsonWebToken PowerShell module.
- Host: GitHub
- URL: https://github.com/anthonyg-1/psjwtmicroservices-azure
- Owner: anthonyg-1
- License: mit
- Created: 2021-05-29T18:45:05.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-03T16:40:39.000Z (over 1 year ago)
- Last Synced: 2025-01-11T14:46:52.034Z (9 months ago)
- Topics: azure-functions, jwk, jwt, jwt-authentication, openid-connect, powershell
- Language: PowerShell
- Homepage:
- Size: 45.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PSJwtMicroservices-azure
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.## Requirements
An Azure function app and the PSJsonWebToken PowerShell module.## Description
The three PowerShell scripts in this repository represent three different Azure functions. Brief explanation of each below.### getjwt
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.### validatejwt
Takes a JWT and validates it against a JWK set URI found in the configuration settings for the Azure function app.### jwkaggregationproxy
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.