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

Adding Authentication to API #12

Merged
merged 76 commits into from
Jun 23, 2021
Merged

Adding Authentication to API #12

merged 76 commits into from
Jun 23, 2021

Commits on Jun 10, 2021

  1. - Added starting points for user authentication and authorization

     - Added `BYPASS_SCHOOL_AUTH` as option to skip school auth (when developing)
     - Added auth service to deal with creating and checking validation
     - Added ensure user function to get or create a user based on schools auth info
     - Added /login to user controller
     - Updated user.schoolId to be unique in DB
     - Added new shared types (for use in client)
    
     - Enabled strict null checking (this should have been on from the start)
     - Fixed some errors that the compiler told me about once that was on
      - Potentially missing status codes in serializers
      - issues with querying in the users.service
    MikeDrewitt committed Jun 10, 2021
    Configuration menu
    Copy the full SHA
    0393f2e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8e9a5ea View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ca79be3 View commit details
    Browse the repository at this point in the history
  4. - Auth working

    MikeDrewitt committed Jun 10, 2021
    Configuration menu
    Copy the full SHA
    4325775 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3defe76 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1394545 View commit details
    Browse the repository at this point in the history
  7. Update json configs

    MikeDrewitt committed Jun 10, 2021
    Configuration menu
    Copy the full SHA
    68d4d87 View commit details
    Browse the repository at this point in the history
  8. [WIP] Implement additional JWT controls

    Adds additional JWT fields for validation as well as ensures that
    the signing algorithms and keys are validated. Additional changes
    and cleanup to come.
    
    ---WIP---
    Currently in a working state - however additional validation needs
    to be performed and lots of cleanup/restructure to follow.
    (Consider collapsing all the x.config.json files into a single yaml
    config file organized by domain with optional ENV var overrides for
    each?)
    daviddob authored and MikeDrewitt committed Jun 10, 2021
    Configuration menu
    Copy the full SHA
    699e34a View commit details
    Browse the repository at this point in the history
  9. Updated login controller to support developer login correctly

    Fixed issue with json body not being seen on the request
    Updated developer provider settings
    Added developer login validations
    Updated login routes to follow above changes
    MikeDrewitt committed Jun 10, 2021
    Configuration menu
    Copy the full SHA
    acfc209 View commit details
    Browse the repository at this point in the history
  10. Merged things together

    MikeDrewitt committed Jun 10, 2021
    Configuration menu
    Copy the full SHA
    b3f1ce0 View commit details
    Browse the repository at this point in the history
  11. First round cleanup

    MikeDrewitt committed Jun 10, 2021
    Configuration menu
    Copy the full SHA
    ed78f81 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2021

  1. Working through PR

    MikeDrewitt committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    e14a896 View commit details
    Browse the repository at this point in the history
  2. Fisrt draft PR

    MikeDrewitt committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    32d1264 View commit details
    Browse the repository at this point in the history
  3. Updated ts settings

    MikeDrewitt committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    f1487d9 View commit details
    Browse the repository at this point in the history
  4. Nearly there

    MikeDrewitt committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    2d0f1dd View commit details
    Browse the repository at this point in the history
  5. Rename user columns

    MikeDrewitt committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    749691e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b29ea7f View commit details
    Browse the repository at this point in the history
  7. No need 4 middleware

    MikeDrewitt committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    440f3c7 View commit details
    Browse the repository at this point in the history
  8. Implement SAML Metadata endpoint

    Implements saml metadata endpoint for pulling SP metadata by the IDP
    daviddob committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    87ddda5 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2021

  1. Configuration menu
    Copy the full SHA
    68af998 View commit details
    Browse the repository at this point in the history
  2. Initial genConfig dockerfile

    daviddob committed Jun 12, 2021
    Configuration menu
    Copy the full SHA
    c531446 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dade184 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2021

  1. - Added starting points for user authentication and authorization

     - Added `BYPASS_SCHOOL_AUTH` as option to skip school auth (when developing)
     - Added auth service to deal with creating and checking validation
     - Added ensure user function to get or create a user based on schools auth info
     - Added /login to user controller
     - Updated user.schoolId to be unique in DB
     - Added new shared types (for use in client)
    
     - Enabled strict null checking (this should have been on from the start)
     - Fixed some errors that the compiler told me about once that was on
      - Potentially missing status codes in serializers
      - issues with querying in the users.service
    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    dcd37e3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    05f5f7a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1fa712f View commit details
    Browse the repository at this point in the history
  4. - Auth working

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    9812125 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f95d1d6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8f10b46 View commit details
    Browse the repository at this point in the history
  7. Update json configs

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    8279f47 View commit details
    Browse the repository at this point in the history
  8. [WIP] Implement additional JWT controls

    Adds additional JWT fields for validation as well as ensures that
    the signing algorithms and keys are validated. Additional changes
    and cleanup to come.
    
    ---WIP---
    Currently in a working state - however additional validation needs
    to be performed and lots of cleanup/restructure to follow.
    (Consider collapsing all the x.config.json files into a single yaml
    config file organized by domain with optional ENV var overrides for
    each?)
    daviddob authored and MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    f2916ce View commit details
    Browse the repository at this point in the history
  9. Updated login controller to support developer login correctly

    Fixed issue with json body not being seen on the request
    Updated developer provider settings
    Added developer login validations
    Updated login routes to follow above changes
    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    a699087 View commit details
    Browse the repository at this point in the history
  10. Merged things together

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    c48fa2f View commit details
    Browse the repository at this point in the history
  11. First round cleanup

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    cf24e0f View commit details
    Browse the repository at this point in the history
  12. Working through PR

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    eaf1dd3 View commit details
    Browse the repository at this point in the history
  13. Fisrt draft PR

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    21aac0d View commit details
    Browse the repository at this point in the history
  14. Updated ts settings

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    efeea26 View commit details
    Browse the repository at this point in the history
  15. Nearly there

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    4c975e0 View commit details
    Browse the repository at this point in the history
  16. Rename user columns

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    9fe5ab9 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    f170da3 View commit details
    Browse the repository at this point in the history
  18. No need 4 middleware

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    406be7b View commit details
    Browse the repository at this point in the history
  19. Implement SAML Metadata endpoint

    Implements saml metadata endpoint for pulling SP metadata by the IDP
    daviddob authored and MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    17202a5 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    4e8866c View commit details
    Browse the repository at this point in the history
  21. Initial genConfig dockerfile

    daviddob authored and MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    956d096 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    c59dea7 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    0d04680 View commit details
    Browse the repository at this point in the history
  24. Updaetd tests

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    6a67afa View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    ba4d32c View commit details
    Browse the repository at this point in the history
  26. Login controller tested

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    77e912f View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    8af6aba View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    104c75f View commit details
    Browse the repository at this point in the history
  29. Saml controller tests

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    926f7b8 View commit details
    Browse the repository at this point in the history
  30. Authmiddleware tests

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    7f08064 View commit details
    Browse the repository at this point in the history
  31. Updated Readme

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    e79afac View commit details
    Browse the repository at this point in the history
  32. Update gitignore

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    c01c041 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    ad29543 View commit details
    Browse the repository at this point in the history
  34. Removed unused env vars

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    a9d3dcc View commit details
    Browse the repository at this point in the history
  35. Use logging db from yaml

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    78c46cb View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    c8ef9b8 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    179e7d8 View commit details
    Browse the repository at this point in the history
  38. Update some docs

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    be83a1d View commit details
    Browse the repository at this point in the history
  39. Updated package-lock.json

    MikeDrewitt committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    4f7b14a View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2021

  1. Typo cleanups

    jpobzy committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    7c4cf47 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'origin/auth' into auth

    # Conflicts:
    #	.gitignore
    #	.vscode/launch.json
    #	@types/express/index.d.ts
    #	config/default.yml.template
    #	package-lock.json
    #	package.json
    #	scripts/generateConfig.sh
    #	src/controller/login.controller.ts
    #	src/controller/login.developer.controller.ts
    #	src/controller/login.saml.controller.ts
    #	src/environment.ts
    #	src/index.ts
    #	src/middleware/auth.middleware.ts
    #	src/middleware/serializer/tests/users.serializer.test.ts
    #	src/middleware/serializer/users.serializer.ts
    #	src/migration/1623375449310-tightenUpUserModel.ts
    #	src/router/login.developer.router.ts
    #	src/router/login.router.ts
    #	src/router/login.saml.router.ts
    #	src/services/auth.service.ts
    #	src/utils/passport.utils.ts
    #	src/utils/passport/saml.passport.ts
    #	tsconfig.json
    jpobzy committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    1c4081b View commit details
    Browse the repository at this point in the history
  3. Typo cleanups

    jpobzy committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    74b2279 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2021

  1. Fix in PR

    MikeDrewitt committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    5738581 View commit details
    Browse the repository at this point in the history
  2. Apply suggestions from code review

    Typeos from github
    
    Co-authored-by: David Dobmeier <[email protected]>
    MikeDrewitt and daviddob authored Jun 21, 2021
    Configuration menu
    Copy the full SHA
    b99938e View commit details
    Browse the repository at this point in the history
  3. Updated PR stuffs

    MikeDrewitt committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    7a0d3fa View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2021

  1. Working

    MikeDrewitt committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    5a7a31a View commit details
    Browse the repository at this point in the history
  2. Removed default.yml

    MikeDrewitt committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    e5dc747 View commit details
    Browse the repository at this point in the history
  3. removed refresh token

    MikeDrewitt committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    48826b3 View commit details
    Browse the repository at this point in the history
  4. Add styleguide to readme

    MikeDrewitt committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    5aaebdd View commit details
    Browse the repository at this point in the history
  5. PR mostly done

    MikeDrewitt committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    af6357a View commit details
    Browse the repository at this point in the history
  6. Remove dev auth

    MikeDrewitt committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    1835081 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7ce6127 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2021

  1. Configuration menu
    Copy the full SHA
    74cb0ed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    60672a1 View commit details
    Browse the repository at this point in the history