p1-cli@0.3.2
·
2 commits
to main
since this release
Patch Changes
-
#29
e92817cThanks @ryanbas21! - Automatic API endpoint detection from stored credentials regionThe CLI now automatically determines the correct API URL based on the region specified during
auth login, eliminating the need to manually setPINGONE_API_URLfor non-default regions.Changes:
getApiBaseUrl()now uses 3-tier priority:PINGONE_API_URLenv var > stored credentials region > default- Automatically extracts region from stored credentials'
tokenEndpoint - Supports all regions: North America (com), Europe (eu), Asia Pacific (asia), Canada (ca)
- Fixes 401 errors when using Canada, Europe, or Asia Pacific regions without explicit configuration
What this means for users:
- Just run
p1-cli auth login --region="ca"and the CLI automatically useshttps://api.pingone.ca/v1 - No need to manually set
PINGONE_API_URLenvironment variable anymore - Seamless multi-region support out of the box