Mar 20 2018 05:29 AM
Hi Guys,
Is it possible to secure access to the SharePoint Rest APIs using ADAL? getting confused messages from blog posts
I have created an "Application Registration" in Azure Active Directory and and I can authenticate using its secret to get a token. However when I pass the token as part of my SharePoint rest call I get a 401 error.
I have done something similar using Dynamics and ADAL and I had to assign rights to the registered application within Dynamics. I did not do this in SharePoint however I did give it Application Rights in the Azure portal
Thanks
Joe
Mar 21 2018 12:34 PM
Hi @Joe Gill,
Can you tell us what SharePoint resource you are trying to access to (i.e what is your REST call) and what permissions you've set for your AAD app? It can be simply a normal behavior due to insufficient permissions.
Mar 22 2018 12:45 AM
Maybe this webcast could give you also some more insights on securely accessing APIs using the SharePoint FrameWork (SPFx).
https://dev.office.com/blogs/calling-enterprise-applications-securely-from-sharepoint-framework
Mar 22 2018 01:53 AM
Hi Franck,
I gave the application rights as follows in Azure AD. Just trying to go a GET to read items
Is it possible to use ADAL for server to server authentication to SharePoibt online?
Thanks
Joe
Mar 22 2018 05:56 AM
Mar 26 2018 07:38 AM
Mar 26 2018 07:42 AM
Hi Franck
Not had a chance yet. Thinking of using the SharePoint CSOM and wrap this in an API which we can call
thanks for you help
Cheers
Joe