hi
New here, so excuse if I tackle asking this question the wrong way
I have a node js app running on a server that connects to SharePoint using adfs (node-sp-auth)
Works like a charm
Porting this app to a new env, the admins of that env tell me to 'include the (url of the) identity provider to be used for authentication' ....
Right. ??
Don't know if my question makes sense, but all help is greatly appreciated
When I go to a SP site via the browser I get a (logon) screen, which asks me to choose the place (identity provider ?) where my credentials are kept.
After choosing that I can give my credentials
My node app has no knowledge of this 'choosing an identity provider' so the authentication fails ? because the receiving end does not know where to validate ?
Hence the admins ask me to 'include the identity provider in my call
That's what I make of it anyway
getlistitemchangessincetoken
API endpoint (see more: https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/synchronize-sharepoint-items-using-the-rest-service) the actual changes can be recived.
tbh that's not a trivial question, it depends on type of authentication used by your SharePoint instance you're trying to reach out
one option would be implementing the same type of authentication in your app, then enabling cors in SharePoint 2013 to be able to send cors request from one domain (your app) to SharePoint
another option use server-side code with any kind of authentication (username and password) and perform all kind of operation from server
the last option is provider-hosted app
you can try to post your question on a forum https://sharepoint.stackexchange.com or https://techcommunity.microsoft.com/t5/SharePoint/bd-p/SharePoint_General
OK I don't know if the solution is a benefit for spsave, because I am a junior developer and new to sharepoint. But what I have:
export async function getLibraryItems(libraryUrl: string, con: IConnection): Promise<string[]> {
let apiUrl = libraryUrl.endsWith("/") ? libraryUrl + "_api/web/lists" : libraryUrl + "/_api/web/lists";
let reqR = await sharepointGET(apiUrl, con);
let arr: any[] = reqR.d.results;
let result: string[] = [];
for (let i: number = 0, l: number = arr.length; i < l; i++) {
result.push(arr[i].Title);
}
return result;
}
In my case (I don't know if it is for every case), uploading is always to a library. So I will use the method above to check what folders? I have in the library and save the result in a static variable (don't call it every time) | staticVar[libraryUrl] = result;
if the root folder is not in the variable I will do a doublecheck (maybe someone did an update) and in case the folder is not in it I throw an error.