Microsoft Office365 Pop3 Authentication Failed Using OAuth2 in C# #1833
Unanswered
rakshit-astotek
asked this question in
Q&A
Replies: 1 comment
-
At the end of Microsoft's documentation, they provide a link to a test program using powershell that you can run to validate that everything is configured correctly. Have you run this? Did it work? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to connect pop3email client with token based authentication
to create token, I have registered app in azure and using below details to generate token:
endpoint : https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token
grant : client_credentials
scope : https://outlook.office365.com/.default
token is getting generated successfully but while passing that token to pop3emailclient to connect to server getting authentication failed error.
I have provided below permissions to registered app:
Office 365 Exchange Online
Mail.Read
Mail.Read.All
Mail.Read.Shared
POP.AccessAsApp
Also tried with graph api permissions:
POP.AccessAsUser.All
offline_access
email
Mail.Read
Mail.ReadBasic.All
I tried with 2 approaches but in both I am getting authentication failed error
Approach 1
Approach 2
Beta Was this translation helpful? Give feedback.
All reactions