The Fairway Technologies Blog

February 8, 2018 | Paul D. Sheriff

Security in Angular - Part 2

In Part 1 of this article, you created a set Angular classes for users and user authentication/authorization. You used these classes to login a user, create a set of properties in a class to turn menus and buttons on and off. In this article you learn to authenticate users against a Web API method. That method returns an authorization object with the same properties as the classes you created in Angular. You are also going to learn to secure your Web API methods using JSON Web Tokens (JWT). You use the [Authorize] attribute to secure your methods, and you learn to add security policies too.

November 29, 2017 | Paul D. Sheriff

Apply Angular Techniques to jQuery Applications - Part 2

In the last blog post you learned how to structure your jQuery applications like Angular applications. You created a single page on which to host all your other pages. In this post you are going to put those techniques to work by building a complete list, add, edit and delete page as shown in Figure 1 and Figure 2. You are going to use a Person table full of data such as First Name, Last Name, Email and Salary data for a set of people.

March 28, 2014 | Jeff Treuting

Making C# Enums Available Within Your Javascript

What's the problem that I'm trying to solve?

In my current project, I have a set of Enums on my server that represent certain lookup data.  For example, I have a PhoneType and AddressType Enums that I use instead of using the specific integer that is used in the database.  This makes the code more readable and there aren't a bunch of "magic ints" (tm/patent pending) thrown around throughout the code.  This is a fairly standard practice.

New Call-to-action

Sign Up For Our Monthly Newsletter

New Call-to-action