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

Authorization framework with Action Policy #466

Merged
merged 119 commits into from
Mar 18, 2024

Commits on Jan 24, 2024

  1. Add action_policy gem

    mononoken committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    a98459d View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2024

  1. Apply verify_authorized to require authorization on all controllers e…

    …xcpet devise related controllers
    mononoken committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    8e38388 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a0a1ad6 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2024

  1. Configuration menu
    Copy the full SHA
    f5f321f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a7b6773 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    998adc7 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2024

  1. Fix typos in seed file

    mononoken committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    61bef2f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0054de3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dd0d25d View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2024

  1. Configuration menu
    Copy the full SHA
    89cb0b9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d30ed86 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f253c9d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0389f65 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2024

  1. Allow user context for Policies by default to allow nil as a value …

    …to help define cases where user does not exist
    mononoken committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    ea5ced4 View commit details
    Browse the repository at this point in the history
  2. Create StaffPolicy

    mononoken committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    c8df1cf View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. Configuration menu
    Copy the full SHA
    fbbe23c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d1c9a1e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    abfb0c4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2b5cb17 View commit details
    Browse the repository at this point in the history
  5. Implement checking organization scope in StaffPolicy with new Applica…

    …tionPolicy pre_check verify_organization!
    mononoken committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    f525498 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8362e49 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6fdbee4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cdaaf29 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2024

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

Commits on Feb 8, 2024

  1. Configuration menu
    Copy the full SHA
    b874a16 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    35284d8 View commit details
    Browse the repository at this point in the history
  3. Create InvitationPolicy

    mononoken committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    8715c83 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    257faef View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    77ef396 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    027179a View commit details
    Browse the repository at this point in the history
  7. Implement Organizations::PetPolicy for resourceful RESTful actions (s…

    …how, edit, update, destroy)
    mononoken committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    14c2e12 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2024

  1. Configuration menu
    Copy the full SHA
    87b7a0d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b72a200 View commit details
    Browse the repository at this point in the history
  3. Refactor Organizations::StaffPolicy and Organizations::InvitationPoli…

    …cy to match new organization authorize behavior
    mononoken committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    3c42de2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b068a8f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a81db07 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ac00352 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    764f5a1 View commit details
    Browse the repository at this point in the history
  8. Sort authorization tests into separate context in InvitationsControll…

    …erTest and StaffControllerTest
    mononoken committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    3ab0898 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2024

  1. Configuration menu
    Copy the full SHA
    aec9b89 View commit details
    Browse the repository at this point in the history
  2. Refactor Authorizable to privately expose the array of permissions so…

    … it can be stubbed in tests
    mononoken committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    f158d24 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c00ebcb View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2024

  1. Configuration menu
    Copy the full SHA
    d7112ef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    281ec95 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. Use ActionPolicy lookup ability to implicitly find correct Policies w…

    …ithout with
    
    Namespace TaskPolicy to Organizations to match other namespaces
    
    Use Action Policy's lookup pattern to find Policy without requiring with
    mononoken committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    0b49040 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ef8167c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8bc1cad View commit details
    Browse the repository at this point in the history
  4. Merge branch 'authorization_framework'

    Fix lint violation in rolify init
    mononoken committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    d86f120 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2024

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

Commits on Feb 22, 2024

  1. Configuration menu
    Copy the full SHA
    f41ea3f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fb34c46 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2024

  1. Add adopter role to User factory and apply User adopter trait to Adop…

    …terApplication factory
    mononoken committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    66a7bfe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    85efb52 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d7324e5 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2024

  1. Refactor AdopterApplications routes to more standard Rails convention…

    … and change post/patch buttons to forms
    
    Refactor AdopterApplications routes to more standard Rails convention and change post/patch buttons to forms
    mononoken committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    8752dd5 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2024

  1. Refactor AdopterApplication factory to use existing adopter_account o…

    …f user if transient user is passed to factory
    mononoken committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    695cdd3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f26e2cb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    87cecff View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c0e41c5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    efd10d4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4c7f024 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5214147 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a9f1060 View commit details
    Browse the repository at this point in the history
  9. Refactor #after_sign_in_path_for to use policy for logic check and fi…

    …x sign in for adopters
    mononoken committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    bb3786c View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2024

  1. Fix factory associations so that AdopterApplicationFactory populates …

    …dependent associations consistently
    mononoken committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    0e058d0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ff0673a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b63c43e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fcbc3d0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cc22b7a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3343d95 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. Create AdopterProfilePolicy

    mononoken committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    1113ce4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f9f8a40 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1dd977f View commit details
    Browse the repository at this point in the history
  4. Fix misnamed Test class

    mononoken committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    17b7f14 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cec95fe View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0a03990 View commit details
    Browse the repository at this point in the history
  7. Namespace AttachmentPolicy under ActiveStorage to assist Action Polic…

    …y lookup and clarify Attachment objects namespace
    mononoken committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    e1d6102 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2024

  1. Configuration menu
    Copy the full SHA
    ca924d5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    55606d1 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. Configuration menu
    Copy the full SHA
    885a8b1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6c62b65 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2024

  1. Configuration menu
    Copy the full SHA
    e931de9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9dcf6e6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dbc6d31 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5ff96e9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9824476 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4ff5781 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e99f014 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6ad7ca9 View commit details
    Browse the repository at this point in the history
  9. Create MatchPolicy

    mononoken committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    d270267 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2024

  1. Configuration menu
    Copy the full SHA
    a3287b5 View commit details
    Browse the repository at this point in the history
  2. Refactor MatchesController to use Rails naming conventions such as de…

    …stroy instead of delete
    mononoken committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    8523e64 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    670d849 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    84fae2b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    51ea8ea View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d0f6884 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d67c279 View commit details
    Browse the repository at this point in the history
  8. Implement MatchPolicy

    mononoken committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    e991d54 View commit details
    Browse the repository at this point in the history
  9. Create ProfileReviewPolicy

    mononoken committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    787ae05 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    670ebb1 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. Configuration menu
    Copy the full SHA
    d8f9219 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    090a1ff View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f2e4191 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    754d826 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4f1c7e6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d3c9cc5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    39f37e3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7396ffc View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Configuration menu
    Copy the full SHA
    73a4192 View commit details
    Browse the repository at this point in the history
  2. Remove duplication typo

    mononoken committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    6a9caba View commit details
    Browse the repository at this point in the history
  3. Rename Organizations::AdopterApplicationReviewPolicy to Organizations…

    …::AdopterApplicationPolicy
    mononoken committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    33e8ab8 View commit details
    Browse the repository at this point in the history
  4. Let AdoptionApplicationReviews#index scope use Organizations::PetPoli…

    …cy for scoping instead of Organizations::AdopterApplicationPolicy
    mononoken committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    c47110f View commit details
    Browse the repository at this point in the history
  5. Fix typo

    mononoken committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    3c17dbb View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. Rename profile precheck method to verify_profile! to decouple frome n…

    …aming conventions some
    mononoken committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    4fd2c25 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ada4ef4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8ff733c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8b3eb81 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c7a9db3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0e2fb97 View commit details
    Browse the repository at this point in the history