Skip to main content

Questions tagged [webapi]

The tag has no usage guidance.

1 vote
1 answer
139 views

Creating a secure .Net WebAPI for Sharepoint without AAD

I need to call my custom .Net 6 core web api from on-premise sharepoint 2019 webpart. The users are already being authenticated using on-premise Active Directory. I want to pass the authentication ...
Talha Anwer's user avatar
0 votes
0 answers
607 views

Make SetIsOriginAllowed Safe for SharePoint WebAPI?

I'm working on a test WebAPI for SharePoint that is secured with Azure AD via bearer tokens. At first, I manually specified every allowed origin with a statement like this inside ConfigureServices ...
Shawn Eary's user avatar
0 votes
1 answer
176 views

Column naming convention with spfx & search

I want to retrieve data from a SharePoint list, at the same time I want to retrieve data from web api in my spfx webpart. So basically what I want is to have a unified component that can just connect ...
B1B's user avatar
  • 153
1 vote
0 answers
67 views

Sharepoint 2016 On Prem Single sign on with Web API

We have a SharePoint 2016 on premise site which uses both the forms based authentication and windows authentication. We are planning to add SharePoint framework web parts(SPFx) to the site. For that ...
SPKan's user avatar
  • 151
3 votes
1 answer
327 views

SharePoint Online Webhook with ngrok "Access Denied"

I am trying to follow bellow documentation of Microsoft https://docs.microsoft.com/en-us/sharepoint/dev/apis/webhooks/get-started-webhooks I have given below permission azure app But when I send ...
Milind's user avatar
  • 1,548
2 votes
1 answer
462 views

Spfx Web Part - API call sometimes fails to execute

I have a custom web part that uses aadHttpClientFactory to authenticate with AAD and then get data from an API secured with AAD. It works flawlessly most of the time. Periodically, though, it gets ...
TheIronCheek's user avatar
0 votes
1 answer
347 views

Custom web part unable to call custom web API

I'm unable to get my custom web part to connect to my custom Web API. Ultimately, my goal is to secure the API using Azure AD and then call that API from my web part. In the local workbench, I'm ...
TheIronCheek's user avatar
1 vote
1 answer
68 views

Unable to approve API permissions from API Management page

I created a custom web part that calls a web API I created. When I deployed the web part, I went to approve the required permissions and received the following errors: [HTTP]:500 - [CorrelationId]:...
TheIronCheek's user avatar
0 votes
1 answer
651 views

I am writing a web api code to upload documents in specific folder using csom code using savebinarydirect method, which is failing

I can upload the documents using a console app, but when using the same code in. Net Web API, I am getting an error saying, "Microsoft.Sharepoint.Client.File" doesn't contain a method "...
user11099777's user avatar
1 vote
0 answers
940 views

SharePoint authentication - Web api

Goodnight, I have a site in Sharepoint 2019 with a webpart spfx and I have a site where a web api runs with the business logic. The api has Windows authentication From SharePoint I can connect to ...
Andres Correal's user avatar
1 vote
1 answer
362 views

SharePoint 2019 - Web API

Goodnight, I have a WEB API application with windows authentication, and I have an SPFX application in sharepoint 2019. Everything is on premise. How can I authenticate the api with the current ...
Andres Correal's user avatar
1 vote
0 answers
112 views

SPFX Sharepoint 2019

I created an app in spfx on sharepoint online and connect to a app service use AadClient. It's possible to do the same in SharePoint 2019 On Premise and On Premise Api?. Thanks
Andres Correal's user avatar
1 vote
0 answers
226 views

Web api - Http 302 - SPFX

Good afthernoon I have a project in sharepoint framework and a Web API project with Azure AD authentication. In the API I have a controller with Autorize Attribute. If the WEB API runs in localhost,...
Andres Correal's user avatar
1 vote
0 answers
33 views

Can a custom web api using Azure AD App Only token get throttled by SharePoint Online? [closed]

I have 02 custom web api. One using user and password and another using Azure AD App Only token to connect to SharePoint Online. None of them are performing batch activities, but simple CRUD ...
Luis Falcon's user avatar
3 votes
0 answers
1k views

Calling ASP.NET Web API 2 from an SPFx webpart

I am facing an issue with authenticating my SPFx webpart against an Azure AD backed Web API. What I have done so far is Created a ASP.NET WEB API 2 project. Added OWIN and configured CORS and OIDC in ...
Tanmay's user avatar
  • 517

15 30 50 per page