我正在尝试使用 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 授予了该应用的完全权限 p>
</AppPermissionRequests>
我同样可以使用 https://{site}/_layouts/15/appprincipals.aspx 看到该应用程序在站点应用程序权限列表中可用,但我不断收到错误消息。
正确答案
类似问题以前发生过,您可以尝试看看这是否对您的情况有帮助。