Migrate aurelia-oauth plugin to version 0.3.0

OAuth, Aurelia, Plugins, JS, HttpClient, and FetchClient

Aurelia + OAuth2

Recently, I found a little of spare time to work on my aurelia-oauth plugin to implement fixes, improvements and add new features. In this post I want to present latest plugin changes and describe a few steps that are required to migrate your project to the latest plugin version - 0.3.0.

Jasmine - Run test case multiple times with different input data

Jasmine, Unit, Tests, and Test Cases

Jasmine Specification

Jasmine is a well-known behaviour driven framework for testing JavaScript code, which is both powerful and helpful when writing unit tests to provide sustainable code base. Quite often during implementation of unit test cases, we need to cover one particular scenario multiple times using different input data. Later on, I am going to show simple helper code to do it nice and easy.

Aurelia Typescript Skeleton improvements

Aurelia, Skeleton, Typescript, Productivity, and Tools

Skeleton app

Aurelia provides a few different skeletons to start building your application as fast and efficient as possible. I want to share with you a couple of productivity changes I made in skeleton to improve day-to-day work.

Karma Code Coverage for all typescript files

Karma, Coverage, Gulp, Typescript, and Aurelia

Karma Coverage

Using Karma-Coverage plugin with JavaScript module imports in most cases can lead you to some odd overall coverage results. In this post I will provide you a solution, how to make sure that code coverage is calculated based on all source files.

User authentication using OAuth2 based on simple Aurelia plugin

OAuth, Aurelia, Plugins, JS, Typescript, and HttpClient


Why authorization plugin is helpful?

aurelia-oauth is a plugin for Aurelia to provide support of user authorization using OAuth 2.0 Authorization Framework. Here you can find live demo using Google API setup.

aurelia-oauth has very similar functionality as ADALjs library and can be easily configured to integrate with OAuth2 APIs such as Azure Active Directory, Google etc.