mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 06:51:51 +09:00
feat: add Google login hint functionality
- Add environment configuration files (.env, .env.example) - Implement GoogleLoginHint addon module - Update addon initialization to include new module
This commit is contained in:
parent
1b3f58b432
commit
05bbdc65c1
4 changed files with 86 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ from csrf_check import CsrfChecker
|
|||
from nonce_check import NonceChecker
|
||||
from redirect_uri_check import RedirectBypassChecker
|
||||
from access_token import AccessTokenScanner
|
||||
from GoogleLoginHint import GoogleLoginHint
|
||||
|
||||
class PKCEAddon:
|
||||
def __init__(self):
|
||||
|
|
@ -87,4 +88,13 @@ class RedirectBypassAddon:
|
|||
except Exception as e:
|
||||
print(f"[ERROR] RedirectBypass Addon failed: {e}")
|
||||
|
||||
addons = [PKCEAddon(), ScopeAddon(), CsrfAddon(), NonceAddon(), AccessTokenAddon(), RedirectBypassAddon()]
|
||||
class GoogleLoginHintAddon():
|
||||
def __init__(self) -> None:
|
||||
self.checker = GoogleLoginHint()
|
||||
def request(self, flow: http.HTTPFlow):
|
||||
try:
|
||||
asyncio.run(self.checker.request(flow))
|
||||
except Exception as e:
|
||||
print(f"[ERROR] GoogleLoginHint Addon failed: {e}")
|
||||
|
||||
addons = [PKCEAddon(), ScopeAddon(), CsrfAddon(), NonceAddon(), AccessTokenAddon(), RedirectBypassAddon(), GoogleLoginHintAddon()]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue