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

Refactor Access Logic: #207

Merged
merged 1 commit into from
Dec 1, 2024
Merged

Refactor Access Logic: #207

merged 1 commit into from
Dec 1, 2024

Conversation

maxachis
Copy link

@maxachis maxachis commented Dec 1, 2024

Fixes

Description

  • Improve standardization of access token creation and parsing
  • Remove redundant logic
  • Improve standardization of error responses when parsing access tokens
  • Extract some logic to separate functions Add test_bad_request_api_key_not_allowed
  • Add test_bad_request_jwt_not_allowed
  • Add logic for getting specific authorization header Rename test_bad_request_authorization to test_bad_request_malformed_header
  • Complete test_bad_request_missing_header
  • Add test_bad_request_endpoints_with_headers_have_bad_request_response_spec
  • Standardize response info to /refresh-session, /user-profile, /validate-email
  • Remove unused modules and imports

Testing

  • Run tests in tests directory, and confirm all function as expected
  • Inspect API and confirm presence of expected changes.

Performance

  • Impact marginal

Docs

  • API documentation updated in areas

Breaking Changes

  • No breaking changes.

* Improve standardization of access token creation and parsing
* Remove redundant logic
* Improve standardization of error responses when parsing access tokens
* Extract some logic to separate functions
Add `test_bad_request_api_key_not_allowed`
Add `test_bad_request_jwt_not_allowed`
Add logic for getting specific authorization header
Rename `test_bad_request_authorization` to `test_bad_request_malformed_header`
Complete `test_bad_request_missing_header`
Add `test_bad_request_endpoints_with_headers_have_bad_request_response_spec`
Standardize response info to `/refresh-session`, `/user-profile`, `/validate-email`
Remove unused modules and imports
@maxachis maxachis merged commit 351b350 into dev Dec 1, 2024
11 checks passed
@maxachis maxachis deleted the mc_412_comprehensive_tests branch December 1, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant