Integrated auth into the UI project and unit tests (you need to log in each time with arbitrary username/password). Fixes authorization, the auth check SHOULD return a 401 so that the MainController re-fires the auth check in order to re-set the 'authenticated' scope flag. Fixed err caused by trying to launch login dialog too many times when too many http calls fail. Converted over authResource to use correct resourcePromise structure. The mock auth is done with angular cookies, so integrated that too. Removes main.js since we don't use it anymore. Fixes media mocks. Removes call to get sections in navigationService since it is irrelevant and causing more issues when not authenticated.

This commit is contained in:
Shannon
2013-07-10 13:24:28 +10:00
parent 5a18c0b0e2
commit 0f207b01f2
31 changed files with 421 additions and 444 deletions

View File

@@ -1,7 +1,7 @@
[
'lib/jquery/jquery-1.8.2.min.js',
'lib/jquery/jquery.cookie.js',
'lib/angular/angular.min.js',
'lib/angular/angular-cookies.min.js',
'lib/bootstrap/js/bootstrap.js',
'lib/underscore/underscore.js',
'lib/umbraco/Extensions.js',