I have multi-factor authentication activated for my SharePoint Tenant. I am trying to connect to one of a site via release pipeline in Azure DevOps. I googled a bit and found that it might be possible using App password. So, I set this up and now I am trying to use this password to authenticate but I am getting the following error:
Connect-PnPOnline : AADSTS50126: Error validating credentials due to invalid username or password.
Any idea on what is going on. I want to be able to connect to SharePoint from my release pipeline so, I can deploy and do not want to deactivate my MFA.