SharePoint token type not allowed

王林
Release: 2024-02-06 08:50:12
forward
458 people have browsed it

不允许使用 SharePoint 令牌类型

Question content

I am trying to authenticate to sharepoint using the gosip package (https://github.com/koltyakov/gosip). I'm using an authentication object but every time I try I get '{"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"),
}
Copy after login

I have registered a new app using https://{site}/_layouts/15/appregnew.aspx and granted full permissions to the app using https://{site}/_layouts/15/appinv.aspx

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

I can similarly see the app available in the site app permissions list using https://{site}/_layouts/15/appprincipals.aspx, but I keep getting the error message.


Correct answer


Similar questionHas happened before, you can try to see if this helps in your case.

The above is the detailed content of SharePoint token type not allowed. For more information, please follow other related articles on the PHP Chinese website!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template