-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: updating Konnect auth logic to properly handle geo rewrites (#146)
As Konnect's authorization service is not deployed across all regions, the global endpoint is used for certain API calls. When the organization info is fetched, the hostname within the provided base URL is then rewritten to the relevant global endpoint. This rewrite logic was unable to handle any number of geos, relying on hard coded logic instead for specific geos. This logic has been updated to allow callers of this library to talk to multiple geos; this includes new geos that may not exist as of this writing.
- Loading branch information
Showing
2 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters