How to use Office UI Fabric in your Web Applications

The Office UI Fabric framework is a easy to use UI framework that provides you with CSS and JavaScript components allowing you to style your web applications, making them seamlessly integrate with the Office 365 and SharePoint Online user experience.

You can fine out more at on the Office UI Fabric site and you can visit the Office UI JS GitHub site here to find out how to use the JavaScript components.

In my video here I show a quick demo of how to include the components in your own web application.

Azure AD JavaScript authentication tutorial series (Part 1)

I have put together a video tutorial series that goes through step by step a full end to end solution that shows how to authenticate an Azure AD Web API application from JavaScript code using the adal.js library.

Now days I am finding myself designing my applications to use a web service layer to serve up data from data stores.  Providing REST API endpoints on top of your data gives alot of benefits when it comes to integrating your data across different client applications. JavaScript runs pretty much everywhere now and it’s the to go to language to build client side apps so accessing your REST endpoints from JavaScript is a really appealing solution and this is why pretty much everyone is doing JavaScript and REST now.

The JavaScript ecosystem today is massive with libraries to help you build pretty comprehensive applications. When I am building SharePoint Add-Ins I tend to expose the data using Web API and stick to using JavaScript in the application to render the data and build out the UI. Most if the time there is no need for server side code inside my client application.

Inevitably you will want to secure your web service layer at some point and if your are building on the Azure platform, then Azure AD is a great OAuth solution.

It is especially a good solution if you are building SharePoint Add-Ins in Office 365. When you are logged into your Office 365 SharePoint site you have already authenticated against your Azure AD and as long as you deploy your applications to the same Azure AD instance then you get automatically authenticated when accessing your Web API layer.

When building these apps I found that there was plenty of examples on authenticating from C# code but I found the examples lacking if I just wanted to use JavaScript to authenticate against my Web API.

The adal.js library comes in very handy here but I found all the examples were based around using it with Angular. Although Angular is a great framework for building client side apps I found most of the time it was overkill for what I wanted to do.  So these set of videos show how you might want to design and build a client side application and in this case a SharePoint Add-In that uses Azure AD authentication, Web API, JavaScript and TypeScript.

The general architecture looks like this.

Thumbnail

 

The first video is up and it shows how to create a SQL Azure database, create a Web API layer and how to model and scaffold the data using Entity Framework.

 

Microsoft pulls SharePoint 2013 SP1 update package

So yesterday Microsoft added a notice below to the SharePoint 2013 SP1 KB article 2817429

We have recently uncovered an issue with this Service Pack 1 package that may prevent customers who have Service Pack 1 from deploying future public or cumulative updates. As a precautionary measure, we have deactivated the download page until a new package is published.

The SP1 download package is no longer available and the official advice is to NOT install the SP1 update package in your production environment until further notice.

However the SharePoint 2013 SP1 installation image from MSDN  is apparently not affected so you can still use this image to create new SharePoint 2013 installations (as with my development environment video series).

The reason the update was pulled is that there might be issues with this particular package that could prevent further cumulative updates and services packs being applied on a server with this service pack installed.

We will have to wait and see what Microsoft advise going forward, I guess they will just release a new package that addresses the issue, lets hope sooner than later.