mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 20:42:02 +00:00
fix(microsoft365): typo Microsoft365NotTenantIdButClientIdAndClienSecretError (#7244)
This commit is contained in:
committed by
GitHub
parent
d5be35af49
commit
bb149a30a7
@@ -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.",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user