Advantech People & Groups API - Go client
SSO: https://sso.advantech.world

1. Create the device key on the server that will call the API (keep the private key there):

   openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 -out device-private.pem
   openssl pkey -in device-private.pem -pubout -out device-public.pem

2. Send device-public.pem, the server's IP address and the data you need to the SSO
   administrator. You receive the device Client ID (dev_...).

3. Write the Client ID in people.env (PEOPLE_CLIENT_ID=dev_...). The SSO address is already there.
   Environment variables of the same name win over the file.

4. Run the demo:

   # Go 1.21+, standard library only
   
   # put your device Client ID in people.env:  PEOPLE_CLIENT_ID=dev_...
   
   go run . john.chen@advantech.com sales

   Who can receive mail (needs the recipients.search permission): put  recipients jay
   after the run command instead of the e-mail address and keyword.

   VS Code: open this folder, Run and Debug (F5) - .vscode/launch.json is ready and reads people.env.

Full reference: https://sso.advantech.world/developers/people
