Skip to content

[Outlook](authentication) Updates to promote current NAA auth approach#5589

Open
davidchesnut wants to merge 14 commits intomainfrom
davech-outlook-naa-update
Open

[Outlook](authentication) Updates to promote current NAA auth approach#5589
davidchesnut wants to merge 14 commits intomainfrom
davech-outlook-naa-update

Conversation

@davidchesnut
Copy link
Member

NAA is now our recommended auth pattern for implementing SSO. This PR:

  • Promotes SSO via MSAL NAA as the recommended SSO approach.
  • Demotes promotion of legacy Office SSO.
  • Clearly marks Exchange on-premise actions (callback and identity tokens) as only for on-premise and moves these into a subfolder in the TOC.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 54e8919:

❌ Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
❌Error Details

  • [Error: CannotMergeCommit] Cannot merge commit 54e89193bf314d89f0db9b5ab5c2f85b5b9383cd in branch davech-outlook-naa-update of repository https://github.com/OfficeDev/office-js-docs-pr into branch main (commit c4d070f0d806daf5a1bf4941dd7d05da0222d791). Please follow this documentation: https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/ to use git.exe to resolve you content conflicts locally and then push to remote.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 41e02e8:

✅ Validation status: passed

File Status Preview URL Details
.openpublishing.redirection.json ✅Succeeded View
docs/develop/authorize-to-microsoft-graph.md ✅Succeeded View
docs/develop/sso-in-office-add-ins.md ✅Succeeded View
docs/develop/use-sso-in-event-based-activation.md ✅Succeeded View
docs/outlook/authenticate-a-user-with-an-sso-token.md ✅Succeeded n/a (file deleted or renamed)
docs/outlook/authentication.md ✅Succeeded View
docs/outlook/implement-sso-in-outlook-add-in.md ✅Succeeded n/a (file deleted or renamed)
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

Single sign-on (SSO) improves the user experience by allowing users to sign in once to Office. Users aren’t required to sign in again when interacting with the add-in. Nested App Authentication (NAA) enables SSO for Office Add-ins running in the context of native Office applications. NAA makes handling SSO simpler for your add-in code. NAA enables you to make Microsoft Graph calls from your add-in client code as an SPA without the need for a middle-tier server. There’s no need to use Office.js APIs as NAA is provided by the MSAL.js library.

Consider using SSO access tokens if your add-in:
To enable your Outlook add-in to use NAA, see [Enable SSO in an Office Add-in using nested app authentication (preview)](../develop/enable-nested-app-authentication-in-your-add-in.md). For more information about support, see [Nested app auth requirement set](/javascript/api/requirement-sets/common/nested-app-auth-requirement-sets).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the article title still include "preview"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

- Needs access to:
- Microsoft services that are exposed as part of Microsoft Graph
- A non-Microsoft service that you control
Also refer to the following NAA samples for Outlook.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding the samples to a subsection for improved visibility.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed


> [!NOTE]
> Most functionality in the Exchange user identity token can also be achieved by using the [Microsoft Graph mail API](/graph/outlook-mail-concept-overview).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[!INCLUDE [legacy-exchange-token-deprecation](../includes/legacy-exchange-token-deprecation.md)]
> [!NOTE]
> Most functionality in the Exchange user identity token can also be achieved by using the [Microsoft Graph mail API](/graph/outlook-mail-concept-overview).

If you accept the previous suggestion to move the alerts, this removes the alerts from this subsection.

@@ -39,6 +39,6 @@ After you configure the well-known URI, if your add-in implements SSO, you can t

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to amend or remove the note about Office.auth.getAccessToken?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree - I don't think we need to promote OBO here, change it to call out NAA supports this in the note or remove it? Would we also remove the line above that tells them to use OBO getAccessToken?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rewrote this to be more clear. It's if you need to support older clients with legacy SSO this is recommended.

Copy link
Contributor

@mattgeim mattgeim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to Sam's suggestions, otherwise 👍

Co-authored-by: Sam Ramon <15154970+samantharamon@users.noreply.github.com>
@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit f619e42:

✅ Validation status: passed

File Status Preview URL Details
.openpublishing.redirection.json ✅Succeeded View
docs/develop/authorize-to-microsoft-graph.md ✅Succeeded View
docs/develop/sso-in-office-add-ins.md ✅Succeeded View
docs/develop/use-sso-in-event-based-activation.md ✅Succeeded View
docs/outlook/authenticate-a-user-with-an-sso-token.md ✅Succeeded n/a (file deleted or renamed)
docs/outlook/authentication.md ✅Succeeded View
docs/outlook/implement-sso-in-outlook-add-in.md ✅Succeeded n/a (file deleted or renamed)
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

davidchesnut and others added 2 commits February 5, 2026 14:39
Co-authored-by: Sam Ramon <15154970+samantharamon@users.noreply.github.com>
Co-authored-by: Sam Ramon <15154970+samantharamon@users.noreply.github.com>
@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 965be2e:

✅ Validation status: passed

File Status Preview URL Details
.openpublishing.redirection.json ✅Succeeded View
docs/develop/authorize-to-microsoft-graph.md ✅Succeeded View
docs/develop/sso-in-office-add-ins.md ✅Succeeded View
docs/develop/use-sso-in-event-based-activation.md ✅Succeeded View
docs/outlook/authenticate-a-user-with-an-sso-token.md ✅Succeeded n/a (file deleted or renamed)
docs/outlook/authentication.md ✅Succeeded View
docs/outlook/implement-sso-in-outlook-add-in.md ✅Succeeded n/a (file deleted or renamed)
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

Co-authored-by: Sam Ramon <15154970+samantharamon@users.noreply.github.com>
@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

Co-authored-by: Sam Ramon <15154970+samantharamon@users.noreply.github.com>
@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 14bfacb:

✅ Validation status: passed

File Status Preview URL Details
.openpublishing.redirection.json ✅Succeeded View
docs/develop/authorize-to-microsoft-graph.md ✅Succeeded View
docs/develop/sso-in-office-add-ins.md ✅Succeeded View
docs/develop/use-sso-in-event-based-activation.md ✅Succeeded View
docs/outlook/authenticate-a-user-with-an-sso-token.md ✅Succeeded n/a (file deleted or renamed)
docs/outlook/authentication.md ✅Succeeded View
docs/outlook/implement-sso-in-outlook-add-in.md ✅Succeeded n/a (file deleted or renamed)
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

Co-authored-by: Sam Ramon <15154970+samantharamon@users.noreply.github.com>
@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

davidchesnut and others added 3 commits February 5, 2026 14:43
Co-authored-by: Sam Ramon <15154970+samantharamon@users.noreply.github.com>
Co-authored-by: Sam Ramon <15154970+samantharamon@users.noreply.github.com>
Co-authored-by: Sam Ramon <15154970+samantharamon@users.noreply.github.com>
@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 7fa7256:

✅ Validation status: passed

File Status Preview URL Details
.openpublishing.redirection.json ✅Succeeded View
docs/develop/authorize-to-microsoft-graph.md ✅Succeeded View
docs/develop/sso-in-office-add-ins.md ✅Succeeded View
docs/develop/use-sso-in-event-based-activation.md ✅Succeeded View
docs/outlook/authenticate-a-user-with-an-sso-token.md ✅Succeeded n/a (file deleted or renamed)
docs/outlook/authentication.md ✅Succeeded View
docs/outlook/implement-sso-in-outlook-add-in.md ✅Succeeded n/a (file deleted or renamed)
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 075ca2a:

✅ Validation status: passed

File Status Preview URL Details
.openpublishing.redirection.json ✅Succeeded View
docs/develop/authorize-to-microsoft-graph.md ✅Succeeded View
docs/develop/sso-in-office-add-ins.md ✅Succeeded View
docs/develop/use-sso-in-event-based-activation.md ✅Succeeded View
docs/outlook/authenticate-a-user-with-an-sso-token.md ✅Succeeded n/a (file deleted or renamed)
docs/outlook/authentication.md ✅Succeeded View
docs/outlook/implement-sso-in-outlook-add-in.md ✅Succeeded n/a (file deleted or renamed)
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit a30585c:

✅ Validation status: passed

File Status Preview URL Details
.openpublishing.redirection.json ✅Succeeded View
docs/develop/authorize-to-microsoft-graph.md ✅Succeeded View
docs/develop/sso-in-office-add-ins.md ✅Succeeded View
docs/develop/use-sso-in-event-based-activation.md ✅Succeeded View
docs/outlook/authenticate-a-user-with-an-sso-token.md ✅Succeeded n/a (file deleted or renamed)
docs/outlook/authentication.md ✅Succeeded View
docs/outlook/delegate-access.md ✅Succeeded View
docs/outlook/get-attachments-of-an-outlook-item.md ✅Succeeded View
docs/outlook/implement-sso-in-outlook-add-in.md ✅Succeeded n/a (file deleted or renamed)
docs/outlook/metadata-for-an-outlook-add-in.md ✅Succeeded View
docs/outlook/microsoft-graph.md ✅Succeeded View
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 978ede2:

✅ Validation status: passed

File Status Preview URL Details
.openpublishing.redirection.json ✅Succeeded View
docs/develop/authorize-to-microsoft-graph.md ✅Succeeded View
docs/develop/sso-in-office-add-ins.md ✅Succeeded View
docs/develop/use-sso-in-event-based-activation.md ✅Succeeded View
docs/outlook/authenticate-a-user-with-an-sso-token.md ✅Succeeded n/a (file deleted or renamed)
docs/outlook/authentication.md ✅Succeeded View
docs/outlook/delegate-access.md ✅Succeeded View
docs/outlook/get-attachments-of-an-outlook-item.md ✅Succeeded View
docs/outlook/implement-sso-in-outlook-add-in.md ✅Succeeded n/a (file deleted or renamed)
docs/outlook/metadata-for-an-outlook-add-in.md ✅Succeeded View
docs/outlook/microsoft-graph.md ✅Succeeded View
docs/toc.yml ✅Succeeded View

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants