From b9a79eb8583807769f8b9a9e27b0001f5f6d43c0 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Mon, 30 May 2022 10:59:48 +0200 Subject: [PATCH] Change apiKeyPrefix to apiKeyUid --- meilisearch-http/src/extractors/authentication/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meilisearch-http/src/extractors/authentication/mod.rs b/meilisearch-http/src/extractors/authentication/mod.rs index a0e914ec9..fdce0f5f0 100644 --- a/meilisearch-http/src/extractors/authentication/mod.rs +++ b/meilisearch-http/src/extractors/authentication/mod.rs @@ -155,8 +155,8 @@ pub mod policies { let token_data = decode::(token, &dummy_key, &validation).ok()?; // get token fields without validating it. - let Claims { uid, .. } = token_data.claims; - Some(uid) + let Claims { api_key_uid, .. } = token_data.claims; + Some(api_key_uid) } fn is_keys_action(action: u8) -> bool { @@ -250,6 +250,6 @@ pub mod policies { struct Claims { search_rules: SearchRules, exp: Option, - uid: Uuid, + api_key_uid: Uuid, } }