You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/en/integrations/api-v2-docs.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,7 @@ For example: :
47
47
48
48
If you use [an alternative authentication method](../social-authentication/) for users, you may want to disable DefectDojo API tokens because it could bypass your authentication concept. \
49
49
Using of DefectDojo API tokens can be disabled by specifying the environment variable `DD_API_TOKENS_ENABLED` to `False`.
50
+
Or only `api/v2/api-token-auth/` endpoint can be disabled by setting `DD_API_TOKEN_AUTH_ENDPOINT_ENABLED` to `False`.
logger.error("Can't compute cvssv3 score for finding id %i. Invalid cvssv3 vector found: '%s'. Exception: %s", self.id, self.cvssv3, ex)
2642
2642
2643
-
# Finding.save is called once from serializers.py with dedupe_option=False because the finding is not ready yet, for example the endpoints are not built
2644
-
# It is then called a second time with dedupe_option defaulted to true; now we can compute the hash_code and run the deduplication
2645
-
ifdedupe_option:
2646
-
if (self.hash_codeisnotNone):
2647
-
deduplicationLogger.debug("Hash_code already computed for finding")
2648
-
else:
2649
-
self.hash_code=self.compute_hash_code()
2650
-
deduplicationLogger.debug("Hash_code computed for finding: %s", self.hash_code)
2643
+
self.set_hash_code(dedupe_option)
2651
2644
2652
2645
ifself.pkisNone:
2653
2646
# We enter here during the first call from serializers.py
# Finding.save is called once from serializers.py with dedupe_option=False because the finding is not ready yet, for example the endpoints are not built
3348
+
# It is then called a second time with dedupe_option defaulted to true; now we can compute the hash_code and run the deduplication
3349
+
ifdedupe_option:
3350
+
ifself.hash_codeisnotNone:
3351
+
deduplicationLogger.debug("Hash_code already computed for finding")
3352
+
else:
3353
+
self.hash_code=self.compute_hash_code()
3354
+
deduplicationLogger.debug("Hash_code computed for finding: %s", self.hash_code)
3355
+
3349
3356
3350
3357
classFindingAdmin(admin.ModelAdmin):
3351
3358
# For efficiency with large databases, display many-to-many fields with raw
0 commit comments