Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sigstore/_internal/oidc/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ def log_message(self, _format: str, *_args: Any) -> None:

def do_GET(self) -> None:
server = cast(RedirectServer, self.server)

# If the auth response has already been populated, the main thread will be stopping this
# thread and accessing the auth response shortly so we should stop servicing any requests.
if not server.active:
return None

r = urllib.parse.urlsplit(self.path)

# Handle auth response
Expand Down