Skip to content
  1. Oct 17, 2023
    • jlouvel's avatar
      [amundi] Set STATE_DURATION to 10 · aa688373
      jlouvel authored and Damien Mat Jedrzejewski's avatar Damien Mat Jedrzejewski committed
      Module keeps an authorization header even when it's not valid anymore.
      Since storage lifespan is pretty short on the website (10 minutes and
      can't be refreshed), setting STATE_DURATION in the browser to match
      website behavior and do a new login if needed.
      aa688373
    • jlouvel's avatar
      [amundi] Add token_header to the states · 21e14251
      jlouvel authored and Damien Mat Jedrzejewski's avatar Damien Mat Jedrzejewski committed
      Recently, parent module amundi was updated to handle 2FA. Locate browser
      is silently crashing with a 401 most of the time, making the module
      login again from scratch. This is because token_header is not in the
      state while some URLs need it or the response will be a 401. Adding it
      to the state to keep the value between synchronizations. caels child
      module is crashing in a non-silent way because the 401 is happening in
      iter_accounts (locate_browser loads another URL and everything is fine,
      so the 401 is not happening in it and is not catched). Anyway, wether
      this is in locate_browser for amundi or iter_accounts in caels, the root
      of the issue is the same, we have to provide token_header when needed.
      21e14251
    • sfartit's avatar
      [amundi] Handle SCA · 4bad1270
      sfartit authored and Damien Mat Jedrzejewski's avatar Damien Mat Jedrzejewski committed
      Amundi implemented optionnal mfa.
      4bad1270
    • Nelson Amorim Branco's avatar
      [amundi] Move labanquepostale's URL to handled ones · dc221b69
      Nelson Amorim Branco authored and Damien Mat Jedrzejewski's avatar Damien Mat Jedrzejewski committed
      Previously, the URL was ignored, it's no more the case.
      The investments_details are handled in child module though.
      dc221b69
  2. Jun 21, 2023
  3. Jun 04, 2023
  4. Jun 01, 2023
  5. Apr 08, 2023
  6. Apr 04, 2023
  7. Mar 28, 2023
  8. Mar 13, 2023
  9. Feb 17, 2023
  10. Feb 03, 2023
  11. Feb 01, 2023
  12. Dec 13, 2022
    • Tom LARGE's avatar
      [amundi] Fix Account has not attribute _sub_accounts · 0dcc4579
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      _sub_accounts attribute wasn't set properly, which caused
      an attribute error on iter_history, investment and pockets.
      It is now set into pages.py.
      0dcc4579
    • Tom LARGE's avatar
      [amundi] Fix investment unit value · be1264b5
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      Unit value was doubled by mistake.
      be1264b5
    • Tom LARGE's avatar
      [amundi] Fix master account id · 17c90bd0
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      As we previously weren't returning the right
      accounts and ids and that end users were deactivating
      accounts with a balance equal to 0, previous commits
      caused an issue regarding matching of activated accounts.
      
      To solve that we simply set the master_account id to the id of the
      first positive balance sub account.
      17c90bd0
    • Tom LARGE's avatar
      [amundi] Fix account object has not sub_accounts · 2075fc03
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      Previous commits
      do not handle _sub_accounts properly in merge_accounts
      function due to a wrong loop organization and naming.
      
      Fix regression:
      
      ̀`AttributeError Account has not attribute _sub_accounts`.
      
      This was caused by a for loop that had the same name as
      a variable.
      
      To solve that we now fetch the master_account before
      merge loops.
      
      It avoids nested loops and allows us to return all
      accounts in case there is no master (we are not sure if
      it is possible).
      2075fc03
    • Tom LARGE's avatar
      [amundi] Fix fake and splitted accounts · d6735e0d
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      This fix aims to reproduce how Amundi processes
      accounts datas.
      
      eg: a user sees on his dashboard 2 accounts,
      but the site returns us 16 accounts.
      And all of them are linked to a "real" account,
      actually an account that the user sees.
      
      So we link them thanks to the "merge_accounts" function.
      
      We remove the "fakes" ones and ad their balances to reproduce
      what the site does, and so what the user sees.
      
      We repeat this behavior for investements too.
      d6735e0d
    • Tom LARGE's avatar
      [amundi] Lint module · 25156923
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      25156923
    • Heddy's avatar
      [amundi] fix pocket for PER and PERCO · 89775ba1
      Heddy authored and Alexandre BONIN's avatar Alexandre BONIN committed
      Pocket condition should be set
      to CONDITION_RETIREMENT for
      PER and PERCO
      89775ba1
    • Heddy's avatar
      [amundi] instantiate attribute · c1192c6d
      Heddy authored and Alexandre BONIN's avatar Alexandre BONIN committed
      c1192c6d
    • Tom LARGE's avatar
      [amundi] Fix wrong pass auth fail · 699e32de
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      Amundi updated their site and added three new keys
      into the POST data during the login request.
      plateform, country and city.
      It fixes the auth fail.
      699e32de
  13. Jun 13, 2022
  14. Apr 13, 2022
  15. Feb 18, 2022
  16. Jan 13, 2022
    • jlouvel's avatar
      [amundi] Set token header only on needed routes · f0475ede
      jlouvel authored
      amundi module gets a lot of data from other websites for investments.
      Some of the websites were not allowing us to access them because the
      authorization token header for browsing on amundi was always set. Now,
      the token is only set on for the pages needing it on amundi website
      only.
      f0475ede
    • jlouvel's avatar
      [amundi] New URL for bnp_investments · 260587c7
      jlouvel authored
      amundi module goes to various webistes in order to fetch some datas
      about investments. For some accounts, the website is BNP and we try
      to get fund_id on it. We already handle an URL that looks like
      http://blabla/entreprises/fonds which still exists.
      Now added /epargnants/fonds.
      260587c7
    • jlouvel's avatar
      [amundi] New login and changes for the parsing · 38249205
      jlouvel authored
      Amundi's authorization token is now obtained on a new route called
      virtualkeyboard (there's no VK for the moment). We must do a GET on a
      specific route before that with a UUID that must be kept for the
      virtualkeyboard page. BaseURL for Amundi Epargne Salariale has changed,
      as well as Amundi TC and Amundi CA.
      There's also a captcha that is now handled (Google reCAPTCHA v2). Some
      of the JSON we use for parsing have a slightly different structure.
      The accounts on the website are all in ActionNeeded (the user must
      confirm his email), but fortunately, we can still scrap what we need and
      ignore that for the moment.
      38249205
  17. Apr 04, 2021
  18. Feb 12, 2021
  19. Aug 26, 2020