Skip to content

Exception when doing authentication with x509certificate #1261

Answered by jansenbe
nepgya2803 asked this question in Q&A
Discussion options

You must be logged in to vote

@ngqtrieu99 : the .NET dependency injection parts should not be in the method that you use to request a PnPContext, adding the services to the dependency container should only happen once. I'm not familiar with .NET development on AWS, but for Azure Functions you would inject the services in program.cs and then use these services for your actual services (see https://pnp.github.io/pnpcore/demos/Demo.AzureFunction.OutOfProcess.AppOnly/readme.html and https://github.com/pnp/pnpcore/tree/dev/samples/Demo.AzureFunction.OutOfProcess.AppOnly for the code). You can also checkout our Polyglot notebook on application permissions: https://github.com/pnp/pnpcore/blob/dev/docs/polyglot/Getting%20star…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nepgya2803
Comment options

@nepgya2803
Comment options

Answer selected by nepgya2803
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants