Closed repl-mohan-krishna closed 2 years ago
Can you confirm if there's any dialog already open through the addin while calling getAccessToken?
No. pre authorization already done by admin through Microsoft 365 admin center. it won't show any dialog while calling getAccesToken method
Can you share a code snippet where you are calling getAccessToken?
Both values (allowSignIn,allowConsent ) are false always as user is already preauthorized at admin center((https://admin.microsoft.com).
We have not been able to reproduce the issue with the given snippet. Can you share a manifest and test credentials for your add-in to OutlookExtensibility@M365x27035562.onmicrosoft.com if your add-in is publicly hosted so that we can investigate further?
This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!
This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.
I also got this error OSF.DDA.Error Code: 5001 when I tried to use Office.context.mailbox.displayAppointmentFormAsync(). Any recs on this error?
We are developing Taskpane add-in for outlook email. when we calling getAccesToken method, sometimes i'm getting 5001 error.
Your Environment
Expected behavior
Office.auth.getAccessToken() should return a Promise which resolves to the access token.
Current behavior
Office.auth.getAccessToken() returns a Promise which rejects with the error: { "name":"Internal Error", "message":"An internal error has occurred.", "code":5001 }
Useful logs