diff --git a/prowler/providers/microsoft365/exceptions/exceptions.py b/prowler/providers/microsoft365/exceptions/exceptions.py index b1da4f1fbc..45c645802d 100644 --- a/prowler/providers/microsoft365/exceptions/exceptions.py +++ b/prowler/providers/microsoft365/exceptions/exceptions.py @@ -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): diff --git a/prowler/providers/microsoft365/microsoft365_provider.py b/prowler/providers/microsoft365/microsoft365_provider.py index af7a723f67..668381d576 100644 --- a/prowler/providers/microsoft365/microsoft365_provider.py +++ b/prowler/providers/microsoft365/microsoft365_provider.py @@ -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.", )