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

Fixed client id not being client id, used references instead of owned strings and added static cache for apple keys #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Wicpar
Copy link

@Wicpar Wicpar commented Jun 8, 2022

Hi,

  • fixed verification of aud against client_id (app bundle id)
  • replaced String with &str because why clone things around like a mad man ?
  • added cache for apple keys, because todos are there to be resolved.

Notes:
3 tests are broken because Apple changed keys kid.

@@ -23,8 +23,23 @@ use jsonwebtoken::{
};
use serde::de::DeserializeOwned;
use std::collections::HashMap;
use lazy_static::lazy_static;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a totally unrelated change to the mix up of aud. lets split this off into a separate PR, I would like to argue about the API of this there then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants