fix(microsoft365): typo Microsoft365NotTenantIdButClientIdAndClienSecretError (#7244)

This commit is contained in:
Hugo Pereira Brito
2025-03-17 16:31:47 +01:00
committed by GitHub
parent d5be35af49
commit bb149a30a7
2 changed files with 4 additions and 4 deletions
@@ -90,7 +90,7 @@ class Microsoft365BaseException(ProwlerException):
"message": "Microsoft365 tenant ID error: browser authentication flag (--browser-auth) not found",
"remediation": "To use browser authentication, ensure the tenant ID is properly set.",
},
(6021, "Microsoft365NotTenantIdButClientIdAndClienSecretError"): {
(6021, "Microsoft365NotTenantIdButClientIdAndClientSecretError"): {
"message": "Tenant Id is required for Microsoft365 static credentials. Make sure you are using the correct credentials.",
"remediation": "Check the Microsoft365 Tenant ID and ensure it is properly set up.",
},
@@ -270,7 +270,7 @@ class Microsoft365BrowserAuthNoFlagError(Microsoft365CredentialsError):
)
class Microsoft365NotTenantIdButClientIdAndClienSecretError(
class Microsoft365NotTenantIdButClientIdAndClientSecretError(
Microsoft365CredentialsError
):
def __init__(self, file=None, original_exception=None, message=None):
@@ -40,7 +40,7 @@ from prowler.providers.microsoft365.exceptions.exceptions import (
Microsoft365InteractiveBrowserCredentialError,
Microsoft365InvalidProviderIdError,
Microsoft365NoAuthenticationMethodError,
Microsoft365NotTenantIdButClientIdAndClienSecretError,
Microsoft365NotTenantIdButClientIdAndClientSecretError,
Microsoft365NotValidClientIdError,
Microsoft365NotValidClientSecretError,
Microsoft365NotValidTenantIdError,
@@ -281,7 +281,7 @@ class Microsoft365Provider(Provider):
)
else:
if not tenant_id:
raise Microsoft365NotTenantIdButClientIdAndClienSecretError(
raise Microsoft365NotTenantIdButClientIdAndClientSecretError(
file=os.path.basename(__file__),
message="Tenant Id is required for Microsoft365 static credentials. Make sure you are using the correct credentials.",
)