INNER CODE UNIT · Python

do_GET

Kounex/obs_blade · tool/kick_auth_proxy/proxy.py:335

        def do_GET(self):
            path = self.path.split("?", 1)[0]
            if path == "/health":
                self._json(200, "ok")
                return
            if path == "/oauth/done":
                self._send(200, _DONE_PAGE.encode(), "text/html; charset=utf-8")
                return
            if path != "/oauth/callback":
                self._json(404, "not_found")
                return
            if not _allow(self._client_ip()):
                self._send(429, _ERROR_PAGE.encode(), "text/html; charset=utf-8")
                return
            query = self._query()
            try:
                known = accept_callback(
                    query,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…