Outlook Addin Error Code 13005 for auth.getAccessTokenAsync

左心房为你撑大大i 提交于 2019-12-08 12:38:57

问题


So I am trying to use single sign on in an outlook addin. I have registered my app at https://apps.dev.microsoft.com/. In my Manifest I have

<WebApplicationInfo>
            <Id>{myId}</Id>
            <Resource>api://mydomain.com:3000/{myId}</Resource>
            <Scopes>
                <Scope>Mail.Read</Scope>
                <Scope>profile</Scope>
            </Scopes>
        </WebApplicationInfo>

mydomain.com is actually a domain i map to my local IP. Outlook accepts my manifest just fine. How ever when i call Office.context.auth.getAccessTokenAsync, I get the following response

{name: "Invalid application resource Url provided.", message: "Invalid resource Url specified in the manifest.", code: 13004}

How else should i write the resource url. Am i supposed to add this url somewhere else?

I followed https://docs.microsoft.com/en-us/office/dev/add-ins/develop/register-sso-add-in-aad-v2 and was able to get further. But now i Get {name: "Preauthorization missing.", message: "Missing grant for this add-in.", code: 13005}

来源:https://stackoverflow.com/questions/51242859/outlook-addin-error-code-13005-for-auth-getaccesstokenasync

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!