Skip to content

Commit 8ffe410

Browse files
committed
chore: New release 1.47.4
1 parent 8e90ff3 commit 8ffe410

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
lines changed

exts/wandelbots.omni/config/extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ reloadable = true
33
order = 0
44

55
[package]
6-
version = "1.47.3"
6+
version = "1.47.4"
77
category = "Simulation"
88
title = "Wandelbots NOVA"
99
description = "Simulate your robotics cell running on Wandelbots NOVA."

exts/wandelbots.omni/docs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog - Wandelbots NOVA x Nvidia Isaac Sim
22

3+
## 1.47.4 (2025-04-15)
4+
5+
### Bug Fixes
6+
7+
* Fixed used base_url endpoint for authentication
8+
39
## 1.47.3 (2025-04-09)
410

511
### Bug Fixes

exts/wandelbots.omni/wandelbots/omni/base.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
from wandelbots.omni.datatypes import Auth0Credentials
2-
from wandelbots.omni.utils.auth import get_auth_token, store_auth_token, validate_request
2+
from wandelbots.omni.utils.auth import (
3+
get_auth_token,
4+
store_auth_token,
5+
validate_request,
6+
)
37
from wandelbots.omni.utils.base import get_versions_of_enabled_extensions
4-
from fastapi import Body, FastAPI, Request
8+
from fastapi import Body, FastAPI, Request, HTTPException
59
from fastapi import status as st
610
from fastapi.middleware.cors import CORSMiddleware
711
from fastapi.responses import HTMLResponse
@@ -22,7 +26,7 @@
2226
omniservice_app = FastAPI(
2327
title="Wandelbots Omniservice",
2428
description="A microservice-based framework for managing Omniverse functionalities",
25-
version="1.47.3",
29+
version="1.47.4",
2630
redoc_url=None,
2731
)
2832
omniservice_app.add_middleware(
@@ -34,7 +38,6 @@
3438
)
3539

3640

37-
3841
@omniservice_app.get("/status", status_code=st.HTTP_200_OK)
3942
async def status():
4043
"""
@@ -70,7 +73,7 @@ async def authenticate(credentials: Auth0Credentials = Body()) -> None:
7073
"""
7174
try:
7275
protocol = "https" if credentials.is_secured else "http"
73-
base_url = f"{protocol}://{credentials.host}/"
76+
base_url = f"{protocol}://{credentials.host}/api/v1/license"
7477

7578
if credentials.access_token:
7679
token_to_validate = credentials.access_token
@@ -82,7 +85,7 @@ async def authenticate(credentials: Auth0Credentials = Body()) -> None:
8285
if token_to_validate is not None:
8386
store_auth_token(token_to_validate)
8487
except Exception as e:
85-
raise ValueError(f"Can not authenticate with Wandelbots NOVA. {e}")
88+
raise HTTPException(500, f"Can not authenticate with Wandelbots NOVA. {e}")
8689

8790

8891
@omniservice_app.get("/api", include_in_schema=False)
@@ -126,5 +129,3 @@ async def root():
126129
omniservice_app.include_router(router=stream_router)
127130
omniservice_app.include_router(router=ghost_teaching_router)
128131
omniservice_app.include_router(router=ui_router)
129-
130-

exts/wandelbots.omni/wandelbots/omni/openapi.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

exts/wandelbots.omni/wandelbots/omni/utils/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def validate_request(token: str | None, base_url: str):
6060
if response.status_code != 200:
6161
raise HTTPException(
6262
400,
63-
"Unable to ping server after successfully after establishing connection",
63+
f"Unable to ping server after successfully (status={response.status_code}) after establishing connection",
6464
)
6565
carb.log_info("Authentication successful")
6666
except httpx.HTTPStatusError as e:
@@ -72,7 +72,7 @@ async def validate_request(token: str | None, base_url: str):
7272
else:
7373
raise HTTPException(
7474
403,
75-
"Authentication error: Forbidden access. You might not have the necessary permissions",
75+
f"Authentication error: Forbidden access (status={e.response.status_code}). You might not have the necessary permissions",
7676
)
7777
except Exception as e:
7878
raise HTTPException(400, "Invalid authentication details") from e

0 commit comments

Comments
 (0)