File tree Expand file tree Collapse file tree 5 files changed +22
-8
lines changed
Expand file tree Collapse file tree 5 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
99## [ unreleased]
1010
11+ ## [ 0.18.8] - 2024-02-29
12+
13+ - Fixes dashboard URI path. Now it returns the complete user given path instead of just the normalized connectionURI domain.
14+
1115## [ 0.18.7] - 2024-01-17
1216
1317- Fixes ` connection_uri ` normalisation in the dashboard recipe.
Original file line number Diff line number Diff line change 7070
7171setup (
7272 name = "supertokens_python" ,
73- version = "0.18.7 " ,
73+ version = "0.18.8 " ,
7474 author = "SuperTokens" ,
7575 license = "Apache 2.0" ,
7676
Original file line number Diff line number Diff line change 1414from __future__ import annotations
1515
1616SUPPORTED_CDI_VERSIONS = ["3.0" ]
17- VERSION = "0.18.7 "
17+ VERSION = "0.18.8 "
1818TELEMETRY = "/telemetry"
1919USER_COUNT = "/users/count"
2020USER_DELETE = "/user/remove"
Original file line number Diff line number Diff line change @@ -50,9 +50,18 @@ async def dashboard_get(
5050 connection_uri = ""
5151 super_tokens_instance = Supertokens .get_instance ()
5252 auth_mode = options .config .auth_mode
53- connection_uri = NormalisedURLDomain (
54- super_tokens_instance .supertokens_config .connection_uri .split (";" )[0 ]
55- ).get_as_string_dangerous ()
53+ connection_uri = (
54+ NormalisedURLDomain (
55+ super_tokens_instance .supertokens_config .connection_uri .split (";" )[
56+ 0
57+ ]
58+ ).get_as_string_dangerous ()
59+ + NormalisedURLPath (
60+ super_tokens_instance .supertokens_config .connection_uri .split (";" )[
61+ 0
62+ ]
63+ ).get_as_string_dangerous ()
64+ )
5665
5766 dashboard_path = options .app_info .api_base_path .append (
5867 NormalisedURLPath (DASHBOARD_API )
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ async def test_connection_uri_has_http_prefix_if_localhost(app: TestClient):
163163
164164async def test_connection_uri_has_https_prefix_if_not_localhost (app : TestClient ):
165165 start_st ()
166- connection_uri = "https://try.supertokens.com"
166+ connection_uri = "https://try.supertokens.com/appid-public "
167167 connection_uri_without_protocol = connection_uri .replace ("https://" , "" )
168168
169169 st_args = get_st_init_args (
@@ -189,8 +189,9 @@ async def test_connection_uri_has_https_prefix_if_not_localhost(app: TestClient)
189189async def test_that_first_connection_uri_is_selected_among_multiple_uris (
190190 app : TestClient ,
191191):
192- first_connection_uri = start_st ()
193- second_connection_uri = "https://try.supertokens.com"
192+ start_st ()
193+ first_connection_uri = "https://try.supertokens.com/appid-public"
194+ second_connection_uri = "https://test.supertokens.com/"
194195 multiple_connection_uris = f"{ first_connection_uri } ;{ second_connection_uri } "
195196
196197 st_args = get_st_init_args (
You can’t perform that action at this time.
0 commit comments