mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 08:01:51 +09:00
리팩토링
This commit is contained in:
parent
fcc0b6d2f3
commit
0d09f191c5
7 changed files with 559 additions and 141 deletions
|
|
@ -2,15 +2,19 @@ from mitmproxy import http
|
|||
import asyncio
|
||||
from pkce_check import PKCEDowngradeChecker
|
||||
|
||||
|
||||
class PKCEAddon:
|
||||
def __init__(self):
|
||||
self.checker = PKCEDowngradeChecker()
|
||||
|
||||
async def request(self, flow: http.HTTPFlow):
|
||||
print(f"[DEBUG] Processing request: {flow.request.method} {flow.request.pretty_url}")
|
||||
print(
|
||||
f"[DEBUG] Processing request: {flow.request.method} {flow.request.pretty_url}"
|
||||
)
|
||||
try:
|
||||
await self.checker.test(flow)
|
||||
except Exception as e:
|
||||
print(f"[ERROR] Addon failed: {e}")
|
||||
|
||||
|
||||
addons = [PKCEAddon()]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue