Skip to content

Commit

Permalink
chore(kong): reactivate IDP security for kong eps
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Mar 15, 2024
1 parent 0b2e1a5 commit ee840ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gateway/routers/kong.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
from typing import Annotated

import kong_admin_client
from fastapi import APIRouter, HTTPException, Body, Path
from fastapi import APIRouter, HTTPException, Body, Path, Security
from kong_admin_client import CreateServiceRequest, Service, CreateRouteRequest, CreatePluginForConsumerRequest, \
ListRoute200Response, CreateConsumerRequest, CreateAclForConsumerRequest, CreateKeyAuthForConsumerRequest
from kong_admin_client.rest import ApiException
from starlette import status

from gateway.auth import idp_oauth2_scheme
from gateway.conf import gateway_settings
from gateway.models.kong import ServiceRequest, HttpMethodCode, ProtocolCode, LinkDataStoreProject, \
Disconnect, LinkProjectAnalysis

kong_router = APIRouter(
# dependencies=[Security(idp_oauth2_scheme)],
dependencies=[Security(idp_oauth2_scheme)],
tags=["Kong"],
responses={404: {"description": "Not found"}},
)
Expand Down

0 comments on commit ee840ed

Please sign in to comment.