Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SSO] - [PR 4] - SSO/Token login functionality #453

Merged
merged 81 commits into from
Aug 23, 2021

Commits on Aug 18, 2021

  1. Add method to query login types

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    e0fcec9 View commit details
    Browse the repository at this point in the history
  2. Create LoginMethod for password login

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    20765d9 View commit details
    Browse the repository at this point in the history
  3. Rewrite password login to use PasswordLoginMethod

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    a53e297 View commit details
    Browse the repository at this point in the history
  4. Make lint happy

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    acfe3f3 View commit details
    Browse the repository at this point in the history
  5. Add license headers

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    72fb7f6 View commit details
    Browse the repository at this point in the history
  6. Add explaining comment

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    46b7d9a View commit details
    Browse the repository at this point in the history
  7. Move files to separate directory

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    730a6b2 View commit details
    Browse the repository at this point in the history
  8. Formatting fix

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    9651817 View commit details
    Browse the repository at this point in the history
  9. Pass log as argument

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    f3946fc View commit details
    Browse the repository at this point in the history
  10. Allow sso to be a root segment

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    18e1c30 View commit details
    Browse the repository at this point in the history
  11. Parse loginToken from query parameter

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    19664e5 View commit details
    Browse the repository at this point in the history
  12. Add test

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    e2d2291 View commit details
    Browse the repository at this point in the history
  13. Add method that returns callback url

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    3efadcb View commit details
    Browse the repository at this point in the history
  14. Add method to redirect to a specific URL

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    987a83b View commit details
    Browse the repository at this point in the history
  15. Ignore sso segment in url

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    74f5e30 View commit details
    Browse the repository at this point in the history
  16. Support loginToken query in History

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    bed0185 View commit details
    Browse the repository at this point in the history
  17. Add functionality to remove loginToken from URL

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    b261374 View commit details
    Browse the repository at this point in the history
  18. Show link for SSO login

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    75d7171 View commit details
    Browse the repository at this point in the history
  19. Show completion view on sso segment

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    4b87887 View commit details
    Browse the repository at this point in the history
  20. Add view

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    2103adf View commit details
    Browse the repository at this point in the history
  21. Remove queryLoginFromInput()

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    2c953e3 View commit details
    Browse the repository at this point in the history
  22. Move normalizeHomeserver to LoginViewModel

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    0af27fc View commit details
    Browse the repository at this point in the history
  23. Remove unnecessary braces

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    ce5fdd4 View commit details
    Browse the repository at this point in the history
  24. Replace link with button

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    c82af5a View commit details
    Browse the repository at this point in the history
  25. Move view to correct directory

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    cabffd5 View commit details
    Browse the repository at this point in the history
  26. Split login view into password and sso components

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    b8f0361 View commit details
    Browse the repository at this point in the history
  27. Style sso button

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    93720f6 View commit details
    Browse the repository at this point in the history
  28. Style CompleteSSOLoginView

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    6c6c4c7 View commit details
    Browse the repository at this point in the history
  29. Save homeserver before redirecting

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    e424293 View commit details
    Browse the repository at this point in the history
  30. Set and get strings

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    daeeaa2 View commit details
    Browse the repository at this point in the history
  31. Implement token login

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    66f28b9 View commit details
    Browse the repository at this point in the history
  32. Parse token/sso login in loginOptions

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    3fa955e View commit details
    Browse the repository at this point in the history
  33. Use generic language in session load status

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    683d2c2 View commit details
    Browse the repository at this point in the history
  34. Remove Login vm

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    474a4bb View commit details
    Browse the repository at this point in the history
  35. Implement SSO

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    98f8f04 View commit details
    Browse the repository at this point in the history
  36. Give sso homeserver storage key a better name

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    f8b0ef0 View commit details
    Browse the repository at this point in the history
  37. Implement SSOLoginHelper

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    4b72b64 View commit details
    Browse the repository at this point in the history
  38. Split SSOLoginViewModel

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    c4e7dc3 View commit details
    Browse the repository at this point in the history
  39. Move normalizeHomeserver into session container

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    7b9ec55 View commit details
    Browse the repository at this point in the history
  40. Fix test

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    db3fd3d View commit details
    Browse the repository at this point in the history
  41. Give argument better name

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    d2c94b0 View commit details
    Browse the repository at this point in the history
  42. rename queryLogin to getLoginFlows

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    83f4095 View commit details
    Browse the repository at this point in the history
  43. Check correct login method early

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    13cb897 View commit details
    Browse the repository at this point in the history
  44. Move homeserver input into LoginView

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    10a6aca View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2021

  1. Remove defaultHomeServer prop

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    17f1d6b View commit details
    Browse the repository at this point in the history
  2. Rename start to createViewModels

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    738603e View commit details
    Browse the repository at this point in the history
  3. Inline method

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    068fba3 View commit details
    Browse the repository at this point in the history
  4. Move logic to vm

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    daf7af1 View commit details
    Browse the repository at this point in the history
  5. rename ssoEndpointLink to createSSORedirectURL

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    2d842c7 View commit details
    Browse the repository at this point in the history
  6. Remove unwanted check

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    ed278e3 View commit details
    Browse the repository at this point in the history
  7. make method private

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    3af2ae3 View commit details
    Browse the repository at this point in the history
  8. Move back-button to login view

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    5ab405f View commit details
    Browse the repository at this point in the history
  9. Move input into t.if

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    80ea48e View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2021

  1. Refactor to pull loadvm into login vm

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    bdc860e View commit details
    Browse the repository at this point in the history
  2. Do not override childOptions

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    dadeb7f View commit details
    Browse the repository at this point in the history
  3. Remove homeserver prop

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    2468bc3 View commit details
    Browse the repository at this point in the history
  4. Internationalize and remove dash

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    9482998 View commit details
    Browse the repository at this point in the history
  5. resetStatus from within startLogin

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    c650b35 View commit details
    Browse the repository at this point in the history
  6. Rename defaultHomeserver to homeserver

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    5ca7323 View commit details
    Browse the repository at this point in the history
  7. Remove unwanted if

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    0e7a9e2 View commit details
    Browse the repository at this point in the history
  8. Fix emit for isBusy

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    784b06d View commit details
    Browse the repository at this point in the history
  9. Set busy state from login vm

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    ff8417d View commit details
    Browse the repository at this point in the history
  10. Internationalize + add back old message

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    355468b View commit details
    Browse the repository at this point in the history
  11. Separate errors for each vm

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    a2677a6 View commit details
    Browse the repository at this point in the history
  12. Red + bold error

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    55da588 View commit details
    Browse the repository at this point in the history
  13. No need to pass showError

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    82067ca View commit details
    Browse the repository at this point in the history
  14. Add spinner

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    a5985cb View commit details
    Browse the repository at this point in the history
  15. No need to observe

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    0630452 View commit details
    Browse the repository at this point in the history
  16. Add explaining comment

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    94ba93a View commit details
    Browse the repository at this point in the history
  17. Use homeserver from login method

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    0e6139d View commit details
    Browse the repository at this point in the history
  18. add missing emit

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    d47e126 View commit details
    Browse the repository at this point in the history
  19. Convert link to button

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    04806a1 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2021

  1. Split logintoken into two words

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    84fd286 View commit details
    Browse the repository at this point in the history
  2. Also check LoadStatus.Error

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    c9fbafb View commit details
    Browse the repository at this point in the history
  3. Do not set error message to empty string

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    ecfdc31 View commit details
    Browse the repository at this point in the history
  4. Fix toggleBusy

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    69478b8 View commit details
    Browse the repository at this point in the history
  5. Remove duplicate style

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    e80667c View commit details
    Browse the repository at this point in the history
  6. More simpler navigation

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    b0db7e0 View commit details
    Browse the repository at this point in the history
  7. Rename toggle to set

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    fc169af View commit details
    Browse the repository at this point in the history
  8. Catch any error from queryLogin

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    c9319c7 View commit details
    Browse the repository at this point in the history
  9. Make navigation simpler

    Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
    MidhunSureshR committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    ef4db4a View commit details
    Browse the repository at this point in the history