mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 12:41:52 +09:00
[수정] req,res 구분 코드
This commit is contained in:
parent
4059cc7adb
commit
568d3f0ce5
2 changed files with 37 additions and 6 deletions
|
|
@ -67,10 +67,17 @@ class ClientSecretAddon:
|
|||
self.checker = ClientSecretChecker()
|
||||
|
||||
async def request(self, flow: http.HTTPFlow):
|
||||
try:
|
||||
self.checker.request(flow)
|
||||
except Exception as e:
|
||||
print(f"[ERROR] ClientSecretAddon request failed: {e}")
|
||||
pass
|
||||
|
||||
async def response(self, flow: http.HTTPFlow):
|
||||
try:
|
||||
self.checker.response(flow)
|
||||
except Exception as e:
|
||||
print(f"[ERROR] ClientSecretAddon failed: {e}")
|
||||
print(f"[ERROR] ClientSecretAddon response failed: {e}")
|
||||
pass
|
||||
|
||||
addons = [PKCEAddon(), ScopeAddon(), CsrfAddon(), NonceAddon(), ClientSecretAddon()]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue