Last active
January 17, 2022 13:22
-
-
Save tnishimura/e9d5c5e8b384830ae62612a24f2db936 to your computer and use it in GitHub Desktop.
Example tokens to be used with the samples in "JWT Authentication and Authorization for your Giraffe API" at https://carpenoctem.dev/blog/jwt-authentication-authorization-giraffe-api-server-fsharp/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Below are two tokens to be used with the article "JWT Authentication and Authorization for your | |
# Giraffe API" at https://carpenoctem.dev/blog/fsharp-giraffe-jwt-auth/ | |
# {"alg":"HS256","typ":"JWT"} | |
# { | |
# "CustomClaim": "value", | |
# "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": "Jane Adminton", | |
# "http://schemas.microsoft.com/ws/2008/06/identity/claims/role": "Admin", | |
# "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/dateofbirth": "2003/10/31", | |
# "exp": 1705468508, | |
# "iss": "https://certificateissuer.example.com/", | |
# "aud": "https://backendserver.example.com" | |
# } | |
export ADMIN_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJDdXN0b21DbGFpbSI6InZhbHVlIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6IkphbmUgQWRtaW50b24iLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJBZG1pbiIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL2RhdGVvZmJpcnRoIjoiMjAwMy8xMC8zMSIsImV4cCI6MTcwNTQ2ODUwOCwiaXNzIjoiaHR0cHM6Ly9jZXJ0aWZpY2F0ZWlzc3Vlci5leGFtcGxlLmNvbS8iLCJhdWQiOiJodHRwczovL2JhY2tlbmRzZXJ2ZXIuZXhhbXBsZS5jb20ifQ.kDUqyb_GtBAKmgSAtMIoRClN7LYSgOx_Ww8_KXKZykE | |
# {"alg":"HS256","typ":"JWT"} | |
# { | |
# "CustomClaim": "value", | |
# "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": "Rodrigo von Userton", | |
# "http://schemas.microsoft.com/ws/2008/06/identity/claims/role": "User", | |
# "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/dateofbirth": "1995/02/23", | |
# "exp": 1705469504, | |
# "iss": "https://certificateissuer.example.com/", | |
# "aud": "https://backendserver.example.com" | |
# } | |
export USER_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJDdXN0b21DbGFpbSI6InZhbHVlIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6IlJvZHJpZ28gdm9uIFVzZXJ0b24iLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJVc2VyIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvZGF0ZW9mYmlydGgiOiIxOTk1LzAyLzIzIiwiZXhwIjoxNzA1NDY5NTA0LCJpc3MiOiJodHRwczovL2NlcnRpZmljYXRlaXNzdWVyLmV4YW1wbGUuY29tLyIsImF1ZCI6Imh0dHBzOi8vYmFja2VuZHNlcnZlci5leGFtcGxlLmNvbSJ9.bnxqzS91WmBshqeLZPbo76PxqTRnKPoyzuDEHT33sRs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment