File tree 5 files changed +22
-8
lines changed
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
8
8
9
9
## [ unreleased]
10
10
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
+
11
15
## [ 0.18.7] - 2024-01-17
12
16
13
17
- Fixes ` connection_uri ` normalisation in the dashboard recipe.
Original file line number Diff line number Diff line change 70
70
71
71
setup (
72
72
name = "supertokens_python" ,
73
- version = "0.18.7 " ,
73
+ version = "0.18.8 " ,
74
74
author = "SuperTokens" ,
75
75
license = "Apache 2.0" ,
76
76
Original file line number Diff line number Diff line change 14
14
from __future__ import annotations
15
15
16
16
SUPPORTED_CDI_VERSIONS = ["3.0" ]
17
- VERSION = "0.18.7 "
17
+ VERSION = "0.18.8 "
18
18
TELEMETRY = "/telemetry"
19
19
USER_COUNT = "/users/count"
20
20
USER_DELETE = "/user/remove"
Original file line number Diff line number Diff line change @@ -50,9 +50,18 @@ async def dashboard_get(
50
50
connection_uri = ""
51
51
super_tokens_instance = Supertokens .get_instance ()
52
52
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
+ )
56
65
57
66
dashboard_path = options .app_info .api_base_path .append (
58
67
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):
163
163
164
164
async def test_connection_uri_has_https_prefix_if_not_localhost (app : TestClient ):
165
165
start_st ()
166
- connection_uri = "https://try.supertokens.com"
166
+ connection_uri = "https://try.supertokens.com/appid-public "
167
167
connection_uri_without_protocol = connection_uri .replace ("https://" , "" )
168
168
169
169
st_args = get_st_init_args (
@@ -189,8 +189,9 @@ async def test_connection_uri_has_https_prefix_if_not_localhost(app: TestClient)
189
189
async def test_that_first_connection_uri_is_selected_among_multiple_uris (
190
190
app : TestClient ,
191
191
):
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/"
194
195
multiple_connection_uris = f"{ first_connection_uri } ;{ second_connection_uri } "
195
196
196
197
st_args = get_st_init_args (
You can’t perform that action at this time.
0 commit comments