JavaScript for Line of Business Applications
508.1K views | +80 today
Follow
JavaScript for Line of Business Applications
Keeping track of current JavaScript Frameworks that help design your clientside Business Logic Layers.
Curated by Jan Hesse
Beam to my Inbox:
Your new post is loading...
Your new post is loading...
Scoop.it!

JWT Authentication in Aurelia

JWT Authentication in Aurelia | JavaScript for Line of Business Applications | Scoop.it

This week community member Ryan Chenkie shows us how to implement JWT Authentication in Aurelia. Ryan is a full-stack developer from Canada who works for Auth0 as a Tech Writer where he provides in-depth tutorials and seed projects for the newest frameworks such as Angular 2, React, and Aurelia as well as other modern web technologies.

more...
No comment yet.
Scoop.it!

Creating your first Angular 2 app: From authentication to calling an API and everything in between

Creating your first Angular 2 app: From authentication to calling an API and everything in between | JavaScript for Line of Business Applications | Scoop.it

Learn how to create a real world angular 2 app using Pipes, Directives, Components, DI, ES6 and much more! We'll implement from Authentication to calling an API and everything in between.

more...
No comment yet.
Scoop.it!

How to use JSON web token authentication with Sails.js

How to use JSON web token authentication with Sails.js | JavaScript for Line of Business Applications | Scoop.it
Using JSON webtoken authentication for consuming rest-api from your Single Page Application is pretty common these days. In this post I'll be helping you to use it in your Sails.js App. Well'll be using simplest user name and password...
more...
No comment yet.
Scoop.it!

Adding authentication to your React Flux app

Adding authentication to your React Flux app | JavaScript for Line of Business Applications | Scoop.it

However, once you start creating a bigger app, you realize that just using React isn’t enough. So you start looking at Flux, which is the architecture Facebook uses to create React apps.

As we learned in a previous blog post, learning how to conduct authentication in a Single Page App can get super complex. We had to learn about tokens, JWTs and how to integrate them with SPAs. Learning how to do it with Flux is even harder! That’s why in this blogpost we’ll learn how to add authentication to a React Flux app.

Jan Hesse's insight:

https://github.com/auth0/react-flux-jwt-authentication-sample

more...
No comment yet.
Scoop.it!

Ember Authentication Tutorial with Ember Simple-Auth

Ember Authentication Tutorial with Ember Simple-Auth | JavaScript for Line of Business Applications | Scoop.it

Today we are going to dive into creating a simple application with Facebook authentication using ember-simple-auth and Torii.


Ember Simple Auth is a lightweight library for implementing authentication with Ember.js applications. It handles all the session data and makes it really easy to authenticate against external providers or your own server. For the purposes of this tutorial we'll stick with authenticating against Facebook.

Torii is a set of abstractions that is built with a number of providers and a session manager. We'll be using the facebook-oauth2 provider that comes with Torii.

more...
No comment yet.
Scoop.it!

Emberjs authentication from scratch without using add-ons

Emberjs authentication from scratch without using add-ons | JavaScript for Line of Business Applications | Scoop.it

This is a follow-up of my last blog post 3 patterns for authentication in Emberjs.

Contents:

1. The Session Service Object
2. The Authenticated Route
3. The Session-Manager component
4. The Login Route
5. The Application Route
6. The User object

more...
No comment yet.
Scoop.it!

The Ins and Outs of Token Based Authentication

The Ins and Outs of Token Based Authentication | JavaScript for Line of Business Applications | Scoop.it

Token based authentication is prominent everywhere on the web nowadays. With most every web company using an API, tokens are the best way to handle authentication for multiple users.

The traditional way of having our applications remember who we are is to store the user logged in information on the server. This can be done in a few different ways on the session, usually in memory or stored on the disk.

more...
No comment yet.
Scoop.it!

The Login Page: Angular JS and Spring Security Part II

The Login Page: Angular JS and Spring Security Part II | JavaScript for Line of Business Applications | Scoop.it
In this article we continue our discussion of how to use Spring Security with Angular JS in a “single page application”. Here we show how to use Angular JS to authenticate a user via a form and fetch a secure resource to render in the UI. This is the second in a series of articles, and you can catch up on the basic building blocks of the application or build it from scratch by reading the first article, or you can just go straight to the source code in Github. In the first article we built a simple application that used HTTP Basic authentication to protect the backend resources. In this one we add a login form, give the user some control over whether to authenticate or not, and fix the issues with the first iteration (principally lack of CSRF protection).
more...
No comment yet.
Scoop.it!

Testing Auth0 login on AngularJS with Protractor

Testing Auth0 login on AngularJS with Protractor | JavaScript for Line of Business Applications | Scoop.it
A simple example of how testing Auth0 login on AngularJS with Protractor can be done

