Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tenant token api for v0.28.1 #318

Merged
merged 78 commits into from
Aug 29, 2022

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();

…meilisearch-rust into update_http_methods_for_v0.28.0
…meilisearch-rust into update_http_methods_for_v0.28.0
@bidoubiwa bidoubiwa requested review from irevoire and alallema 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
src/tenant_tokens.rs Outdated Show resolved Hide resolved
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