add some in company and linters
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from typing import Annotated
|
||||
|
||||
from fastapi import Depends, HTTPException, Request, Response, status
|
||||
from fastapi import Depends, HTTPException, Request, status
|
||||
from fastapi.openapi.models import OAuthFlows as OAuthFlowsModel
|
||||
from fastapi.security import OAuth2
|
||||
from fastapi.security.utils import get_authorization_scheme_param
|
||||
@@ -13,7 +13,7 @@ from api.infrastructure.dependencies.stub import Stub
|
||||
class OAuth2PasswordBearerWithCookie(OAuth2):
|
||||
def __init__(
|
||||
self,
|
||||
tokenUrl: str,
|
||||
tokenUrl: str, # noqa
|
||||
scheme_name: str | None = None,
|
||||
scopes: dict[str, str] | None = None,
|
||||
auto_error: bool = True,
|
||||
|
@@ -1,7 +1,6 @@
|
||||
from fastapi import APIRouter, Depends, Request
|
||||
|
||||
from api.application.contracts.company.company_response import \
|
||||
CompanyBaseResponse
|
||||
from api.application.contracts.company.company_response import CompanyBaseResponse
|
||||
from api.presentation.auth.fasapi_auth import auth_required
|
||||
|
||||
company_router = APIRouter(prefix="/company", tags=["Company"])
|
||||
@@ -13,7 +12,6 @@ company_router = APIRouter(prefix="/company", tags=["Company"])
|
||||
dependencies=[Depends(auth_required)],
|
||||
)
|
||||
async def get_company(request: Request) -> CompanyBaseResponse:
|
||||
print(request.scope["auth"])
|
||||
return CompanyBaseResponse(
|
||||
name="some",
|
||||
email="some",
|
||||
|
Reference in New Issue
Block a user