auth-server-sample
auth-server-sample copied to clipboard
Just updated with some problems I had with the tutorial
Thanks for the write up btw, learned alot
Great tutorial and helpful pull request.
Few typos/updates/suggestions to get things running:
-
Deploy command should be --trigger-http and --runtime=nodejs14 (or swap 14 for more recent version). When deploying need to agree to unauthorised access to the function.
-
The property with ac-enabled should have client-id as sample-ac-client (not a repeat of sample-ropc-client) and have the client-secret property set
-
The sample-acpkce-client has https://www.google.com as its client-secret value instead of sample-client-secret.
-
The POST commands should have the url in double quotes (at least for windows)
-
PKCE example: Verifier is mis-spelt as verfier.
-
Resource Owner example: username=sample-user not sample-username.
-
PUG file needs updating with GCP region and project values before deployment.
-
To generate pem key files you can use openssl on command line as:
openssl genrsa -aes256 -out priv.pem 4096 openssl rsa -in priv.pem -pubout > public.pem openssl rsa -in priv.pem -out private.pem
Last step is needed to remove passphrase which will cause tutorial to fail.
Thanks for feedback and if it was more fitting when it was provided, Id love to take it on, unfortunately this is so old that I have no recollection of what it really is. So I would choose to close it. But if this is something you want to update and merge, sure thing.
As the owner Il let you decide
I’ve commented on the medium article as well, if anyone else picks this up and wants to follow it.