Replies: 1 comment
-
So it turns out, if you turn OFF the Authentication settings in Azure, which I had enabled, this resolves the issue. This problem is not specific to PnP Core SDK as, after creating a mocking service exhibited the same behaviour. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I am trying to build an Web API to serve Microsoft 365 Copilot teams toolkit based extensions. I have it all working with Web API published to Azure Web App, but auth is temperamental after a period I get a 403 error.
I have used a standard .net web api app, have a app registration that supports delegated permissions to SharePoint (Sites.Selected). Used PnP Core SDK + a custom auth provider to use the token from Web API in calls to SharePoint via the Graph. Bit like here: https://pnp.github.io/pnpcore/using-the-sdk/custom-authentication-provider.html
It works, I can read/write data to SharePoint but after a small period (think 30 mins) it starts getting 403 errors in Azure. The web app has identity configured, if the token for that is invalid it generates 401s.
Custom API Provider
Web API Configuration
Any ideas?
I plan to eventually submit this to community sample as well to this repo, if i can stablise the auth issue.
CC: @PaoloPia - do you think Im doing any craziness here, or do you know a way to streamline.
Sadly diagnostic tools arent working well either so quite hard to diagnose.
Beta Was this translation helpful? Give feedback.
All reactions