anchor.diff:  ##
   # Page to edit an already added authentication provider
   ##
  -Application.Controllers.controller "EditAuthenticationController", ["$scope", "$state", "$stateParams", "$rootScope", "dialogs", "growl", 'providerPromise', 'mappingFieldsPromise', 'AuthProvider', '_t'
  -, ($scope, $state, $stateParams, $rootScope, dialogs, growl, providerPromise, mappingFieldsPromise, AuthProvider, _t) ->
  -
  +Application.Controllers.controller "EditAuthenticationController", ["$scope", "$state", "$stateParams", "$rootScope", "$uibModal", "dialogs", "growl", 'providerPromise', 'mappingFieldsPromise', 'AuthProvider', '_t'
  +, ($scope, $state, $stateParams, $rootScope, $uibModal, dialogs, growl, providerPromise, mappingFieldsPromise, AuthProvider, _t) ->
  +
  +  ## parameters of the currently edited authentication provider
     $scope.provider = providerPromise
   
  -  $scope.authMethods = METHODS
  -
     $scope.mode = 'edition'
  -
  -  $scope.mappingFields = mappingFieldsPromise
   
     ##
     # Update the current provider with the new inputs
  
positive.code:     if mapping.local_model == 'user' and mapping.local_field == 'uid' and not mapping._destroy
        return true
    return false
  
  
  
  
negative.code: 
  
  
    ## Using the AuthenticationController
    new AuthenticationController($scope, $state, $uibModal, mappingFieldsPromise)
  ]
  
  
  