Skip to content

Commit 1b1508b

Browse files
committed
imp(api): migrate dev-dependency from inferadb-engine-auth to inferadb-common-authn
1 parent 053236c commit 1b1508b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ uuid = { workspace = true }
4242

4343
[dev-dependencies]
4444
inferadb-control-test-fixtures = { path = "../test-fixtures" }
45-
inferadb-engine-auth = { path = "../../../engine/crates/auth" }
45+
inferadb-common-authn = ">=0.1.0-0"
4646
rand_core = { version = "0.6", features = ["getrandom"] }
4747

4848
[lints]

crates/api/tests/client_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ async fn test_engine_rejects_tokens_after_revocation() {
12871287

12881288
use base64::engine::{Engine as Base64Engine, general_purpose::STANDARD as BASE64};
12891289
use chrono::Utc;
1290-
use inferadb_engine_auth::{
1290+
use inferadb_common_authn::{
12911291
SigningKeyCache, error::AuthError, jwt::verify_with_signing_key_cache,
12921292
};
12931293
use jsonwebtoken::{Algorithm, EncodingKey, Header, encode};
@@ -1388,7 +1388,7 @@ async fn test_engine_rejects_tokens_after_revocation() {
13881388

13891389
// Create JWT claims
13901390
let now = Utc::now().timestamp() as u64;
1391-
let claims = inferadb_engine_auth::jwt::JwtClaims {
1391+
let claims = inferadb_common_authn::jwt::JwtClaims {
13921392
iss: "https://api.inferadb.com".into(),
13931393
sub: format!("client:{client_id}"),
13941394
aud: "https://api.inferadb.com/evaluate".into(),

0 commit comments

Comments
 (0)