Category: .Net

Azure Functions, SignalR, and Authorization

If you are using SignalR in Azure Functions with Users and Groups, there’s quite a gap in the available documentation online.  With this post, I’m hoping to help you get your Functions + SignalR working with Users and Groups. Users...

Stop Using var (C#)!

Stop Using var (C#)!

I just picked up Andrew Troelsen and Philip Japikse’s Pro C# 7 Eighth Edition to catch up on some of the more recent language and platform changes (being stuck in SharePoint 2010 for 8 years will do that to you!)....

Working with Box OpenAPI Clients

In May of this year, Box announced an OpenAPI specification for their API endpoints.  The specification is available on their Github site, but in implementing it, I found few practical examples and no examples for C#/.NET. To start with, you...

Adventures in Single-Sign-On: Cross Domain Script Request

Consider a scenario where a user authenticates with ADFS (or equivalent identity provider (IdP)) when accessing a domain such as https://www.domain.com (A) and then, from this page, a request is made to https://api.other-domain.com/app.js (B) to download a set of application...

Adding Support for Azure AD Login (O365) to MVC Apps

I spent the day toying around with ASP.NET MVC 5 web applications and authentication.  I won’t cover the step-by-step as there are plenty of blogs that have it covered. It seems that online, most examples and tutorials show you either...

Invoking Custom WCF Services in SharePoint with Claims

Invoking Custom WCF Services in SharePoint with Claims

In SharePoint, if you host a custom WCF service in a claims-enabled application, the authentication via NTLM is actually quite tricky if you are attempting to invoke it from a console application, for example. There are various articles and Stackoverflow...