Can SPFx webparts be used on anonymous access sites? (on-prem)

%3CLINGO-SUB%20id%3D%22lingo-sub-128522%22%20slang%3D%22en-US%22%3ECan%20SPFx%20webparts%20be%20used%20on%20anonymous%20access%20sites%3F%20(on-prem)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-128522%22%20slang%3D%22en-US%22%3E%3CP%3EGreetings.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20couldn't%20find%20a%20direct%20answer%20for%20this.%20As%20the%20title%20suggests%2C%20can%20you%20use%20SPFx%20webparts%20with%20anonymous%20access%20enabled%20SharePoint%20sites%3F%20For%20ex%3A%20Public%20facing%20SharePoint%20site%2C%26nbsp%3BSharePoint%20Server%202016%20with%20FP2.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-128522%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-131867%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20SPFx%20webparts%20be%20used%20on%20anonymous%20access%20sites%3F%20(on-prem)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-131867%22%20slang%3D%22en-US%22%3E%3CP%3EKiril%20-%20I%20am%20sorry%20but%20I%20think%20you%20are%20thinking%20(overthinking)%20this%20question%20way%20beyond%20its%20intention.%20Microservices%20arch.%20%2F%20Diff.%20LoB...%20These%20are%20not%20my%20questions.%20%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20not%20sure%20if%20something%20has%20fallen%20thru%20the%20translation%20here.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-131866%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20SPFx%20webparts%20be%20used%20on%20anonymous%20access%20sites%3F%20(on-prem)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-131866%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20this%20case%2C%20I%20would%20use%20to%20call%20an%20web%20API%20which%20could%20be%20based%20on%20microservices%20architecture%20for%20contacting%20different%20LoB%20systems%20-%20including%20SP%20Online%2C%20on-premises%20server%2C%20etc.%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20architecture%20could%20give%20you%20the%20benefit%20of%20running%20different%20DLLs%20(required%20for%20both%20online%20and%20on-premises%20-%20they%20use%20different%20DLLs)%20in%20their%20own%20context%20(as%20a%20daemon).%20For%20example%2C%20in%20our%20implementations%20we%20call%20these%20%22adapters%22%20and%20we%20just%20plug%20them%20into%20our%20%22service%20bus%22%20application%2C%20expose%20adapter%20properties%20(for%20example%20these%20could%20be%20credentials%20or%20query%20parameters)%20through%20an%20interface%20and%20we%20work%20with%20any%20LoB%20system%20that%20way.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-131859%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20SPFx%20webparts%20be%20used%20on%20anonymous%20access%20sites%3F%20(on-prem)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-131859%22%20slang%3D%22en-US%22%3EOn%20on-premises%20server%3F%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-131856%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20SPFx%20webparts%20be%20used%20on%20anonymous%20access%20sites%3F%20(on-prem)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-131856%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20this%20case%20I%20would%20use%20the%20Graph%20APIs%20(I%20think%20they%20are%20about%20to%20be%20released%20as%20GA)%20or%20an%20Azure%20Function%20%2F%20Azure%20Web%20API%20(depends%20on%20the%20complexity%20of%20the%20operations)%20solution%20to%20make%20calls%20utilizing%20the%20Add-in%20context%20(Client%20ID%20%2F%20Client%20Secret).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-131846%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20SPFx%20webparts%20be%20used%20on%20anonymous%20access%20sites%3F%20(on-prem)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-131846%22%20slang%3D%22en-US%22%3EHey%20Folks.%20Just%20bumping%20this%20up.%20Any%20clues%3F%20Is%20there%20a%20limitation%3F%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Greetings. 

 

I couldn't find a direct answer for this. As the title suggests, can you use SPFx webparts with anonymous access enabled SharePoint sites? For ex: Public facing SharePoint site, SharePoint Server 2016 with FP2.

 

Thanks. 

 

5 Replies
Highlighted
Hey Folks. Just bumping this up. Any clues? Is there a limitation?
Highlighted

In this case I would use the Graph APIs (I think they are about to be released as GA) or an Azure Function / Azure Web API (depends on the complexity of the operations) solution to make calls utilizing the Add-in context (Client ID / Client Secret).

Highlighted
On on-premises server??
Highlighted

In this case, I would use to call an web API which could be based on microservices architecture for contacting different LoB systems - including SP Online, on-premises server, etc.

This architecture could give you the benefit of running different DLLs (required for both online and on-premises - they use different DLLs) in their own context (as a daemon). For example, in our implementations we call these "adapters" and we just plug them into our "service bus" application, expose adapter properties (for example these could be credentials or query parameters) through an interface and we work with any LoB system that way.

Highlighted

Kiril - I am sorry but I think you are thinking (overthinking) this question way beyond its intention. Microservices arch. / Diff. LoB... These are not my questions.

I am not sure if something has fallen thru the translation here.