Skip to content

Test Failure in ConsoleAppTest Using MailKit: AADSTS70011 Error with Invalid Scope #3

Description

@fpereiramapfrepr

The test in the ConsolaAppTest is failing due to an error related to the ‘scope’ input parameter when using the MailKit library. The specific error message is:

Microsoft.Identity.Client.MsalServiceException: 'AADSTS70011: The provided request must include a 'scope' input parameter. The provided value for the input parameter 'scope' is not valid. The scope email https://outlook.office.com/IMAP.AccessAsUser.All is not valid.
Trace ID: XXXXX
Correlation ID: XXXXX'

The exact line that throws the error is "confidentialClientApplication.AcquireTokenForClient."

Prior to the test, all necessary setup was performed in Azure as shown in the YouTube video for the App Registration.

Thanks for your help and your videos are awesome!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions