Forum Discussion
RajKumar_Allepu
Jul 19, 2021Copper Contributor
Can we use Client ID and secret to connect to Project Online API instead of username and password ?
Hi All,
Just like Sharepoint online, Instead of using user name and password, can we use client ID and secret to connect Project Online APIs (CSOM or REST)?
Any help would be greatly appreciated.
Thanks in Advance.
- pvanberloSteel Contributor
RajKumar_Allepu Using an app registration in Azure AD, permissions can be provided to access various Project related APIs. They're listed under SharePoint.
- Those are all Delegate permissions though, not application ones, so you cannot use the client credentials flow with them.
- RajKumar_AllepuCopper ContributorHi Vasil Michev & pvanberlo,
Thanks for your response. That means we still need to supply user name and password to create a projectcontext object correct?
Have referred the below Brian smith's blog, I can see that still he was reading the user credentials with an interactive dialog.
https://techcommunity.microsoft.com/t5/project-support-blog/app-user-authentication-and-project-online-development/ba-p/1925443