-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed unnecessary packages from the requirements for RabbitMQ and a…
…dded logging settings to the User-service and Token-service. Also removed RabbitMQ consumers and utility files from all services. Updated views files and removed all functions related to RabbitMQ. Changed all communication between microservices to direct communication. Added `gen-tokens`, `invalidate-tokens`, and `validate-token` endpoints to token_service urls.py
- Loading branch information
Showing
26 changed files
with
233 additions
and
592 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
74 changes: 0 additions & 74 deletions
74
Backend/token_service/token_service/token_app/rabbitmq_utils.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
# from django.contrib import admin | ||
from django.urls import path | ||
from token_app.views import CustomTokenRefreshView | ||
from token_app.views import CustomTokenRefreshView, CustomTokenObtainPairView, InvalidateToken, ValidateToken | ||
|
||
urlpatterns = [ | ||
path("token/refresh/", CustomTokenRefreshView.as_view(), name="token_refresh"), | ||
path("token/refresh/", CustomTokenRefreshView.as_view(), name="token_refresh",), | ||
path("token/gen-tokens/", CustomTokenObtainPairView.as_view({"post": "create_token_for_user",}), name="generate_tokens",), | ||
path("token/invalidate-tokens/", InvalidateToken.as_view({"post": "invalidate_token_for_user",}), name="invalidate_tokens",), | ||
path("token/validate-token/", ValidateToken.as_view({"post": "validate_token_for_user",}), name="validate_token",), | ||
] |
Oops, something went wrong.