Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Oct 30, 2024
1 parent ca2103f commit 3a91ff2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ parking_lot = "0.12.1"
parquet = { version = "53", features = ["async"] }
paste = "1.0.15"
pin-project-lite = "0.2.9"
poem = { version = "3.0", features = ["openssl-tls", "multipart", "compression"] }
poem = { version = "3.0", features = ["openssl-tls", "multipart", "compression", "cookie"] }
pprof = { version = "0.13.0", features = [
"flamegraph",
"protobuf-codec",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async fn check_login(

#[derive(Deserialize)]
struct LoginQuery {
disable_session_token: bool,
disable_session_token: Option<bool>,
}

/// # For client/driver developer:
Expand Down Expand Up @@ -107,7 +107,7 @@ pub async fn login_handler(
match ctx.credential {
Credential::Jwt { .. } => id_only(),
Credential::Password { .. } => {
if query.disable_session_token {
if query.disable_session_token.unwrap_or(false) {
id_only()
} else {
let (session_id, token_pair) = ClientSessionManager::instance()
Expand Down
1 change: 1 addition & 0 deletions tests/suites/1_stateful/09_http_handler/09_0007_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def main():
session_token = login_resp.get("session_token")
refresh_token = login_resp.get("refresh_token")
# print(session_token)
return

# ok
query_resp = do_query("select 1", session_token)
Expand Down

0 comments on commit 3a91ff2

Please sign in to comment.