1
votes

I am creating an Excel content add-in and implementing SSO. Everything works fine when it is running on the desktop client Excel app. It is successfully getting the add-in token and then getting the MSG token. But when I am trying the same thing in Excel online with sideloading, the method getAccessTokenAsync() is returning error code 1300.

Error code: 13000
Error name: API Not Supported.
Error message: The identity API is not supported for this add-in.

I am logged in to office 365 account from the same tenant which granted the admin consent. I have added the following to the manifest:

<Requirements>
  <Sets DefaultMinVersion="1.1">
    <Set Name="IdentityAPI"/>
  </Sets>   
</Requirements> 

Also, Office.context.requirements.isSetSupported('IdentityAPI', 1.1) is returning true.

The <WebApplicationInfo> section looks like the following in the the manifest:

<WebApplicationInfo>
    <Id>{application_GUID}</Id>
    <Resource>api://localhost:44377/{application_GUID}</Resource>
    <Scopes>
        <Scope>openid</Scope>
        <Scope>offline_access</Scope>
        <Scope>profile</Scope>
        <Scope>files.read.all</Scope>
        <Scope>sites.readwrite.all</Scope>
        <Scope>user.read</Scope>
        <Scope>files.readwrite.all</Scope>
        <Scope>files.read.write</Scope>
    </Scopes>
</WebApplicationInfo>
1

1 Answers

1
votes

UPDATE 4/10/18: A recent bug was introduced that causes 13000 for Office Online. A fix has been made but not yet deployed.

Original Answer:

One known cause of 13000 is that the <WebApplicationInfo> section is missing from the manifest or is invalid. Fore more info, see Troubleshooting SSO and Configure the add-in.