Home

PnP provisioning engine CSOM with Multi Factor Authentication tenant

%3CLINGO-SUB%20id%3D%22lingo-sub-28523%22%20slang%3D%22en-US%22%3EPnP%20provisioning%20engine%20CSOM%20with%20Multi%20Factor%20Authentication%20tenant%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-28523%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20use%20PnP%20Provisioning%20engine%20to%20create%20site%20based%20on%20a%20template.%20The%20tenant%20that%20I%20am%20connecting%20to%20to%20create%20the%20site%20is%20using%20Multi%20Factor%20Authentication.%20I%20don't%20see%20a%20obvious%20way%20to%20authenticate%20and%20proceed%20with%20creation%20of%20sites%20based%20on%20tempalte.%20Could%20you%20please%20help%20me%20here%20with%20either%20sample%20or%20an%20approach%20to%20tackle%20this%20issue.%20I%20am%20using%20.NET%20C%23%20in%20CSOM%20in%20a%20Console%20app.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3CBR%20%2F%3EVijay%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-28523%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECSOM%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Epnpcore%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eprovisioning%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-29277%22%20slang%3D%22en-US%22%3ERE%3A%20PnP%20provisioning%20engine%20CSOM%20with%20Multi%20Factor%20Authentication%20tenant%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-29277%22%20slang%3D%22en-US%22%3EThe%20only%20way%20to%20do%20that%20is%20let%20people%20enter%20there%20credentials%20to%20authenthicate%20a%20better%20way%20would%20be%20to%20use%20a%20Azure%20app%20with%20client%20secret%20which%20is%20contextual%20login.%20as%20long%20as%20you%20are%20in%20development%20i%20would%20do%20a%20seperate%20tennant%20or%20disable%20MFA%20for%20that%20account%3C%2FLINGO-BODY%3E
Vijay Rajagopolan
New Contributor

I am trying to use PnP Provisioning engine to create site based on a template. The tenant that I am connecting to to create the site is using Multi Factor Authentication. I don't see a obvious way to authenticate and proceed with creation of sites based on tempalte. Could you please help me here with either sample or an approach to tackle this issue. I am using .NET C# in CSOM in a Console app.

 

Thanks,
Vijay

1 Reply
Highlighted
The only way to do that is let people enter there credentials to authenthicate a better way would be to use a Azure app with client secret which is contextual login. as long as you are in development i would do a seperate tennant or disable MFA for that account