[英]SharePoint Online UserInfo endpoint URL
I am trying to build SharePoint Online Adapter using Microsoft.SharePointOnline.CSOM version 16.1.7018.1200 我正在尝试使用Microsoft.SharePointOnline.CSOM版本16.1.7018.1200构建SharePoint Online适配器
I am struggling in finding for this REST API the correct Endpoint URLs. 我正在努力为此REST API寻找正确的端点URL。 Some of them might be same as in GDrive (since both of them are using OAuth2), but still I am a bit confused. 其中一些可能与GDrive中的相同(因为它们两个都使用OAuth2),但我仍然有些困惑。 My questions is about: - Scope, LoginBaseUrl, AccessTokenBaseUrl and UserInfoEndpointUrl 我的问题是关于:-范围,LoginBaseUrl,AccessTokenBaseUrl和UserInfoEndpointUrl
As an example in GDrive situation was: 例如,在GDrive中,情况是:
Scope = "https://www.googleapis.com/auth/drive.file";
LoginBaseUrl = "https://accounts.google.com/o/oauth2/auth";
AdditionalLoginParameters.Add("response_type", "code");
AccessTokenBaseUrl = "https://accounts.google.com/o/oauth2/token";
AdditionalAccessTokenParameters.Add("grant_type", "authorization_code");
UserInfoEndpointUrl = "https://www.googleapis.com/drive/v3/about?fields=user&access_token=" + accessToken;
PS: If anyone have some documentation or code samples it will be much appriciated! PS:如果有人有一些文档或代码示例,那么它将非常有用! So far I was able to find code samples only for Read operations. 到目前为止,我只能找到用于Read操作的代码示例。
If any additional information is required please let me know. 如果需要任何其他信息,请告诉我。
Best regards, SVG 最好的问候,SVG
If you're talking about the user info endpoint from an auth perspective , Azure Active Directory is actually handling most of the authentication and some of the authorization for SharePoint online. 如果您从auth角度谈论用户信息终结点 ,则Azure Active Directory实际上正在处理SharePoint联机的大部分身份验证和某些授权。 Things are currently a little bit complicated with the : 目前,事情有些复杂:
However the v2 configuration endpoint will provide the user_info endpoint documentation 但是,v2配置端点将提供user_info端点文档
If you want to read the SharePoint user profile here is the documentation for the REST API, CSOM provides you some more capabilities. 如果要阅读SharePoint用户配置 文件 ,请参阅REST API 文档 ,CSOM为您提供了更多功能。
However if you don't have requirements mapping to reading specifically from SharePoint, I'd recommend instead using the Graph user endpoint . 但是,如果您没有需求映射到专门从SharePoint读取的内容, 我建议您改用Graph用户终结点 。 Documentation 文献资料
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.