pnp / sp-dev-samples

Code samples for SharePoint add-ins, web hooks and other API samples
MIT License
85 stars 129 forks source link

Questions about code #10

Closed levalencia closed 7 years ago

levalencia commented 7 years ago

Category

[ x] Question [ ] Bug [ ] Enhancement

I was checking the code and I found something I couldnt understand, can you please explain these sections, thanks in advance.

What is spoppe.com or windows-ppe.net? if (new Uri(url).DnsSafeHost.Contains("spoppe.com")) { cc = am.GetAppOnlyAuthenticatedContext(url, realm, clientId, clientSecret, acsHostUrl: "windows-ppe.net", globalEndPointPrefix: "login"); } else { cc = am.GetAppOnlyAuthenticatedContext(url, clientId, clientSecret); }

frankmarasco commented 7 years ago

Those are the Microsoft test environment endpoints that we used for testing.