Questions tagged [webapi]
The webapi tag has no usage guidance.
33
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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]:...
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 "...
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 ...
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 ...
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
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,...
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 ...
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 ...