Skip to content

Add configurable redirect port for SSO and login OAuth flows - #10636

Open
ashovlin wants to merge 1 commit into
v2from
redirect-port
Open

ashovlin wants to merge 1 commit into
v2from
redirect-port

Conversation

@ashovlin

Copy link
Copy Markdown
Member

Issue #, if available: #9148, #10433

Description of changes: This begins addressing redirect port configurablity by adding --redirect-port to:

  1. aws login
  2. aws sso login
  3. aws configure sso

It pulls from some open PRs:

  1. [v2] Add redirect port option to sso login #10462 - SSO, but not login
  2. Allow SSO OAuth callback port override #10134 - adds host override as well, which I still need to think through security implications of
  3. fix: UTF-8 encoding for MCP config files (#10452) and --redirect-port for sso login (#10433) #10456 - bundled with an unrelated encoding fix

I still think we should work towards a profile config option, but that triggers more internal work (amending spec so AWS Tools for PowerShell honors it too, dev guide updates), so starting with this.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ashovlin
ashovlin requested a review from a team as a code owner September 14, 2026 02:35

def _get_available_port():
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.bind(('', 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants