From b70aee0abbfb32c79cf37f2c80b936067af9ab82 Mon Sep 17 00:00:00 2001 From: Jon Lambson Date: Mon, 28 Aug 2017 14:32:52 -0600 Subject: [PATCH] still trying --- js/app.js | 4 ++-- js/services/auth-service.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/app.js b/js/app.js index 798cdd0..4b4b198 100644 --- a/js/app.js +++ b/js/app.js @@ -129,13 +129,13 @@ app.run(['$rootScope', '$state', 'Auth', '$location', function($rootScope, $stat console.log('stuff here ->', toState); if (!angular.equals(toState.data.session, {})) { if ('access_token' in urlParams && 'refresh_token' in urlParams && 'issuer' in urlParams && 'audience' in urlParams) { - Auth.add(urlParams) + Auth.add(urlParams); console.log('CURRENT SESSION IS: ',Auth.sessions); } } console.log('WHERE', $rootScope.redirectedURL ); - // $state.go('splash-page', { 'toState': toState.name }); + $state.go('splash-page', { 'toState': toState.name }); } }); }]); diff --git a/js/services/auth-service.js b/js/services/auth-service.js index caf8580..8f6a09b 100644 --- a/js/services/auth-service.js +++ b/js/services/auth-service.js @@ -22,6 +22,7 @@ app.factory('Auth', [ return Auth.sessions || false; } , add: function (session) { + console.log('what ya adding'); console.log(session); var obj = JSON.parse(localStorage.getItem(dapSessions) || 'null') || {}; var dapName = 'dap-' + session.subject + '|' + session.issuer; @@ -70,7 +71,7 @@ app.factory('Auth', [ return Auth.session; } , get: function (session) { - console.log('mother fucking'); + console.log('session:::::::'); console.log(session); if (!session) { return $q.resolve(null); @@ -81,7 +82,6 @@ app.factory('Auth', [ } var name = session.token.sub + '@' + session.token.iss; - console.log('NAME', name); var promise; var sess;