mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 04:01:51 +09:00
[REFACTOR]: Access TOken 탐지 조건 완화
This commit is contained in:
parent
a3b54028b7
commit
8ef13de441
2 changed files with 3 additions and 3 deletions
2
.env
2
.env
|
|
@ -1,2 +1,2 @@
|
|||
# Google OAuth 설정
|
||||
GOOGLE_ID=oauth.j93es@gmail.com
|
||||
GOOGLE_ID=whs.imnya.ng@gmail.com
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ class AccessTokenScanner:
|
|||
query_params = parse_qs(parsed_url.query)
|
||||
|
||||
# 필요한 파라미터들이 모두 존재하는지 확인
|
||||
required_params = ['client_id', 'redirect_uri', 'response_type']
|
||||
required_params = ['redirect_uri', 'response_type']
|
||||
|
||||
for param in required_params:
|
||||
if param not in query_params:
|
||||
|
|
@ -145,7 +145,7 @@ class AccessTokenScanner:
|
|||
response_type_values = query_params.get('response_type', [])
|
||||
|
||||
# response_type 파라미터가 존재하고 값 중에 'token'이 있는지 확인
|
||||
return 'token' in response_type_values
|
||||
return 'token' in response_type_values or 'id_token' in response_type_values
|
||||
|
||||
except Exception:
|
||||
return False
|
||||
Loading…
Add table
Add a link
Reference in a new issue