mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 06:41:52 +09:00
open redirect
This commit is contained in:
parent
7d378fa91f
commit
8e0523e734
2 changed files with 163 additions and 34 deletions
|
|
@ -18,6 +18,8 @@ false_true_varifing_task = FalseTrueVarifingTask()
|
|||
|
||||
load_dotenv(override=True)
|
||||
|
||||
_open_redirect_checker = OpenRedirectChecker()
|
||||
|
||||
class AddonBase:
|
||||
"""
|
||||
Base class for addons.
|
||||
|
|
@ -62,8 +64,6 @@ class AddonBase:
|
|||
|
||||
return False
|
||||
|
||||
|
||||
|
||||
async def request(self, flow: http.HTTPFlow):
|
||||
if self.google_login_hint:
|
||||
await try_catch(self.google_login_hint.request(flow))
|
||||
|
|
@ -73,7 +73,7 @@ class AddonBase:
|
|||
|
||||
tasks = [
|
||||
try_catch(PKCEDowngradeChecker().test(flow)),
|
||||
try_catch(OpenRedirectChecker().test(flow)),
|
||||
try_catch(_open_redirect_checker.test(flow)),
|
||||
]
|
||||
await asyncio.gather(*tasks)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue