-
Notifications
You must be signed in to change notification settings - Fork 265
Develop #259
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
base: main
Are you sure you want to change the base?
Develop #259
Changes from all commits
d4bc1fd
7730920
74e786d
cf6d70c
40d04ff
1c90b7e
85cf007
86bdb9a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,9 @@ def get_settings() -> BaseAppSettings: | |
| return Settings() | ||
|
|
||
|
|
||
| def get_jwt_auth_manager(settings: BaseAppSettings = Depends(get_settings)) -> JWTAuthManagerInterface: | ||
| def get_jwt_auth_manager( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The positional-only marker ( |
||
| settings: BaseAppSettings = Depends(get_settings), | ||
Taras-Ivashchuk marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor: the |
||
| ) -> JWTAuthManagerInterface: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure the constructor parameters passed to |
||
| """ | ||
| Create and return a JWT authentication manager instance. | ||
|
|
||
|
|
@@ -45,12 +47,12 @@ def get_jwt_auth_manager(settings: BaseAppSettings = Depends(get_settings)) -> J | |
| return JWTAuthManager( | ||
| secret_key_access=settings.SECRET_KEY_ACCESS, | ||
| secret_key_refresh=settings.SECRET_KEY_REFRESH, | ||
| algorithm=settings.JWT_SIGNING_ALGORITHM | ||
| algorithm=settings.JWT_SIGNING_ALGORITHM, | ||
Taras-Ivashchuk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ) | ||
|
|
||
|
|
||
| def get_accounts_email_notificator( | ||
| settings: BaseAppSettings = Depends(get_settings) | ||
| settings: BaseAppSettings = Depends(get_settings), | ||
| ) -> EmailSenderInterface: | ||
Taras-Ivashchuk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| """ | ||
| Retrieve an instance of the EmailSenderInterface configured with the application settings. | ||
|
|
@@ -76,12 +78,12 @@ def get_accounts_email_notificator( | |
| activation_email_template_name=settings.ACTIVATION_EMAIL_TEMPLATE_NAME, | ||
| activation_complete_email_template_name=settings.ACTIVATION_COMPLETE_EMAIL_TEMPLATE_NAME, | ||
| password_email_template_name=settings.PASSWORD_RESET_TEMPLATE_NAME, | ||
| password_complete_email_template_name=settings.PASSWORD_RESET_COMPLETE_TEMPLATE_NAME | ||
| password_complete_email_template_name=settings.PASSWORD_RESET_COMPLETE_TEMPLATE_NAME, | ||
Taras-Ivashchuk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ) | ||
|
|
||
|
|
||
| def get_s3_storage_client( | ||
| settings: BaseAppSettings = Depends(get_settings) | ||
| settings: BaseAppSettings = Depends(get_settings), | ||
| ) -> S3StorageInterface: | ||
Taras-Ivashchuk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| """ | ||
| Retrieve an instance of the S3StorageInterface configured with the application settings. | ||
|
|
@@ -101,5 +103,5 @@ def get_s3_storage_client( | |
| endpoint_url=settings.S3_STORAGE_ENDPOINT, | ||
| access_key=settings.S3_STORAGE_ACCESS_KEY, | ||
| secret_key=settings.S3_STORAGE_SECRET_KEY, | ||
| bucket_name=settings.S3_BUCKET_NAME | ||
| bucket_name=settings.S3_BUCKET_NAME, | ||
Taras-Ivashchuk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ) | ||
Uh oh!
There was an error while loading. Please reload this page.