My intention with this test is to transform it into a common method that I can use in any Protractor test with the help of the Page Object Pattern.

Jan Hesse's insight:

Follow-Up: https://ngmilk.rocks/2014/10/14/refactoring-auth0-login-tests-on-angularjs-with-protractor/

more...
No comment yet.
Scoop.it!

Token based Authentication with Nodejs & Redis

Token based Authentication with Nodejs & Redis | JavaScript for Line of Business Applications | Scoop.it

In order to build our own Token-based Authentication mechanism, we will need a token generator and a redis database to store the token with informations.

We need to generate an unique token when a user sign in. We create a route: POST /user/signin with {username,password} as body parameters. In this route, we check the credentials provided by the client with our user database (MongoDB, MySQL, or whatever database you are using). If the credentials are valid, we generate a token. In order to generate an unique token, we use the Crypto module.

more...
No comment yet.
Scoop.it!

Tutorial: Easy authentication for Sails.js apps

Tutorial: Easy authentication for Sails.js apps | JavaScript for Line of Business Applications | Scoop.it
Learn how to quickly setup Twitter, Facebook or local authentication for your Sails.js app using Passport.js and sails-generate-auth.
more...
No comment yet.
Scoop.it!

Authentication for Single Page Apps with Torii for EmberJS

Authentication for Single Page Apps with Torii for EmberJS | JavaScript for Line of Business Applications | Scoop.it

Torii is a set of abstractions for handling authentication and session management in Ember.js applications.

Torii encourages you to work with composable, RESTful APIs by isolating authorization (through providers) from authentication (through adapters).

Torii is composed of just three primitives, and just three possible actions.

Torii powers your JavaScript application’s session so that you only need to implement the exchange of an authorization object for a session object and current user. All the social authorization concerns stay out of your way.


Jan Hesse's insight:

http://vestorly.github.io/torii/

http://www.slideshare.net/bantic/torii-emberjs-authentication-library

more...
's curator insight, June 22, 2014 10:39 PM

How can i soop it :)))

Scoop.it!

Using JSON Web Tokens to Authenticate JavaScript Front-Ends on Rails

Using JSON Web Tokens to Authenticate JavaScript Front-Ends on Rails | JavaScript for Line of Business Applications | Scoop.it

