Skip to content

Instantly share code, notes, and snippets.

View renant's full-sized avatar

Renan Teixeira renant

View GitHub Profile
@renant
renant / AngularJS-Windows-Authentication.authentication.js
Created December 22, 2015 19:12 — forked from definitelynotsoftware/AngularJS-Windows-Authentication.authentication.js
AngularJS Windows Authentication Service using .NET Web API and Hot Towel template
angular.module('app')
.factory("authentication", ["$http", "$q", "$window", authentication]);
function authentication($http, $q, $window) {
var user;
function login() {
// check if the user already exists for this session