auth-server-sample icon indicating copy to clipboard operation
auth-server-sample copied to clipboard

Issues with GCF/index.md

Open mshearer0 opened this issue 1 year ago • 0 comments

  1. 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.

  2. 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

  3. The sample-acpkce-client has https://www.google.com as its client-secret value instead of sample-client-secret.

  4. The POST commands should have the url in double quotes (at least for windows)

  5. PKCE example: Verifier is mis-spelt as verfier.

  6. Resource Owner example: username=sample-user not sample-username.

  7. PUG file needs updating with GCP region and project values before deployment.

  8. 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.

mshearer0 avatar Sep 24 '23 12:09 mshearer0