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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user