auth-server-sample
auth-server-sample copied to clipboard
Issues with GCF/index.md
-
Deploy command should be --trigger-http and --runtime=nodejs14 (or swap 14 for more recent version). When deploying need to agree to authorised 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.