I am simply getting some users from SharePoint using CSOM using the below method. This has always worked for me and I\'ve had no issues.
All of a sudden, when I try
Since the credentials are correct, it may be that Multi-Factor Authentication is enabled and a policy may be triggering it for this account. If that is the case, you could disable MFA for that specific account.
Also, the AuthenticationManager class that is part of the PnP Core library may be beneficial as it is helpful for various authentication scenarios.