Since those dark times, a few tools have cropped up and improved the landscape. As I mentioned before, I have recently been working on a project that I wanted to have a stand-alone front-end app for (inb4 single page apps don't work). I wanted to avoid the messes I've encountered with JavaScript-heavy Rails apps and keep Rails as API-centered as possible. Once I had a functioning back-end, I knocked together a rudimentary front-end with React using Bower to manage dependencies and Jekyll to compile it all down to a static page.

more...
No comment yet.
Scoop.it!

How To Handle User Authentication With AngularJS

How To Handle User Authentication With AngularJS | JavaScript for Line of Business Applications | Scoop.it

Implementing a login and user authentication system for your AngularJS app seems to be one of the hardest problems people encounter. My article on a simple login with Ionic and AngularJS is the far most viewed article on this blog, every day! As the mentioned article only describes a basic system for a very low level security, this article will highlight everything you need for a complete user authentication and login inside your AngularJS app!



In particular this means, this article will show you how to:

  • Log in a user and store the user session (Token based auth!)
  • Protect your routes based on authentication status and role of the user
  • Notice when an unauthorised request was made and a new login is required
more...
No comment yet.
Scoop.it!

Authenticate a Node.js API with JSON Web Tokens

Authenticate a Node.js API with JSON Web Tokens | JavaScript for Line of Business Applications | Scoop.it

Authentication is one of the big parts of every application. Security is always something that is changing and evolving.

We’ll build a quick API using Node and Express and we’ll be using POSTman to test it.

The main workflow of this is that we will:

  1. Have unprotected and protected routes
  2. A user will authenticate by passing in a name and a password and get back a token
  3. The user will store this token on their client-side and send it for every request
  4. We will validate this token, and if all is good, pass back information in JSON format
more...
No comment yet.
Scoop.it!

Google API OAuth with PhoneGap's InAppBrowser

Google API OAuth with PhoneGap's InAppBrowser | JavaScript for Line of Business Applications | Scoop.it

Google’s OAuth documentation seems to indicate OAuth 2.0 for installed applications fits the bill for a mobile application.

The idea is to use an embedded web browser to show the OAuth consent page. If the user grants access, we can get the authorization code out of the embedded browser’s title property. We PhoneGap developers have InAppBrowser for embedded browsing, so this should be a piece of cake!

Jan Hesse's insight:

Follow Up:

http://phonegap-tips.com/articles/oauth-with-phonegaps-inappbrowser-expiration-and-revocation.html

more...
No comment yet.
Scoop.it!

Ember.js Authentication - the right way

Ember.js Authentication - the right way | JavaScript for Line of Business Applications | Scoop.it

Ember.js's built in objects and structure are great, to use them correctly is to enjoy all it's power. So you wonder, what is the best way to use Ember.js's and it's well grounded structure to build your user's authentication?

This article will not cover the authentication api part, because it's already well covered on good articles like codeberry's Authentication With EmberJS - Part 1, which we will use in this example, but we'll use the rails gem instead of the rails-api gem to make use of the assets pipeline.

The part two on that article deals with the authentication task through EmberJS with an AuthManager component, which is clever idea, but it follows a path that leads to deal with the authentication part as a component, which leads to step outside of the framework's path in some cases, like accessing the store object outside of a route or controller. And it can lead to some problems or difficulties in the future.

more...
No comment yet.
Scoop.it!

Implement Passport.js authentication with Sails.js ~0.10

Sails.js v0.10.5 - Passport.js v0.2.1 - Waterline ORM v0.10...


Due to the number of outdated examples about this subject that I've seen on the web, I might save your day by writing an updated, working one, by myself.

more...
No comment yet.
Scoop.it!

Spring and Angular JS: A Secure Single Page Application

Spring and Angular JS: A Secure Single Page Application | JavaScript for Line of Business Applications | Scoop.it
In this article we show some nice features of Spring Security, Spring Boot and Angular JS working together to provide a pleasant and secure user experience. It should be accessible to beginners with Spring and Angular JS, but there also is plenty of detail that will be of use to experts in either. This is actually the first in a series of articles on Spring Security and Angular JS, with new features exposed in each one successively. We’ll improve on the application in the second and subsequent installments, but the main changes after this are architectural rather than functional.
Jan Hesse's insight:

http://spring.io/blog/2015/01/12/the-login-page-angular-js-and-spring-security-part-ii

http://spring.io/blog/2015/01/20/the-resource-server-angular-js-and-spring-security-part-iii

http://spring.io/blog/2015/01/28/the-api-gateway-pattern-angular-js-and-spring-security-part-iv

https://spring.io/blog/2015/02/03/sso-with-oauth2-angular-js-and-spring-security-part-v

http://spring.io/blog/2015/03/23/multiple-ui-applications-and-a-gateway-single-page-application-with-spring-and-angular-js-part-vi


more...
No comment yet.
Scoop.it!

Meteor.js Two-Factor authentication

Meteor.js Two-Factor authentication | JavaScript for Line of Business Applications | Scoop.it

This article is for developers, who're already familiar with Meteor, and faced the problem of implementing two-factor authentication. Further you'll find whole logic and code for its implementation. No pictures, but lots of code.

In my case, the second factor is code, sent by SMS via Twilio service. But you can swap the second factor for your own after you get in touch with the further code.

more...
No comment yet.
Scoop.it!

JWT-Backed Authentication with Ember and Express

JWT-Backed Authentication with Ember and Express | JavaScript for Line of Business Applications | Scoop.it

Our application will be split in two — a front-end web client written with EmberJS, and a JSON API powered by ExpressJS — each within their own self-contained project.

If you want to use JWT in your Ember Apps today there is a new extension by the team behind Blimp (Jose Padilla and Giovanni Colazzo) for the popular Simple Auth Add-on by Simple Labs.

more...
No comment yet.
Scoop.it!

Twitatron: Building a production web app with Node

Twitatron: Building a production web app with Node | JavaScript for Line of Business Applications | Scoop.it

Using Favatron as a guide, I will take you through the entire process of creating a fully functional production ready Node web application. Some of the many parts we will touch on include authorization, user accounts, data storage, background workers, security, email, APIs, RSS, third party service integrations, and much more.

I am proud to introduce Twitatron, the web application we will be making. Twitatron will automatically monitor your Twitter account for mentions. When it finds those mentions, it will process them, store them, show them in the UI, expose them via an API endpoint and RSS feed, send an email digest, and share weekly stats with integrated social networks.

more...
No comment yet.
Scoop.it!

node-webkit and Firebase - Simple and Social Authentication

node-webkit and Firebase - Simple and Social Authentication | JavaScript for Line of Business Applications | Scoop.it

In this post, we will take a look at the Integration between Firebase Simple Authentication and node-webkit. We are going to use slush generators to scaffold basic apps for us. Then we will create and configure a Firebase account to manage Simple Authentication i.e. Email and Password and Social Authentication using Twitter, Google and Facebook services.

more...
No comment yet.
Scoop.it!

Authentication in a Backbone application with node.js on the server

One way to implement authentication/authorization in single page Backbone application, with node.js/express on the server.

Features
  • Authentication in single page
  • Login user
  • Persistent login with cookies
  • Sighnup
  • Logout
  • User roles - public, user, admin
  • Determinig which routes are viewable based on the user's role
  • Basic web forms

more...
No comment yet.