Skip to content
Snippets Groups Projects
Commit 921c5163 authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

add user token authentication to the topology api

parent 001a27d1
No related branches found
No related tags found
1 merge request!218add user token authentication to the topology api
Pipeline #87057 passed
......@@ -3,19 +3,20 @@
import ipaddress
from uuid import UUID
from fastapi import APIRouter
from fastapi import APIRouter, Depends
from orchestrator.domain import SubscriptionModel
from orchestrator.schemas.base import OrchestratorBaseModel
from orchestrator.services.subscriptions import build_extended_domain_model
from starlette import status
from gso.auth.security import opa_security_default
from gso.products.product_blocks.iptrunk import IptrunkType, PhysicalPortCapacity
from gso.products.product_blocks.router import RouterRole
from gso.products.product_blocks.site import LatitudeCoordinate, LongitudeCoordinate
from gso.services.subscriptions import get_active_iptrunk_subscriptions
from gso.utils.shared_enums import Vendor
router = APIRouter(prefix="/networks", tags=["Network"])
router = APIRouter(prefix="/networks", tags=["Network"], dependencies=[Depends(opa_security_default)])
class SiteBlock(OrchestratorBaseModel):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment