The user aborted sign in or consent for example, by choosing Cancel on the consent dialog. If the user's cookie expires, Office on the web returns error 13006. This error is never seen in Office on the web. This will sign the user into AAD, but not sign the user into Office. Use the 13001 error as the flag to tell the add-in to present the alternate set of features.Īnother option is to respond to 13001 by falling back to an alternate system of user authentication. In this case, logic which runs when the add-in launches calls getAccessToken without allowSignInPrompt: true. If the user is not, you want the add-in to open with an alternate set of features that do not require that the user is signed in. For example, you want the add-in to open with features that require a logged in user but only if the user is already logged into Office. In most scenarios, you should prevent this error from ever being seen by passing the option allowSignInPrompt: true in the AuthOptions parameter.īut there may be exceptions. For more information, see Requirements and Best Practices. Your add-in should respond to this error by falling back to an alternate system of user authentication. The add-in manifest is missing the proper WebApplicationInfo section.The required version is Microsoft 365 subscription, in any monthly channel. The version of Office does not support SSO.The getAccessToken API is not supported by the add-in or the Office version. ssoAuthES6.js in Office-Add-in-NodeJS-SSO.( Documentation)Ĭauses and handling of errors from getAccessTokenįor examples of the error handling described in this section, see: We strongly recommend that you use a tool that can intercept and display the HTTP Requests from, and Responses to, your add-in's web service when you are developing. For information about how to do this, see Enable or disable modern authentication for Outlook in Exchange Online. If you're working with an Outlook add-in, be sure to enable Modern Authentication for the Microsoft 365 tenancy. For more information about where the Single Sign-on API is currently supported, see IdentityAPI requirement sets. The Single Sign-on API is currently supported for Word, Excel, Outlook, and PowerPoint.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |