Outlook Addin using SSO Error: The provided value for the input parameter 'scope' is not valid

James Summers 0 Reputation points
2024-08-08T04:36:17.0033333+00:00

I am currently experiencing an issue with our custom nodejs Outlook add-in. The add-in is failing to authenticate using Single Sign-On (SSO). Here are the details:

  • Issue Summary: Outlook Add-in SSO Failure
  • Description: Our custom Outlook add-in is failing to successfully authenticate using SSO. We are encountering authentication failures and need assistance in resolving this issue.
  • Steps to Reproduce:
    1. Create a vanilla outlook project following the yeoman generator to create an SSO outlook addin
    2. run the start script "npm start" -> which is this script:
           "start": "office-addin-debugging start manifest.xml"
      
    3. A browser is opened that I successfully sign in to microsoft account
    4. The browser shows a gray page with "You are signed in now and can close this page."
    5. my powershell shows an error in receiving a token...
    6. Observe the error message that appears after the authentication attempt.
  • Error Messages:

    Log in to your Microsoft 365 account - opening default web browser at https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=7ea7c24c-b1f6-4a20-9d11-9ae12e9e7ac0&scope=https%3A%2F%2Ftitles.prod.mos.microsoft.com%2F.default%20openid%20profile%20offline_access&redirect_uri=http%3A%2F%2Flocalhost%3A56008&client-request-id=f73ff45a-8922-4a9e-bc89-4258022f412a&response_mode=query&response_type=code&x-client-SKU=msal.js.node&x-client-VER=2.6.6&x-client-OS=win32&x-client-CPU=x64&client_info=1&code_challenge=Jrp1tQpq1TAu8bKM1bxT-U54sWRzIzj2FuSePSZtbZs&code_challenge_method=S256&prompt=select_account# [Login] Failed to retrieve token silently. If you encounter this problem multiple times, you can delete C:\Users\js895032\.fx\account and try again. invalid_scope: 70011 - [2024-08-08 04:22:26Z]: AADSTS70011: The provided value for the input parameter 'scope' is not valid. The scope 'https://dev.teams.microsoft.com/AppDefinitions.ReadWrite openid profile offline_access' does not exist. Trace ID: af856253-9f6b-4a6d-b7db-9e10f568ce00 Correlation ID: 9fa5456f-92b7-44f2-aee7-14c2fb24a7c1 Timestamp: 2024-08-08 04:22:26Z - Correlation ID: 9fa5456f-92b7-44f2-aee7-14c2fb24a7c1 - Trace ID: af856253-9f6b-4a6d-b7db-9e10f568ce00 --Error sideloading!-- Error: Error: Command failed: npx @microsoft/teamsapp-cli install --xml-path "C:\Users\js895032\Documents\development\yeoman\node_outlook\MyOutlookSSOAddin\manifest.xml" (×) Error: m365.InternalError: Request failed with status code 401 (tracingId: ) : STDERR: (×) Error: m365.InternalError: Request failed with status code 401 (tracingId: ) : Error: Unable to start debugging. Error: Unable to sideload the Office Add-in. Error: Command failed: npx @microsoft/teamsapp-cli install --xml-path "C:\Users\js895032\Documents\development\yeoman\node_outlook\MyOutlookSSOAddin\manifest.xml" (×) Error: m365.InternalError: Request failed with status code 401 (tracingId: ) :

  • Expected vs Actual Behavior: The add-in should authenticate using SSO and grant access to the required resources, but it fails to do so.
  • Environment Details:
    • Operating System: Windows 10
    • Browser: Chrome
    • Office Version: web

My attempts to resolve the issue:

  • I have deleted my account folder under the hidden directory .fx many times.
  • I have checked and rechecked the "scope" error. This is my manifest file:

Is there a way to lookup this specific tracingId to get more information on what is going on here?
Please let me know what more information would be helpful.

Thank you for your assistance.

Best regards,

This question is related to the following Learning Module

Microsoft 365 Training
Microsoft 365 Training
Microsoft 365: Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.Training: Instruction to develop new skills.
102 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kguntaka 3,405 Reputation points Microsoft Vendor
    2024-10-03T07:34:16.45+00:00

    Hi James Summers,

    Thanks for bringing this to our notice.

    Our team is aware of this issue and is actively working on a solution.

    In the meantime, we ask that you complete the Learning Paths without the exercise modules. We will provide updates as soon as we have more information.

    Thank you for your patience and understanding.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.