windows - 不允许使用 SharePoint token 类型

标签 windows azure authentication go sharepoint

我正在尝试使用 Gosip 包 ( https://github.com/koltyakov/gosip ) 对 SharePoint 进行身份验证。我正在使用身份验证对象,但每次尝试时都会收到 '{"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"),
}

我已使用 https://{site}/_layouts/15/AppRegNew.aspx 注册了新应用,并使用 https://{site}/_layouts/15/appinv.aspx 授予了该应用的完全权限

 <AppPermissionRequests AllowAppOnlyPolicy="true">
   <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" 
   Right="FullControl" />
 </AppPermissionRequests>

我同样可以使用 https://{site}/_layouts/15/appprincipals.aspx 看到该应用程序在站点应用程序权限列表中可用,但我不断收到错误消息。

最佳答案

similar issue以前发生过,您可以尝试看看这是否对您的情况有帮助。

关于windows - 不允许使用 SharePoint token 类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75817039/

相关文章:

windows - 使用参数从 PowerShell 启动批处理文件

windows - 如何在 Visual Studio C++ 项目中指定 "any Windows SDK version greater than 10.0"?

asp.net-mvc - 对同一主机名但不同路径上的多个应用程序的用户进行身份验证

java - 在 Android studio 中使用 Activity 模板时无法添加新的 Java 类吗?

linux - 无法使用特定用户运行脚本

windows - 适用于 Windows 的最佳通用调试工具是什么?

c++ - 如何在 Mingw Gcc 中声明和链接到 RoInitialize、RoUninitialize、RoGetActivationFactory 和 HSTRING 函数

迁移到新订阅时的 Azure 网站域名

javascript - azurestorage 和 NodeJS 中的 getaddrinfo 错误

azure - 我可以写入 Azure 网站上的文件系统吗?