File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
services/web/server/src/simcore_service_webserver/api_keys Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 33from aiohttp import web
44from aiohttp .web import RouteTableDef
55from models_library .api_schemas_webserver .auth import ApiKeyCreate , ApiKeyGet
6- from pydantic import HttpUrl , TypeAdapter
76from servicelib .aiohttp import status
87from servicelib .aiohttp .requests_validation import (
98 parse_request_body_as ,
@@ -73,8 +72,7 @@ async def create_api_key(request: web.Request):
7372 user_id = req_ctx .user_id ,
7473 product_name = req_ctx .product_name ,
7574 )
76- api_base_url = request .url .with_host (f"api.{ request .url .host } " ).with_path ("" )
77- resp .api_base_url = TypeAdapter (HttpUrl ).validate_python (f"{ api_base_url } " )
75+ # resp.api_base_url = TODO: https://github.com/ITISFoundation/osparc-simcore/issues/6340
7876 except DatabaseError as err :
7977 raise web .HTTPBadRequest (
8078 reason = "Invalid API key name: already exists" ,
You can’t perform that action at this time.
0 commit comments