Repository navigation
General/Authentication Provider-specific configuration file schema for ASP.NET development #1759
Unanswered
mkmills-ec
asked this question in
Q&A
Replies: 1 comment 2 replies
|
@mkmills-ec just to clarify, you are asking what you should set in the appsetting.json so that when running services.Configure<PnPCoreOptions>(Configuration.GetSection("PnPCore"));
services.AddPnPCoreAuthentication();
services.Configure<PnPCoreAuthenticationOptions>(Configuration.GetSection("PnPCore"));in your ASP.NET Core web app it will use X509Certificate, so the same method as provided here is that right? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm just wondering if there's somewhere that I'm able to plainly see (or that someone might be able to explain to me) what the PnPCore and PnPCore.Auth libraries are expecting in terms of configuration for usage in an ASP.NET Core web app? I'm struggling a little to ascertain what each authentication provider requires (in terms of the properties/values to provide in the appsettings.json) so that when I call
builder.Services.Configure<PnPCoreOptions>(builder.Configuration.GetSection("PnPCore"));it deserialises into the correctly-typed authentication provider.In my particular case, I'm trying to use the X509CertificateAuthenticationProvider as a part of my workflow, but I'm uncertain what PnPCore needs in the configuration so that the array items under Credentials > Configurations in appsettings.json get deserialised into the appropriate X509CertificateAuthenticationProvider.
If this is something that requires me to provide the configuration manually as a part of the DI & services container configuration then I can, but I'm sure that isn't necessary :)
All reactions