From caf3fd2cd669f19c11180e3294dd26aa9eeae667 Mon Sep 17 00:00:00 2001 From: Cory Hawklvelt Date: Sun, 26 Apr 2026 00:11:47 +0930 Subject: [PATCH] feat: add branded OAuth callback screen with auto-close to CLI client --- client/gatehouse-cli.py | 94 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 90 insertions(+), 4 deletions(-) diff --git a/client/gatehouse-cli.py b/client/gatehouse-cli.py index 7192475..97c4505 100755 --- a/client/gatehouse-cli.py +++ b/client/gatehouse-cli.py @@ -49,10 +49,96 @@ class MyServer(BaseHTTPRequestHandler): self.send_response(200) self.send_header("Content-type", "text/html") self.end_headers() - self.wfile.write(bytes("OIDC Workflow Tool", "utf-8")) - self.wfile.write(bytes("

The token has been received

", "utf-8")) - self.wfile.write(bytes("

You may now close this window.

", "utf-8")) - self.wfile.write(bytes("", "utf-8")) + html_content = """ + + + + + Authentication Successful - Gatehouse + + + + + +
+
+ + + +
+

Authentication Complete

+

You can now return to the terminal.

+

If this window doesn't close automatically, you can close it manually.

+
+ + +""".format(SIGN_URL=SIGN_URL) + self.wfile.write(bytes(html_content, "utf-8")) parsed_url = urlparse(self.path) query_data = dict(parse_qsl(parsed_url.query))