I am trying to build SharePoint Online Adapter using Microsoft.SharePointOnline.CSOM version 16.1.7018.1200
I am struggling in finding for this REST API the correct Endpoint URLs. Some of them might be same as in GDrive (since both of them are using OAuth2), but still I am a bit confused. My questions is about: - Scope, LoginBaseUrl, AccessTokenBaseUrl and UserInfoEndpointUrl
As an example in GDrive situation was:
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! So far I was able to find code samples only for Read operations.
If any additional information is required please let me know.
Best regards, SVG