Skip to content

Commit

Permalink
Merge pull request #88 from megaport/fix/staging-auth-url
Browse files Browse the repository at this point in the history
fix: change staging oauth token url
  • Loading branch information
MegaportPhilipBrowne authored Jan 13, 2025
2 parents 28e450e + 1aa5372 commit bd4b4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func (c *Client) Authorize(ctx context.Context) (*AuthInfo, error) {
if c.BaseURL.Host == "api.megaport.com" {
tokenURL = "https://auth-m2m.megaport.com/oauth2/token"
} else if c.BaseURL.Host == "api-staging.megaport.com" {
tokenURL = "https://oauth-m2m-staging.auth.ap-southeast-2.amazoncognito.com/oauth2/token"
tokenURL = "https://auth-m2m-staging.megaport.com/oauth2/token"
} else {
return nil, errors.New("unknown API environment")
}
Expand Down

0 comments on commit bd4b4d3

Please sign in to comment.