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

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. Run the demo (Windows PowerShell: $env:PEOPLE_CLIENT_ID="dev_..." instead of export):

   # Go 1.21+, standard library only
   
   export PEOPLE_CLIENT_ID=dev_xxxxxxxxxxxxxxxxxxxx
   export PEOPLE_KEY_FILE=device-private.pem
   
   go run . john.chen@advantech.com sales

Full reference: https://ae-sso.advantech.com/developers/people
