Skip to content
  • npaillasson's avatar
    [boursorama] Rework strong authentication · 5bbb1c96
    npaillasson authored and Romain Bignon's avatar Romain Bignon committed
    Implemented:
    - 'handle_polling' method
    - 'handle_email' method
    
    Modified:
    - 'handle_sms' method
    - The way we validate 2fa
    
    Users no longer have the choice of authentication method,
    and the site may require consecutive 2fa (e.g SMS + mail).
    To prevent inifine 2fa loops, we've limited consecutive 2fa
    to two.
    
    in the case of appVal, the site may request the user to scan
    a QR code. Since we can't yet handle this kind of 2fa, we
    raise an AuthMethodNotImplemented exception.
    
    Additionally, sorted import and housekeeping.
    5bbb1c96