templateUrl: 'testapi-ui/components/guidelines/guidelines.html',
controller: 'GuidelinesController as ctrl'
}).
- state('communityResults', {
- url: '/community_results',
- templateUrl: 'testapi-ui/components/results/results.html',
- controller: 'ResultsController as ctrl'
- }).
+ // state('communityResults', {
+ // url: '/community_results',
+ // templateUrl: 'testapi-ui/components/results/results.html',
+ // controller: 'ResultsController as ctrl'
+ // }).
state('userResults', {
url: '/user_results',
templateUrl: 'testapi-ui/components/results/results.html',
}).
state('authPortal', {
url: '/auth_portal',
- templateUrl: 'testapi-ui/components/auth/authPortal.html'
+ templateUrl: 'testapi-ui/components/auth/authPortal.html'
}).
state('authFailure', {
url: '/auth_failure',
$rootScope.auth.doSignIn = doSignIn;
$rootScope.auth.doSignOut = doSignOut;
$rootScope.auth.doSignCheck = doSignCheck;
-
+
var sign_in_url = testapiApiUrl + '/auth/signin';
var sign_out_url = testapiApiUrl + '/auth/signout';
// need auth to browse
ctrl.isUserResults = $state.current.name === 'userResults';
- ctrl.currentUser = $scope.auth.name;
+ ctrl.currentUser = $scope.auth.currentUser ? $scope.auth.currentUser.openid : null;
console.log($scope.auth);
// Should only be on user-results-page if authenticated.
'per_page': CONF.api_results_per_page
}
+ curr_user = self.get_secure_cookie(auth_const.OPENID)
+ if curr_user is None:
+ raises.Unauthorized(message.no_auth())
+
query = yield self.set_query()
yield self._list(query=query, **limitations)
logging.debug('list end')