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

feat: add MFA support (disabled by default) #736

Merged
merged 233 commits into from
Oct 18, 2022
Merged

feat: add MFA support (disabled by default) #736

merged 233 commits into from
Oct 18, 2022

Commits on Jun 14, 2022

  1. db: add initial schema

    joel@joellee.org committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    2e8505a View commit details
    Browse the repository at this point in the history
  2. fix: update migrations

    joel@joellee.org committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    1410733 View commit details
    Browse the repository at this point in the history
  3. fix: add additional constraints

    joel@joellee.org committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    9050cf8 View commit details
    Browse the repository at this point in the history
  4. fix: add default

    joel@joellee.org committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    aaa3d99 View commit details
    Browse the repository at this point in the history
  5. chore: remove whitespace

    joel@joellee.org committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    c4f8164 View commit details
    Browse the repository at this point in the history
  6. chore: remove email as a type

    joel@joellee.org committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    0ca6741 View commit details
    Browse the repository at this point in the history
  7. fix: prevent updated_at from being nullable

    joel@joellee.org committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    f83ab8e View commit details
    Browse the repository at this point in the history
  8. chore: update comments

    joel@joellee.org committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    04eac13 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2022

  1. feat:enable and disable mfa

    joel@joellee.org committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    6699405 View commit details
    Browse the repository at this point in the history
  2. refactor: remove model files

    joel@joellee.org committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    76c0c6b View commit details
    Browse the repository at this point in the history
  3. Merge branch 'master' of https://github.com/supabase/gotrue into j0_a…

    …dd_enable_add_disable
    joel@joellee.org committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    8fd5ba8 View commit details
    Browse the repository at this point in the history
  4. fix: pull in master

    joel@joellee.org committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    146cb6f View commit details
    Browse the repository at this point in the history
  5. Merge branch 'master' of https://github.com/supabase/gotrue into j0_a…

    …dd_db_changes
    joel@joellee.org committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    e796995 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'j0_add_db_changes' of https://github.com/supabase/gotrue

    …into j0_add_enable_add_disable
    joel@joellee.org committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    6885b79 View commit details
    Browse the repository at this point in the history
  7. refactor: rename backup codes to recovery codes

    joel@joellee.org committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    b761423 View commit details
    Browse the repository at this point in the history
  8. fix: update number of user fields

    joel@joellee.org committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    3afbc97 View commit details
    Browse the repository at this point in the history
  9. Update signup_test.go

    J0 committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    040e6d0 View commit details
    Browse the repository at this point in the history
  10. test: disable and disable

    joel@joellee.org committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    9cdc5d5 View commit details
    Browse the repository at this point in the history
  11. Merge branch 'j0_add_enable_add_disable' of https://github.com/supaba…

    …se/gotrue into j0_add_enable_add_disable
    joel@joellee.org committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    dc31a46 View commit details
    Browse the repository at this point in the history
  12. feat: add recovery codes api

    joel@joellee.org committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    ce8f5b3 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2022

  1. feat: add initial modles for factor

    joel@joellee.org committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    6349e8f View commit details
    Browse the repository at this point in the history
  2. feat: initial enroll endpoint

    joel@joellee.org committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    4f5895e View commit details
    Browse the repository at this point in the history
  3. feat: initial commit for challenge API

    joel@joellee.org committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    0fa9752 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    680941a View commit details
    Browse the repository at this point in the history
  5. refactor: split based on factor simple name or id

    joel@joellee.org committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    53c089d View commit details
    Browse the repository at this point in the history
  6. refactor: make endpoints idempotent

    joel@joellee.org committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    9c9516b View commit details
    Browse the repository at this point in the history
  7. chore: undo whitespace change

    joel@joellee.org committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    f4e7a2f View commit details
    Browse the repository at this point in the history
  8. chore: remove whitespace

    joel@joellee.org committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    cb6a175 View commit details
    Browse the repository at this point in the history
  9. chore: naming and initial tests

    joel@joellee.org committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    4c7ae3f View commit details
    Browse the repository at this point in the history
  10. test: add model test for good measure

    joel@joellee.org committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    c7bdbc4 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2022

  1. feat: add find factor methods

    joel@joellee.org committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    fef5980 View commit details
    Browse the repository at this point in the history
  2. fix: change method definitions

    joel@joellee.org committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    c191073 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2022

  1. initial commit for verify factor

    joel@joellee.org committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    3027ef9 View commit details
    Browse the repository at this point in the history
  2. test: add tests, remove factor_ prefix

    joel@joellee.org committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    55dee45 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3e86dbf View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2022

  1. tests: add http test

    joel@joellee.org committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    b1fa20a View commit details
    Browse the repository at this point in the history
  2. feat:initial verify endpoint

    joel@joellee.org committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    4ea0986 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2022

  1. tests: add more tests

    joel@joellee.org committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    023f584 View commit details
    Browse the repository at this point in the history
  2. chore: merge in downstream changes

    joel@joellee.org committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    d1be5ff View commit details
    Browse the repository at this point in the history
  3. refactor: remove whitespace changes and minor labels

    joel@joellee.org committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    285ac43 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'j0_generate_recovery_codes' of https://github.com/supab…

    …ase/gotrue into j0_generate_recovery_codes
    joel@joellee.org committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    0c99b1c View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2022

  1. fix: update db schema

    joel@joellee.org committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    d26c628 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2022

  1. refactor: add states for factor_status

    joel@joellee.org committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    e98ff1e View commit details
    Browse the repository at this point in the history
  2. fix: update statuses

    joel@joellee.org committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    77c1fa8 View commit details
    Browse the repository at this point in the history
  3. fix: add semicolon

    joel@joellee.org committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    1bebb39 View commit details
    Browse the repository at this point in the history
  4. refactor: change bools to timestamps

    joel@joellee.org committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    684e4fc View commit details
    Browse the repository at this point in the history
  5. Merge pull request #496 from supabase/j0_add_db_changes

    Add DB changes
    J0 committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    61e46a8 View commit details
    Browse the repository at this point in the history
  6. refactor: drop _mfa suffix

    joel@joellee.org committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    76e42aa View commit details
    Browse the repository at this point in the history
  7. Merge pull request #500 from supabase/j0_add_enable_add_disable

    Add Enable and Disable toggles
    J0 committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    21e32da View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    14ba5f1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d8a0537 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    124ff88 View commit details
    Browse the repository at this point in the history
  11. refactor: change recovery code ID type to uuid

    joel@joellee.org committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    aa81ee8 View commit details
    Browse the repository at this point in the history
  12. fix: set length of token back to 8

    joel@joellee.org committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    8948b71 View commit details
    Browse the repository at this point in the history
  13. refactor: revert code consumption time to used_at

    joel@joellee.org committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    b025bdd View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2022

  1. test: add test for FindValidRecoveryCodesByUser

    joel@joellee.org committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    23090cd View commit details
    Browse the repository at this point in the history
  2. refactor: convert var names to lowercase

    joel@joellee.org committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    f3ac106 View commit details
    Browse the repository at this point in the history
  3. fix: add error check at end of GenerateRecoveryCodes

    joel@joellee.org committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    5e27983 View commit details
    Browse the repository at this point in the history
  4. chore: run gofmt -s -w

    joel@joellee.org committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    9d0618f View commit details
    Browse the repository at this point in the history
  5. Merge pull request #501 from supabase/j0_generate_recovery_codes

    Generate Recovery Codes
    J0 committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    a457637 View commit details
    Browse the repository at this point in the history
  6. feat: pull in changes from main branch

    joel@joellee.org committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    7642d65 View commit details
    Browse the repository at this point in the history
  7. chore: resolve errors.go merge conflicts

    joel@joellee.org committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    5d546b6 View commit details
    Browse the repository at this point in the history
  8. refactor: update tests with new naming scheme

    joel@joellee.org committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    de3184a View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2022

  1. chore: run gofmt

    joel@joellee.org committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    36f8ac5 View commit details
    Browse the repository at this point in the history
  2. fix: update tests with new names

    joel@joellee.org committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    c653135 View commit details
    Browse the repository at this point in the history
  3. chore: renaming

    joel@joellee.org committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    4f2460a View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2022

  1. tests: refactor and add initial enroll factor tests

    joel@joellee.org committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    1ae17b7 View commit details
    Browse the repository at this point in the history
  2. fix: add associations from factor to user

    joel@joellee.org committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    006d478 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2022

  1. refactor: cleanup

    joel@joellee.org committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    6edf167 View commit details
    Browse the repository at this point in the history
  2. refactor: cleanup magic strings

    joel@joellee.org committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    ea4d346 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5ec3dfb View commit details
    Browse the repository at this point in the history
  4. refactor: remove newlines

    joel@joellee.org committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    ccdc78f View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2022

  1. chore: introduce new factor type

    joel@joellee.org committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    2bd0dfc View commit details
    Browse the repository at this point in the history
  2. fix: merge mfa into verify_factor

    joel@joellee.org committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    6b8b9d0 View commit details
    Browse the repository at this point in the history
  3. chore: backpatch naming

    joel@joellee.org committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    60c800b View commit details
    Browse the repository at this point in the history
  4. test: update verify factor test

    joel@joellee.org committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    141a71f View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2022

  1. refactor: add struct tags

    joel@joellee.org committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    327c9f1 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #502 from supabase/j0_enroll_device

    Add Enroll endpoint
    J0 committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    9deae93 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    32e093f View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2022

  1. refactor: add struct tas and change route names

    joel@joellee.org committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    f176f92 View commit details
    Browse the repository at this point in the history
  2. refactor: add struct tags and change route names

    joel@joellee.org committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    d4a5281 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #504 from supabase/j0_challenge_factor

    Add Challenge Factor
    J0 committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    1599ea8 View commit details
    Browse the repository at this point in the history
  4. fix: resolve merge conflicts

    joel@joellee.org committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    55a3bdf View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2022

  1. chore: reintroduce uncommented lines

    joel@joellee.org committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    e507103 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2022

  1. refactor: clean up tests

    joel@joellee.org committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    46e6586 View commit details
    Browse the repository at this point in the history
  2. chore: add misc config vars and errors

    joel@joellee.org committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    44c3baa View commit details
    Browse the repository at this point in the history
  3. tests: Add additional case for expried challenge + invalid code

    joel@joellee.org committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    4504906 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2022

  1. fix: patch test

    joel@joellee.org committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    7c06b18 View commit details
    Browse the repository at this point in the history
  2. chore: add newlines

    joel@joellee.org committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    718b501 View commit details
    Browse the repository at this point in the history
  3. chore: remove stray comment

    joel@joellee.org committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    1c71c1d View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2022

  1. refactor: delete challenge if expired

    joel@joellee.org committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    d70fce4 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #508 from supabase/j0_verify_factor

    Add Verify endpoint
    J0 committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    560cbc7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    beddffd View commit details
    Browse the repository at this point in the history
  4. refactor: remove type field from endpoint

    joel@joellee.org committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    a3ed021 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #565 from supabase/j0_mfa_fixes

    MFA fixes
    J0 committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    e5088b2 View commit details
    Browse the repository at this point in the history
  6. chore: speed up tests (#564)

    On a not-so-good laptop, a full test run went from ~90seconds to less
    than 10. Three independent changes were made:
    
    1 - In TruncateAll, use `delete from` instead of `truncate`. While
      truncate is faster for large tables, for small tables, it has
    considerably more overhead (my understanding is that delete just flags
    the tuple as dead, whereas truncate involves a vacuum-like operation).
    
    2 - In tests, use bcrypt.MinCost instead of bcrypt.DefaultCost
    
    3 - Use a 10 millisecond timeout, instead of 1 second timeout, for
    TestHookTimeout
    karlseguin authored and joel@joellee.org committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    237f69a View commit details
    Browse the repository at this point in the history
  7. Merge branch 'mfa' of https://github.com/supabase/gotrue into mfa

    joel@joellee.org committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    2ad9d68 View commit details
    Browse the repository at this point in the history
  8. feat: add admin delete methods

    joel@joellee.org committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    c65c136 View commit details
    Browse the repository at this point in the history
  9. feat: add unenroll endpoint

    joel@joellee.org committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    524c990 View commit details
    Browse the repository at this point in the history
  10. Revert "feat: add admin delete methods"

    This reverts commit c65c136.
    joel@joellee.org committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    0b63c9c View commit details
    Browse the repository at this point in the history
  11. fix: change behavior of unenroll

    joel@joellee.org committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    0c36586 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2022

  1. refactor: strip out /enable and /disable

    joel@joellee.org committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    f68aedb View commit details
    Browse the repository at this point in the history
  2. Revert "feat: add admin delete methods"

    This reverts commit c65c136.
    joel@joellee.org committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    0e90d48 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #568 from supabase/j0_refactor_endpoint_routes

    Strip out Enable/Disable
    J0 committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    3274e85 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2022

  1. refactr: move routes to /user

    joel@joellee.org committed Jul 28, 2022
    Configuration menu
    Copy the full SHA
    b50d0eb View commit details
    Browse the repository at this point in the history
  2. refactor: modify routes

    joel@joellee.org committed Jul 28, 2022
    Configuration menu
    Copy the full SHA
    0c2c9fc View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2022

  1. chore: remove stray comment

    joel@joellee.org committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    b0e5dda View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5374da8 View commit details
    Browse the repository at this point in the history
  3. Revert "chore: increase number of requests made so expected error is …

    …observed"
    
    This reverts commit 5374da8.
    joel@joellee.org committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    bb24b9a View commit details
    Browse the repository at this point in the history
  4. Merge pull request #570 from supabase/j0_patch_mfa_routes

    Refactor MFA Routes
    J0 committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    22effe7 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2022

  1. chore:resolve merge conflicts

    joel@joellee.org committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    0c7fed4 View commit details
    Browse the repository at this point in the history
  2. chore: refactor MFA unenroll route

    joel@joellee.org committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    1a275ef View commit details
    Browse the repository at this point in the history
  3. chore: add updated routes

    joel@joellee.org committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    9f92e2e View commit details
    Browse the repository at this point in the history
  4. chore: resolve merge conflicts

    joel@joellee.org committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    f029a49 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #566 from supabase/j0_mfa_unenroll

    Add MFA Unenroll endpoint
    J0 committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    032c12f View commit details
    Browse the repository at this point in the history
  6. feat: admin endpoints

    joel@joellee.org committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    e62e000 View commit details
    Browse the repository at this point in the history
  7. fix: refactor and update audit log action types

    joel@joellee.org committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    84fb5ba View commit details
    Browse the repository at this point in the history
  8. Merge branch 'mfa' of https://github.com/supabase/gotrue into j0_admi…

    …n_delete_endpoints
    joel@joellee.org committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    37c305d View commit details
    Browse the repository at this point in the history
  9. tests: add additional checks for deletion endpoints

    joel@joellee.org committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    3e08ffb View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2022

  1. refactor: remove stray constants

    joel@joellee.org committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    31137e4 View commit details
    Browse the repository at this point in the history
  2. refactor: remove stray lines and comments

    joel@joellee.org committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    ce941f9 View commit details
    Browse the repository at this point in the history
  3. refactor: remove notion of MFAEnabled

    joel@joellee.org committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    77aac52 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #579 from supabase/j0_remove_mfa_enabled_on_user

    Completely Remove notion of MFAEnabled
    J0 committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    835fa5a View commit details
    Browse the repository at this point in the history
  5. Merge pull request #576 from supabase/j0_admin_delete_endpoints

    Admin Delete and Get endpoints
    J0 committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    a1e5afb View commit details
    Browse the repository at this point in the history
  6. refactor: remove /recovery_codes endpoint

    joel@joellee.org committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    a4022b1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    607501a View commit details
    Browse the repository at this point in the history
  8. Merge pull request #580 from supabase/j0_remove_recovery_codes_endpoint

    refactor: remove /recovery_codes endpoint
    J0 committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    9cf6fac View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2022

  1. feat: add update factor admin endpoint

    joel@joellee.org committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    65b2424 View commit details
    Browse the repository at this point in the history
  2. feat: add IsMFAEnabled

    joel@joellee.org committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    ac845ba View commit details
    Browse the repository at this point in the history
  3. refactor: reinstate MFAEnabled

    joel@joellee.org committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    a0eeee9 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2022

  1. refactor: make issuer mandatory

    joel@joellee.org committed Aug 6, 2022
    Configuration menu
    Copy the full SHA
    a4af59f View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2022

  1. Merge pull request #595 from supabase/j0_minor_mfa_fixes

    Minor MFA fixes
    J0 committed Aug 8, 2022
    Configuration menu
    Copy the full SHA
    ca67dcf View commit details
    Browse the repository at this point in the history
  2. Merge pull request #586 from supabase/j0_add_update_factor_admin

    feat: add update factor admin endpoint
    J0 committed Aug 8, 2022
    Configuration menu
    Copy the full SHA
    cc1dd36 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2022

  1. Configuration menu
    Copy the full SHA
    5eb4030 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2022

  1. chore: remove created_at field from /challenge

    joel@joellee.org committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    1da78f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e405501 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #597 from supabase/j0_remove_created_at

    Remove created_at field
    J0 committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    ae60ac0 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #588 from supabase/j0/reintroduce_mfa_enabled_checks

    Reintroduce notion of MFAEnabled
    J0 committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    258d669 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2022

  1. chore: merge in master

    joel@joellee.org committed Aug 28, 2022
    Configuration menu
    Copy the full SHA
    6670cc7 View commit details
    Browse the repository at this point in the history
  2. chore: merge in master

    joel@joellee.org committed Aug 28, 2022
    Configuration menu
    Copy the full SHA
    96bf6fb View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

  1. Add MFA Sessions Fields (#643)

    * feat: add session fields
    
    * fix: handle terr
    
    * fix: change column name
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    30cc63c View commit details
    Browse the repository at this point in the history
  2. refactor: move constants into models (#646)

    * test: check for unverified case
    
    * refactor: move constants into models layer
    
    * chore: test semantic release
    
    * chore: update comment
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    b36b337 View commit details
    Browse the repository at this point in the history
  3. feat: Convert QR to SVG (#624)

    * initial commit
    
    * chore:add qrcodesize param
    
    * refactor: strip our QRCodeSize, undo session changes
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    9c009e4 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'master' of github.com:supabase/gotrue into mfa

    joel@joellee.org committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    ccfc4f5 View commit details
    Browse the repository at this point in the history
  5. fix: change method of reading from config

    joel@joellee.org committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    5738884 View commit details
    Browse the repository at this point in the history
  6. refactor: remove unused var

    joel@joellee.org committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    3df3093 View commit details
    Browse the repository at this point in the history
  7. fix: patch gosec errors

    joel@joellee.org committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    65d4255 View commit details
    Browse the repository at this point in the history
  8. feat: cherry-pick step up changes onto separate branch (#652)

    * refactor: cherry pick onto separate branch
    
    * fix: update recovery code files
    
    * feat: cherry-pick partial changes from stepup login branch
    
    * Update models/recovery_code.go
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    d0a5966 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2022

  1. feat: initial gating of routes requiring 1FA

    joel@joellee.org committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    091d56c View commit details
    Browse the repository at this point in the history
  2. chore: add AMR entry

    joel@joellee.org committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    b8f486c View commit details
    Browse the repository at this point in the history
  3. refactor: update claims

    joel@joellee.org committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    93d1549 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'mfa' of github.com:supabase/gotrue into j0/mfa_one_fa_r…

    …equirement
    joel@joellee.org committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    7de12a0 View commit details
    Browse the repository at this point in the history
  5. test: add initial mfa login tests

    joel@joellee.org committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    732fd5c View commit details
    Browse the repository at this point in the history
  6. refactor: Add sign in method to issueRefreshToken

    joel@joellee.org committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    912e685 View commit details
    Browse the repository at this point in the history
  7. fix: distinguish between code logins and recovery code logins

    joel@joellee.org committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    6f5353a View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2022

  1. fix: add concept of first MFA login

    joel@joellee.org committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    f750ec3 View commit details
    Browse the repository at this point in the history
  2. chore: add AMRClaims model content

    joel@joellee.org committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    9fdc8da View commit details
    Browse the repository at this point in the history
  3. fix: patch various errors related to method signature

    joel@joellee.org committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    8593fca View commit details
    Browse the repository at this point in the history
  4. fix: types for audit action logging

    joel@joellee.org committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    32224ff View commit details
    Browse the repository at this point in the history
  5. fix: patch sql syntax errors

    joel@joellee.org committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    ad811ad View commit details
    Browse the repository at this point in the history
  6. chore: patch tests for stepup login

    joel@joellee.org committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    ac0c3c8 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2022

  1. fix: update number of user fields

    joel@joellee.org committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    8572a3b View commit details
    Browse the repository at this point in the history
  2. feat: merge in GrantAuthenticatedUser params

    joel@joellee.org committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    a30189a View commit details
    Browse the repository at this point in the history
  3. refactor: modify access token generation

    joel@joellee.org committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    1a4fa1f View commit details
    Browse the repository at this point in the history
  4. fix: step up login

    joel@joellee.org committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    02f4bbb View commit details
    Browse the repository at this point in the history
  5. fix: get tests to pass

    joel@joellee.org committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    04f838d View commit details
    Browse the repository at this point in the history
  6. fix: patch gosec errors

    joel@joellee.org committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    7bff666 View commit details
    Browse the repository at this point in the history
  7. chore: pull in master into mfa (#660)

    * refactor: `TruncateAll` for better readability (#650)
    
    * Remove unused GenerateEmailOtp function (#655)
    
    * Remove unused function
    
    * chore: remove helper function
    
    * Update crypto.go
    
    * refactor: configuration with validation (#648)
    
    * feat: use proper ip address (#649)
    
    * refactor: add `GrantParams` for issuing refresh tokens (#659)
    
    * fix: remove instance.go
    
    Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    3 people committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    8399e02 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2022

  1. fix: patch merge conflicts

    joel@joellee.org committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    0f5d1ea View commit details
    Browse the repository at this point in the history
  2. tests: add notion of first log in

    joel@joellee.org committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    14738e3 View commit details
    Browse the repository at this point in the history
  3. feat: add session logic

    joel@joellee.org committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    5402221 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2022

  1. refactor: remove stepup login

    joel@joellee.org committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    aba96e4 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2022

  1. feat: remove stepup login related details

    joel@joellee.org committed Sep 6, 2022
    Configuration menu
    Copy the full SHA
    ea783cc View commit details
    Browse the repository at this point in the history
  2. refactor: remove unused fields

    joel@joellee.org committed Sep 6, 2022
    Configuration menu
    Copy the full SHA
    d00c496 View commit details
    Browse the repository at this point in the history
  3. chore: merge in master

    joel@joellee.org committed Sep 6, 2022
    Configuration menu
    Copy the full SHA
    967f234 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2022

  1. chore: remove forgotten file

    hf committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    66ccf66 View commit details
    Browse the repository at this point in the history
  2. chore: merge in master

    joel@joellee.org committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    ff53d0f View commit details
    Browse the repository at this point in the history
  3. fix: remove recovery code logic

    joel@joellee.org committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    313a3bf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d8c6e03 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2022

  1. refactor: change types to text, remove dead code

    joel@joellee.org committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    1f42bf8 View commit details
    Browse the repository at this point in the history
  2. fix: change verify test expected status code

    joel@joellee.org committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    e3c1712 View commit details
    Browse the repository at this point in the history
  3. refactor: convert challenge_id and factor_id to be uuid's

    joel@joellee.org committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    de537dd View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2022

  1. refactor: remove GetFactor

    joel@joellee.org committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    60ccd3f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    86a530d View commit details
    Browse the repository at this point in the history
  3. refactor: remove require1FA

    joel@joellee.org committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    98ab91b View commit details
    Browse the repository at this point in the history
  4. refactor: modify aal levels to be enum

    joel@joellee.org committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    3eede1b View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2022

  1. refactor: reinstate notion of factor type

    joel@joellee.org committed Sep 11, 2022
    Configuration menu
    Copy the full SHA
    f5a7a8b View commit details
    Browse the repository at this point in the history
  2. refactor:change types of enroll/unenroll from string to bool

    joel@joellee.org committed Sep 11, 2022
    Configuration menu
    Copy the full SHA
    10b4d31 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2022

  1. test: add missing require checks

    joel@joellee.org committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    67a77e8 View commit details
    Browse the repository at this point in the history
  2. fix: merge in master, globally replace hardcoded TOTP var

    joel@joellee.org committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    be4b0bc View commit details
    Browse the repository at this point in the history
  3. fix: add tests for removing factor related sessions on unenroll

    joel@joellee.org committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    a66de66 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2022

  1. fix: update db sessions in issueRefreshToken as well

    joel@joellee.org committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    a2a8a67 View commit details
    Browse the repository at this point in the history
  2. fix: convert issuer to default to siteURL

    joel@joellee.org committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    b25f611 View commit details
    Browse the repository at this point in the history
  3. refactor: change enroll factor message and remove redundant requireAu…

    …thentication check
    joel@joellee.org committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    88d89c0 View commit details
    Browse the repository at this point in the history
  4. refactor: remove success field in verifyFactor Response

    joel@joellee.org committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    d5ee5e2 View commit details
    Browse the repository at this point in the history
  5. fix: remove success code reutrned and allow unverified factors to be …

    …unenrolled
    joel@joellee.org committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    744362f View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2022

  1. refactor: add IP address type

    joel@joellee.org committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    e1a16fc View commit details
    Browse the repository at this point in the history
  2. refactor: add IP address type

    joel@joellee.org committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    e94c98f View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2022

  1. Configuration menu
    Copy the full SHA
    840e5ad View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2022

  1. fix: add default value for challenge IP

    joel@joellee.org committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    329f5d4 View commit details
    Browse the repository at this point in the history
  2. fix: resolve merge conflicts

    joel@joellee.org committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    3f65ad7 View commit details
    Browse the repository at this point in the history
  3. fix: patch staticcheck errors

    joel@joellee.org committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    03f4caa View commit details
    Browse the repository at this point in the history
  4. fix: add partial index to allow multiple empty strings

    joel@joellee.org committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    b6971b4 View commit details
    Browse the repository at this point in the history
  5. refactor: remove FindChallengesByFactorID and add IP address to chall…

    …enge
    joel@joellee.org committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    3e742c4 View commit details
    Browse the repository at this point in the history
  6. fix: add IP address checks

    joel@joellee.org committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    fb58fff View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2022

  1. fix: minor mfa changes (#692)

    * refactor enroll
    
    * fix: omit user, user_id & empty friendly_name from response
    kangmingtay committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    5da121c View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2022

  1. Reinstate auth_tests (#696)

    * fix: remove belongs to association on factor
    
    * fix: extract issueRefreshToken logic for MFA
    
    * test:reinstate tests
    
    * fix: revert changes which introduce updateMFASessionAndClaims
    
    * Revert "fix: remove belongs to association on factor"
    
    This reverts commit 10057f7.
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    147f686 View commit details
    Browse the repository at this point in the history
  2. MFA: Remove dead code (#697)

    * fix: remove belongs to association on factor
    
    * fix: extract issueRefreshToken logic for MFA
    
    * test:reinstate tests
    
    * fix: revert changes which introduce updateMFASessionAndClaims
    
    * Revert "fix: remove belongs to association on factor"
    
    This reverts commit 10057f7.
    
    * fix: resolve staticcheck errors, remove unused code
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    5b6ed06 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2022

  1. Add Rate limiters for MFA (#698)

    * fix: add rate limiters
    
    * chore: add conf
    
    * chore: run gofmt
    
    * fix: add max enrolled factors
    
    * refactor: remove requireAuthentication
    
    * fix: merge challenge and verify rate limits
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Sep 26, 2022
    Configuration menu
    Copy the full SHA
    5688b50 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2022

  1. Rename err to terr (#723)

    * fix: remove belongs to association on factor
    
    * fix: extract issueRefreshToken logic for MFA
    
    * refactor: lowercase totp and rename totp_secret to secret to be more generic
    
    * refactor: remove disabled state
    
    * refactor: rename err -> terr
    
    * Revert "refactor: remove disabled state"
    
    This reverts commit bce773d.
    
    * Revert "refactor: lowercase totp and rename totp_secret to secret to be more generic"
    
    This reverts commit 2b6920f.
    
    * Revert "fix: extract issueRefreshToken logic for MFA"
    
    This reverts commit 2dbd47c.
    
    * Revert "fix: remove belongs to association on factor"
    
    This reverts commit 10057f7.
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    9929b47 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2022

  1. fix: merge master into v1 (#726)

    * patch: merge master into v1
    
    * chore: run gofmt
    
    * refactor: rename TOTPSecret->Secret
    
    * fix: adjust application code to align with db schema
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    b27b85c View commit details
    Browse the repository at this point in the history
  2. refactor: replace mfa/constants.go for enum (#727)

    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    ef4891f View commit details
    Browse the repository at this point in the history
  3. refactor: add sessions refactors (#728)

    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    b3963f8 View commit details
    Browse the repository at this point in the history
  4. refactor: add mfa_test.go refactors (#729)

    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    b51826a View commit details
    Browse the repository at this point in the history
  5. refactor: MFA Refactors (#730)

    * inital fixes
    
    * Update api/mfa.go
    
    * fix: rename FactorStates
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    0a6f508 View commit details
    Browse the repository at this point in the history
  6. refactor: update factors.go and getBodyBytes (#732)

    * refactor: change json.NewDecoder -> getBodyBytes
    
    * refactor: update admin to use getBodyBytes
    
    * fix: update comments
    
    * fix: patch error message
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    706afd7 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2022

  1. refactor: refactor models/factor and block admin from modifying facto…

    …r status (#733)
    
    * refactor: change json.NewDecoder -> getBodyBytes
    
    * refactor: update admin to use getBodyBytes
    
    * fix: update comments
    
    * fix: patch error message
    
    * refactor: remove FindFactorByFriendlyName
    
    * chore: update error messages
    
    * fix: refactor unenroll test
    
    * fix: patch staticcheck
    
    * fix: patch stray staticcheck error
    
    * refactor: add test case for unverified factor
    
    * fix: correct error naming and adjust error messages
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    638dde1 View commit details
    Browse the repository at this point in the history
  2. fix: update admin tests to add negatives (#734)

    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    438e503 View commit details
    Browse the repository at this point in the history
  3. fix: mfa verify should reuse existing session (#691)

    * fix: remove belongs to association on factor
    
    * fix: extract issueRefreshToken logic for MFA
    
    * chore: run gofmt
    
    * fix: downgrade other sessions instead of deleting them
    
    * refactor: convert all aal hardcoded strings to use enum
    
    * fix: update AAL Calcuation to not duplicate claims
    
    * fix: reinstate auth_test
    
    * fix: move downgrade to be a method on factor struct
    
    * refactor: merge factor and AAL update methods
    
    * refactor: change mfa_constants to enum
    
    * refactor: change signInMethod to Enum
    
    * refactor: change hardcoded strings to test constants
    
    * refactor: rename secondary session variables
    
    * test: add check that unenrolling clears factorID from assoc session
    
    * refactor: remove unused structs
    
    * refactor: nit changes (#694)
    
    * refactor: validate totp only if challenge isn't expired
    
    * refactor: better error handling
    
    * refactor: read from DB session instead of JWT token
    
    * refactor: remove outdated test
    
    * test: add tests for calculate AAL and AMR
    
    * fix: add test to ensure claims are not duplicated
    
    * fix: add ordering condition
    
    * refactor: rename signInMethod to authenticationMethod
    
    * fix: change verify bad code return from 401->400
    
    * chore: run gofmt
    
    * fix: re-read association from session
    
    * refactor: change methods using enum types to AuthenticationMethod
    
    * fix: change more functions to take in enum
    
    * test: add integration tests
    
    * test: add test to check AAL maintainance
    
    * fix: add test for refresh token rotation
    
    * chore: fix staticcheck
    
    * refactor: move sessionID calculation out from transaction
    
    * refactor: remove authentication method map
    
    * refactor: remove additional CalculateAALAndAMR
    
    * fix: remove requirement for tokens to be not revoked
    
    * Apply suggestions from code review
    
    Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
    
    * fix: gofmt, refactor return type for enrollfactor
    
    * refactor: add comments to clarify tests, remove unused codew
    
    * fix: add index to refresh_token
    
    * refactor: minor renaming and add check on qrcode contents
    
    * fix: replace expires in to default expiry
    
    * fix: update unverified factor test
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
    3 people committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    f90a1ed View commit details
    Browse the repository at this point in the history
  4. fix: resolve merge conflicts

    joel@joellee.org committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    b4c5e06 View commit details
    Browse the repository at this point in the history
  5. chore: remove dead code

    joel@joellee.org committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    fd3cae5 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2022

  1. refactor: add explicit struct tags(mfa) (#740)

    * refactor: explicitly name structs
    
    * refactor: add explicit tags to user and phone
    
    * refactor: add admin related tags
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    438bffb View commit details
    Browse the repository at this point in the history
  2. fix: trigger token swap on MFA verify to ensure token is latest one (#…

    …742)
    
    * fix: trigger token swap to ensure token is latest one
    
    * test: add additional test to check 2FA followed by 1FA sign in
    
    * Update api/token.go
    
    Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
    
    * Revert "Update api/token.go"
    
    This reverts commit f6aa576.
    
    * refactor: reduce number of params needed
    
    * refactor: move FindSessionByUserID to tests
    
    * Revert "refactor: move FindSessionByUserID to tests"
    
    This reverts commit 3b56457.
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
    3 people committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    a64ce0d View commit details
    Browse the repository at this point in the history
  3. chore: add feature flag (#737)

    * fix: add initial flags on tests
    
    * fix: add MFA_ENABLED flag to tests
    
    * fix: checks in test admin
    
    * fix: add enabled flag
    
    * fix: properly make use of config
    
    * fix: remove stray env var addition
    
    * feat: initial prefixing
    
    * fix: prefix mfa related tests
    
    * Update models/refresh_token.go
    
    Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
    
    * fix: update comparison checks at
    
    * chore: MFA_ENABLED->GOTRUE_MFA_ENABLED
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
    3 people committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    73c49f6 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2022

  1. refactor: mfa without user in route, other tiny fixes (#743)

    * refactor: add unenroll factor response
    
    * refactor: remove /user/<prefix> route for mfa
    hf committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    5521df1 View commit details
    Browse the repository at this point in the history
  2. feat: add mfa indexes (#745)

    * feat: add mfa indexes
    
    * Update models/amr.go
    
    Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
    
    * Update migrations/20221011041400_add_mfa_indexes.up.sql
    
    Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
    3 people committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    243364b View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2022

  1. Configuration menu
    Copy the full SHA
    8f2e09d View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2022

  1. refactor: better error messages for mfa (#751)

    * refactor: rename errors
    
    * fix: add aal2 check
    
    * refactor: simplify amr claims
    
    * fix: add additional test for unenrolling verified factors
    
    * Apply suggestions from code review
    
    Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
    3 people committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    5a8c3b4 View commit details
    Browse the repository at this point in the history
  2. refactor: remove requirement for code in order to unenroll (#753)

    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    a6a1874 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2022

  1. Configuration menu
    Copy the full SHA
    204bb87 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into mfa

    J0 committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    2ad2737 View commit details
    Browse the repository at this point in the history
  3. test: add sanity checks to ensure secret does not leak (#755)

    * refactor: remove requirement for code in order to unenroll
    
    * test: add sanity checks for secret leakage
    
    * fix: update status codes for unenroll factor
    
    Co-authored-by: joel@joellee.org <joel@joellee.org>
    J0 and joel@joellee.org committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    d061f9f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    06ac877 View commit details
    Browse the repository at this point in the history