Hi,
I implemented Single Sign-on in Word following these instructions (https://docs.microsoft.com/en-us/office/dev/add-ins/develop/sso-in-office-add-ins)
This is working perfectly with the current Semi-Annual channel ( Version 1803 Build 9126.2336)
But when I switch to the targeted release channel (Version 1808 Build10730.20205 or Build10730.20262)
I'm getting the following error:
code: 13012
message: "API is not supported in this platform."
name: "A connection was lost during the sign in process."
The code I execute to receive this is:
Office.context.auth.getAccessTokenAsync(({ forceConsent: true }),
function (result) {
if (result.status === "succeeded") { }
This of course gives a result with the error back
I also check first if the Identity API is supported by the following code:
if (!Office.context.requirements.isSetSupported("IdentityAPI")) {}
But this doesn't execute so it states that the IdentityAPI is supported.
When I change tot the monthly builds (Version 1812 Build 11126.20188) then it does work again.
Environment:
Windows 10 64bit version 1709 (OS Build 16299.846)
Office version: 1803 (build 9126.2315); 1808 (build 10730.20.205)
@RickVanRousselt thanks for reaching out and sorry to hear that you've run into this problem.
@JuaneloJuanelo are you able to provide any feedback about this issue?
@niteshgolchha85 This is probably better directed to you than Juan.
Since this feature is not GA yet so there could be some issue with the flighting service. Can you restart your office application and try again?
Already tried it. Also rebooted my machine. And because I'm running this directly in debug mode from VS is also tried this with another user's machine where the add-in is installed into the tenant
By now this issue has been pushed trough to the Semi-Annual Channel release that went live this month. Version 1808 Build 10730.20264
Sorry it's not working on the expected release channels. We are investigating this issue and will respond as soon as we find something. Our initial guess is that the SSO feature has not been flighted but I'll double check that.
It seems that the flight for SSO has been turned OFF for the semi annual channel. This is by design - supposedly, we do not ship preview features for stable versions, incl perpetual. I'll see if we can document this.
Thank you for bringing this up..
The documentation has been updated with this information now - https://docs.microsoft.com/en-us/office/dev/add-ins/develop/sso-in-office-add-ins
Do let me know if you run into this issue for any other build. If not, please close this issue.
Cool, Thanks for the help
I have faced the same issue but with different Office Build. Could you provide help or fix on this, thank you.
Windows:
Windows Installer Version聽聽聽聽聽聽 5.0.16299.967
OS Details聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 Microsoft Windows 10 Pro, SP 0, Version: 10.0.16299, Codepage: 1252, Country Code: 1, Language: 1033, System Type: x64-based PC
Office:
BuildNumber聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 16.0.11328.20158
Version聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 1902
Platform聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 x86
@niteshgolchha85 FYI, an SSO issue with another build of Word. I'll reopen this issue so that you can engage with the customer (@hatsukiotowa).
DIscussed offline and asked to
Thanks @kbrandl and @niteshgolchha85
I'll be closing this issue as there hasn't been any response. Feel free to reopen if the issue persists.
I have the same issue with Version 1808. Can we reopen this ticket?
@tuandomvn This is expected. SSO is a preview feature that is turned off in builds that reach the semi-annual channel.
This issue has reappeared for us in Version 1908 (Build 11929.20300) on the Monthly channel. SSO was working fine in the previous release, Version 1908 (Build 11929.20254).
Calling getAccessTokenAsync() results in error code 13012.
I can confirm it is working again now. The version is still 1908 (Build 11929.20300).
Closing as the API is working. Feel free to reopen if the issue persists.
I am getting this now with version 1908 (Build 11929.20300). Has worked for months on the previous versions. Please let us know how sergiubucur resolved this issue.
Specifically, calling Office.context.auth.getAccessTokenAsync and getting back 13012 with:
Tried with options forceConsent as false and forceConsent as true.
I just ran this from my Microsoft Surface Laptop with version 1909 (Build 12026.20264) and it worked. Both using the same code in the App Service.
How can I get the version 1908 (Build 11929.20300) to work?
@craigkeating I didn't do anything. The API wasn't working one morning and then the next it started working again by itself.
I just tried it now and it still isn't working for me. Wish it was :o)
@craigkeating Can you go to File->Options->Experiment on you Windows machine and attach a screenshot?
I didn't see Experiment listed in the set of options available in File -> Options from our Microsoft Word.
We did upgrade to version 1910 (build 12130.20184) so we could get unblocked to finish testing and releasing our Office Add-In.
@craigkeating Can you restart your Office application and try again? I suspect this might be an issue with flighting
I have since upgrade Word and can no longer reproduce the issue.
Prior, though, I did try signing out and signing back in to Office. I did also try rebooting. None of these steps resolved the issue.
In case I can find someone still running the older version, what did you mean by restarting office, if that is different than signing out and signing back in.
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!
Restart Office = close all office applications (Eg: Word, Excel, Powerpoint, Outlook, etc) and start again