mirror of
https://github.com/foss42/apidash.git
synced 2025-12-11 23:57:50 +08:00
Fix critical vulnerabilities: Remove sensitive logging, add JS validation, add security dependencies
Co-authored-by: animator <615622+animator@users.noreply.github.com>
This commit is contained in:
@@ -221,8 +221,6 @@ Future<HttpRequestModel> handleAuth(
|
||||
}
|
||||
}
|
||||
|
||||
debugPrint(res.$1.credentials.accessToken);
|
||||
|
||||
// Add the access token to the request headers
|
||||
updatedHeaders.add(
|
||||
NameValueModel(
|
||||
@@ -238,7 +236,6 @@ Future<HttpRequestModel> handleAuth(
|
||||
oauth2Model: oauth2,
|
||||
credentialsFile: credentialsFile,
|
||||
);
|
||||
debugPrint(client.credentials.accessToken);
|
||||
|
||||
// Add the access token to the request headers
|
||||
updatedHeaders.add(
|
||||
@@ -250,12 +247,10 @@ Future<HttpRequestModel> handleAuth(
|
||||
updatedHeaderEnabledList.add(true);
|
||||
break;
|
||||
case OAuth2GrantType.resourceOwnerPassword:
|
||||
debugPrint("==Resource Owner Password==");
|
||||
final client = await oAuth2ResourceOwnerPasswordGrantHandler(
|
||||
oauth2Model: oauth2,
|
||||
credentialsFile: credentialsFile,
|
||||
);
|
||||
debugPrint(client.credentials.accessToken);
|
||||
|
||||
// Add the access token to the request headers
|
||||
updatedHeaders.add(
|
||||
|
||||
Reference in New Issue
Block a user