英文:
SharePoint Token type is not allowed
问题
我正在尝试使用Gosip包(https://github.com/koltyakov/gosip)进行SharePoint身份验证。我正在使用一个身份验证对象,但每次尝试时都会收到一个错误消息:'{"error":"invalid_request","error_description":"Token type is not allowed."}'
以下是注册新应用程序的步骤:
- 使用https://{site}/_layouts/15/AppRegNew.aspx注册新应用程序。
- 使用https://{site}/_layouts/15/appinv.aspx为应用程序授予完全权限。
在AppPermissionRequests元素中添加以下内容:
我可以在https://{site}/_layouts/15/appprincipals.aspx中的站点应用程序权限列表中看到该应用程序,但我仍然收到错误消息。
英文:
I am trying to authenticate into SharePoint using Gosip package (https://github.com/koltyakov/gosip). I am using an authentication object but each time I try I get an '{"error":"invalid_request","error_description":"Token type is not allowed."}'
auth := &strategy.AuthCnfg{
SiteURL: os.Getenv("SPAUTH_SITEURL"),
ClientID: os.Getenv("SPAUTH_CLIENTID"),
ClientSecret: os.Getenv("SPAUTH_CLIENTSECRET"),
}
I have registered the new app using https://{site}/_layouts/15/AppRegNew.aspx and given full permission to the app using https://{site}/_layouts/15/appinv.aspx
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection"
Right="FullControl" />
</AppPermissionRequests>
I can likewise see the app is available in Site App Permission list using https://{site}/_layouts/15/appprincipals.aspx but I keep getting the error.
答案1
得分: 0
类似的问题之前发生过,你可以尝试查看这个链接,看看是否对你的情况有帮助。
链接:类似问题
英文:
similar issue have happened before, you can try to see if this helps your situation.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论