This commit is contained in:
jay brown
2025-04-24 13:28:49 -07:00
parent e55585bae1
commit 525d3e0b7b
9 changed files with 305 additions and 67 deletions
+3 -7
View File
@@ -2,12 +2,8 @@
All cognito related research code here. Not suitable for production. Only for confirming things
work before placing them in the library.
## Jwtstuff
Contains just code for low level jwt operations.
Generate the private and public keys then run `go run main.go` to execute the jwtstuff code.
## cognito_test
This is the harness to demonstrate running all of the cognito auth and RBAC in a simple standalone
main.go. This is standalong documentation for the library contained in `internal/cognitoauth`.
running main will print out the token which you can decode with https://fusionauth.io/dev-tools/jwt-decoder manually.
# Generation of test private and public key for testing
openssl genpkey -algorithm RSA -out private_key.pem
openssl rsa -pubout -in private_key.pem -out public_key.pem