     resendConfirmationEmail: (credentials = {}) ->
       Promise.resolve(axios(
         Requests.wrapCredentials({
-          url: getConfirmation()
+          url: getConfirmationUrl()
           method: 'GET'
         }, credentials)
       ))

  getUsersUrl  = -> Configuration.get('heraclesUrl') + '/directory/users'
  usersInRealmUrl = -> Configuration.get('heraclesUrl') + '/directory'
  setFirstLoginUrl = -> Configuration.get('heraclesUrl') + '/directory/setlogin'
  getConfirmation = -> Configuration.get('heraclesUrl') + '/registration/confirmation/resend'
  getVerification = -> Configuration.get('heraclesUrl') + '/registration/verification/'
  getUserIdFromEmail = (email) -> Configuration.get('heraclesUrl') + '/directory/validate/sharing/email/' + email
  getUserSettingUrl = (userSetting) -> getUserUrl() + '/setting/' + userSetting


    sendConfirmationToken: (uuid, token) ->
      Promise.resolve(axios(
        Requests.wrapCredentials({
          url: getVerificationUrl() + uuid + '/' + token
          method: 'GET'
        })
      ))
