[Update] oauth 탐지 로직 정교화

This commit is contained in:
tv0924@icloud.com 2025-06-02 10:56:42 +09:00
commit 1c57ad1a39

View file

@ -7,13 +7,13 @@ const httpUtils = new HttpUtils();
export class CsrfCheck { export class CsrfCheck {
private isTargetUri(uri: string): boolean { private isTargetUri(uri: string): boolean {
if ( if (
httpUtils.getQueryParamFromURI(uri, "client_id") && httpUtils.getQueryParamFromURI(uri, "client_id") !== null &&
(httpUtils.getQueryParamFromURI(uri, "response_type") || (httpUtils.getQueryParamFromURI(uri, "response_type") !== null ||
httpUtils.getQueryParamFromURI(uri, "grant_type") || httpUtils.getQueryParamFromURI(uri, "grant_type") !== null ||
httpUtils.getQueryParamFromURI(uri, "redirect_uri") || httpUtils.getQueryParamFromURI(uri, "redirect_uri") !== null ||
httpUtils.getQueryParamFromURI(uri, "scope") || httpUtils.getQueryParamFromURI(uri, "scope") !== null ||
httpUtils.getQueryParamFromURI(uri, "state") || httpUtils.getQueryParamFromURI(uri, "state") !== null ||
httpUtils.getQueryParamFromURI(uri, "nonce")) httpUtils.getQueryParamFromURI(uri, "nonce") !== null)
) { ) {
return true; return true;
} }