Skip to content

Conversation

bidoubiwa
Copy link
Contributor

All Changes

  • apiKeyPrefix claim is now named apiKeyUid and expects the uid of the signing API key as a value.

Breaking Changes

The payload of the tenant token is now using the new uid field of a key, instead of the key itself:

Example:

 let api_key_uid = "76cf8b87-fd12-4688-ad34-260d930ca4f4".to_string();
 let key = "Ëa1ทt9bVcL-vãUทtP3OpXW5qPc%bWH5ทvw09";
 let token = generate_tenant_token(api_key_uid.clone(), json!(SEARCH_RULES), key, None).unwrap();

@bidoubiwa bidoubiwa requested review from alallema and irevoire August 25, 2022 14:59
@bidoubiwa bidoubiwa marked this pull request as ready for review August 25, 2022 15:00
@bidoubiwa bidoubiwa added the breaking-change The related changes are breaking for the users label Aug 25, 2022
Base automatically changed from update_documents_for_v0.28.0 to bump-meilisearch-v0.28.0 August 29, 2022 14:38
@bidoubiwa bidoubiwa force-pushed the update_tokens_for_v0.28.0 branch from af88cd3 to 2d0979f Compare August 29, 2022 14:45
@bidoubiwa bidoubiwa merged commit 78f08a3 into bump-meilisearch-v0.28.0 Aug 29, 2022
@bidoubiwa bidoubiwa deleted the update_tokens_for_v0.28.0 branch August 29, 2022 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change The related changes are breaking for the users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants