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

Add ODKToken Authentication Method #1705

Merged
merged 47 commits into from
Oct 25, 2019
Merged

Add ODKToken Authentication Method #1705

merged 47 commits into from
Oct 25, 2019

Commits on Oct 8, 2019

  1. Add ODKToken Model

    DavisRayM committed Oct 8, 2019
    Configuration menu
    Copy the full SHA
    58155ad View commit details
    Browse the repository at this point in the history
  2. Add odk_token action in ConnectViewSet

    - Create new tests for the odk_token action within TestConnectViewSet
    DavisRayM committed Oct 8, 2019
    Configuration menu
    Copy the full SHA
    199d0d0 View commit details
    Browse the repository at this point in the history
  3. Fix failing test

    - Rename id_token variable
    DavisRayM committed Oct 8, 2019
    Configuration menu
    Copy the full SHA
    7135c77 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2019

  1. Configuration menu
    Copy the full SHA
    730cedf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    330f077 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f9d6cd2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    379175d View commit details
    Browse the repository at this point in the history
  5. Fix inaccurate test

    - Pass in a str instead of an object to DigestAuth
    DavisRayM committed Oct 9, 2019
    Configuration menu
    Copy the full SHA
    66807db View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2019

  1. Minor code changes

    - Directly assigning values to data dict rather than use a function
    DavisRayM committed Oct 18, 2019
    Configuration menu
    Copy the full SHA
    62bd0e6 View commit details
    Browse the repository at this point in the history
  2. Modify ODKToken Model

    - Store the key value in an encrypted format
    - Generate new migration for the ODKToken Model
    DavisRayM committed Oct 18, 2019
    Configuration menu
    Copy the full SHA
    8f380d4 View commit details
    Browse the repository at this point in the history
  3. Update TestODKToken tests

    DavisRayM committed Oct 18, 2019
    Configuration menu
    Copy the full SHA
    fa9cf29 View commit details
    Browse the repository at this point in the history
  4. Modify test_authenticate_odk_token_email test

    - Check that passing the raw_token authenticates the user
    DavisRayM committed Oct 18, 2019
    Configuration menu
    Copy the full SHA
    72a93f6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9abddb8 View commit details
    Browse the repository at this point in the history
  6. Change odk_token endpoint

    - Change field 'odk_token' to 'enc_odk_token'
    - Change field 'expires_in' to 'active_till'
    - Update tests
    DavisRayM committed Oct 18, 2019
    Configuration menu
    Copy the full SHA
    105548d View commit details
    Browse the repository at this point in the history
  7. Add status field to ODKToken model

    - Regenerate migrations
    DavisRayM committed Oct 18, 2019
    Configuration menu
    Copy the full SHA
    3fd3673 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    86838d7 View commit details
    Browse the repository at this point in the history
  9. Update travis test settings

    DavisRayM committed Oct 18, 2019
    Configuration menu
    Copy the full SHA
    79157f6 View commit details
    Browse the repository at this point in the history
  10. Revert Travis Test Settings

    DavisRayM committed Oct 18, 2019
    Configuration menu
    Copy the full SHA
    0ad21c5 View commit details
    Browse the repository at this point in the history
  11. Use ugettext_lazy

    - Chance Active and Inactive value
    - Recreate migrations
    DavisRayM committed Oct 18, 2019
    Configuration menu
    Copy the full SHA
    310f5ce View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2019

  1. Configuration menu
    Copy the full SHA
    cfc49ae View commit details
    Browse the repository at this point in the history
  2. Create DigestAccountStorage

    DavisRayM committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    7c8d44a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c0f2576 View commit details
    Browse the repository at this point in the history
  4. Fix Failing Test

    - Convert Fernet Key into Bytes
    DavisRayM committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    48548e2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8ed16ad View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2a630ae View commit details
    Browse the repository at this point in the history
  7. Minor Code Cleanup

    - Lint code
    DavisRayM committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    f6d87d7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    164dc89 View commit details
    Browse the repository at this point in the history
  9. Modify TestDigestAuthentication

    - Remove ODK_TOKEN_FERNET_KEY variable
    DavisRayM committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    2e2f8ba View commit details
    Browse the repository at this point in the history
  10. Modify odk_token endpont

    - Minor Code Cleanup
    - Add ability to make PATCH Requests
    - Add ability to change ODKToken Status
    DavisRayM committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    2622e17 View commit details
    Browse the repository at this point in the history
  11. Call correct functions

    - Minor code cleanup
    DavisRayM committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    27a1581 View commit details
    Browse the repository at this point in the history
  12. Add status_display field

    DavisRayM committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    1a3ee93 View commit details
    Browse the repository at this point in the history
  13. Add new test to TestConnectViewSet

    - Test that ODK Token status can be changed through a PATCH request
    DavisRayM committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    2102220 View commit details
    Browse the repository at this point in the history
  14. Silence Pylint warning

    DavisRayM committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    f3fcfb6 View commit details
    Browse the repository at this point in the history
  15. Remove unused import

    DavisRayM committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    87ba7e0 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    49f5d06 View commit details
    Browse the repository at this point in the history
  17. Fix Failing Tests

    DavisRayM committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    277b03e View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2019

  1. Configuration menu
    Copy the full SHA
    dd20472 View commit details
    Browse the repository at this point in the history
  2. Fix issue on checking for odk_token_expiry

    - Change DigestAccountStorage to ODKTokenAccountStorage
    - Add additional information to the ODKTokenAccountStorage docstring
    DavisRayM committed Oct 23, 2019
    Configuration menu
    Copy the full SHA
    f395a33 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5847d74 View commit details
    Browse the repository at this point in the history
  4. Fix failing test

    - Use ODKTokenAccountStorage while testing expiry date failure
    DavisRayM committed Oct 23, 2019
    Configuration menu
    Copy the full SHA
    84a8605 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2019

  1. Remove get_user() method from ODKTokenAccountStorage

    - Add get_partial_digest method
    - Check that the users ODK Token has not expired before returning a
      partial digest
    DavisRayM committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    150685e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    61d32ac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fba6dd6 View commit details
    Browse the repository at this point in the history
  4. Remove ability to change ODKToken Status

    - Create a key on GET if one is non-existent or non is active
    DavisRayM committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    48a7b32 View commit details
    Browse the repository at this point in the history
  5. Remove _check_odk_token_expiry funtion

    - Use the token.expires property to check if the Token has expired
    DavisRayM committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    e35c0c8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bed57c2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ba95f94 View commit details
    Browse the repository at this point in the history