Advantech SSO starter kit - Python / Flask
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/auth/callback

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

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

   pip install -r requirements.txt
   
   export SSO_CLIENT_ID=svc_xxxxxxxx
   export SSO_CLIENT_SECRET=xxxxxxxx
   export APP_URL=https://myapp.advantech.world
   export FLASK_SECRET_KEY=change-me-to-a-long-random-string
   
   python flask_app.py

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

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