question

JoergSchrocke-7328 avatar image
0 Votes"
JoergSchrocke-7328 asked MichaelHan-MSFT commented

Access SharePoint/ProjectServer with AzureAD Authentication from .Net/C# application

Hi,

We have setup our SharePoint 2019/ProjectServer on-premise environment to authenticate via AzureAD by using the Trusted Provider solution.

Previously we used NTLM to connect to the sites, but this is fully disabled now. Our question is now, how to connect to SharePoint/Project Server by providing the credentials e.g. in a .Net or C# application?

Any ideas or recommendations?

Thanks for your help.

Joerg

office-sharepoint-server-development
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JoergSchrocke-7328,

Is there any update on your issue? If you have found the solution, you could share it. It would be helpful to others who have similar issues in the future.

0 Votes 0 ·

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered

Hi @JoergSchrocke-7328,

Not sure if this works for you. But you could try to use the AuthenticationManager Class to get SharePointContext in SharePointPnPCore.

Reference: https://docs.microsoft.com/en-us/dotnet/api/officedevpnp.core.authenticationmanager?view=sharepoint-pnpcoreol-3.2.1810


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.