Advantech SSO starter kit - PHP
SSO: https://ae-sso.advantech.com

1. Ask the SSO administrator to add a service with this Redirect URI
   (請 SSO 管理員新增服務，Redirect URI 填這個)：

   https://myapp.advantech.world/sso.php?a=callback

   You get a Client ID and a Client Secret (會拿到 Client ID 與 Client Secret).
   Local test (本機測試): use http://localhost:8000 instead of https://myapp.advantech.world

2. Run (執行) - Windows PowerShell: $env:SSO_CLIENT_ID="..." instead of export

   # PHP 8+ with the curl extension
   
   export SSO_CLIENT_ID=svc_xxxxxxxx
   export SSO_CLIENT_SECRET=xxxxxxxx
   export APP_URL=https://myapp.advantech.world
   
   php -S localhost:8000
   # on Apache/nginx: copy the files to the web root and set the 3 variables
   # (Apache: SetEnv SSO_CLIENT_ID ...   nginx: fastcgi_param SSO_CLIENT_ID ...;)

3. Open (打開) https://myapp.advantech.world/ and sign in (登入).

Developer guide (開發者指南): https://ae-sso.advantech.com/developers
