1. Mar 28, 2023
    • Martin Brude's avatar
      Merge branch 'master' into PEMA-392 · dd186023
      Martin Brude authored
      * master:
        PEMA-247 - add link in home
      dd186023
    • Martin Brude's avatar
      Merge branch 'master' into PEMA-247 · a384f7d1
      Martin Brude authored
      * master:
        PEMA-341 Updated pbxproj
        Revert "PEMA-341removed superflous ->void."
        PEMA-341removed superflous ->void.
        PEMA-341 Cleaned up Rating+UI
        PEMA-341 Refractored to take in account disabled state
        PEMA-341 Removed old icons.
        PEMA-341 Refractored code
        PEMA-341 Updated to use Rating+pEp instead of color+UI
        PEMA-341 Added darkmode .pdfs
        PEMA-341 Updated Rating+pEp to handle new icons
        PEMA-341 Added new icons
        PEMA-341 Updated Rating+pEp
        PEMA-341 added .pdf images
        PEMA-341 Added images, moved image getting to rating
      a384f7d1
  2. Mar 17, 2023
  3. Mar 16, 2023
  4. Mar 15, 2023
    • Sascha Bacardit's avatar
      PEMA-341 Updated to use Rating+pEp instead of color+UI · 13f21a45
      Sascha Bacardit authored
      Now that all the UI-elements are generated from Rating instead of Color, usage of color+UI has been reduced.
      13f21a45
    • Sascha Bacardit's avatar
      PEMA-341 Added darkmode .pdfs · 0d2cfe2a
      Sascha Bacardit authored
      Added Darkmode .pdf
      0d2cfe2a
    • Sascha Bacardit's avatar
      PEMA-341 Updated Rating+pEp to handle new icons · 462685af
      Sascha Bacardit authored
      New icons need handling (msg vs no msg)
      Will check how to handle disabled states, and if they are even needed on Rating+pEp
      462685af
    • Sascha Bacardit's avatar
      PEMA-341 Added new icons · 224f5f1c
      Sascha Bacardit authored
      Added missing icons
      224f5f1c
    • Sascha Bacardit's avatar
      PEMA-309 Updated code as per codereview requests · cd29f22e
      Sascha Bacardit authored
      Added guard let construct
      Properly intended messages
      Fixed incoherent messages (sometimes no email provider name, sometimes it had it on ouath)
      cd29f22e
    • Sascha Bacardit's avatar
      PEMA-309 further refined code · bc07b5aa
      Sascha Bacardit authored
      After reading the code review the following changes have been added:
      -Made isCloud less exposing to inner data.
      -Added descriptor for LoginProtocol
      -Added guard let to most functions in LoginUtil and those using callbacks from it.
      bc07b5aa
    • Sascha Bacardit's avatar
      PEMA-309 removed class · 7de07fed
      Sascha Bacardit authored
      OIDAuthState should not exist (moved to messagemodel)
      7de07fed
    • Sascha Bacardit's avatar
      PEMA-309 refractored classes · 41fb6bd2
      Sascha Bacardit authored
      After review, most classes had small issues with their formating or location, as such the following has been fixed:
      Added proper tab and formating for them
      Renamed certain classes to keep within expected logic (CamelCase, OIDAuthState+JWT)
      Moved OIDauthState to messagemodel along with most OAuth adjacent classes where it should be.
      Changed OIDAuth signature to remove references to things the class shouldn't know (such as the name of fields inside the JWToken) 
      Refractored OAuth2AccessToken and protocol to fit with being able to give email and name from the JWToken.
      41fb6bd2
    • Sascha Bacardit's avatar
      PEMA-309 · 7c7cc5e4
      Sascha Bacardit authored
      Further cleaned up the classes, added less strange ways to set up things and removed oddities like an initialise function which didn't make much sense, as the protocol doesn't really care how you handle your responses.
      7c7cc5e4
    • Sascha Bacardit's avatar
      PEMA-309 · cac5a4ba
      Sascha Bacardit authored
      Cleaned up code, removed old dead code and added placeholder tests.
      Additionally added comments to the stranger functions (OIDauth extension).
      cac5a4ba
    • Sascha Bacardit's avatar
      PEMA-309 · 760136c5
      Sascha Bacardit authored
      Added temporary test placeholders.
      760136c5
    • Sascha Bacardit's avatar
      PEMA-309 Added LoginLogic, JWT parser class · 5110ab11
      Sascha Bacardit authored
      Added abstraction class for login, it should handle all cases and all internal login logic (saving data, etc...) only returning an error state or a success state.
      
      Adjusted both LoginViewModel and AccountTypeSelectorViewModel to work with it, along with that AccountTypeSelectorViewModel now properly logs the user.
      
      Extended OIDAuthState to parse JWTokens.
      
      TODO: 
      Make VM/VC more cohesive between both with marks, etc...
      Troubleshot bugs.
      Pass tests and update them with the new login logic.
      Move and re-name new classes to their proper places in the internal structure and logic of the project.
      Cleanup the new classes.
      PEMA-309 Fixed bug
      
      UI was set to be permanently loading, it isn't anymore.
      5110ab11
    • Sascha Bacardit's avatar
      PEMA-309 Altered log in logic · e7a428d4
      Sascha Bacardit authored
      The process to log in via OAuth2 is now seamless, when the OAuth logging button is pressed and post segue to the login screen, the OAuth2 process will be automatically launched and all the important user data will be set directly from the OAuth request.
      
      TODO: Properly review if moving all the login in logic to a helper would make it cleaner (as to avoid repeating this logic in both the login VM and account type select VM.
      TODO: Move the JWT logic to it's own class or library to mirror android and avoid dependency bloat.
      e7a428d4
    • Sascha Bacardit's avatar
      PEMA-309 Fixed bug with Office365 OAuth2 · 871f0725
      Sascha Bacardit authored
      Office 365 demands to add OpenID scope, google does not
      871f0725