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

Local verification #4

Merged
merged 4 commits into from
Feb 14, 2020
Merged

Local verification #4

merged 4 commits into from
Feb 14, 2020

Conversation

da-x
Copy link
Contributor

@da-x da-x commented Feb 7, 2020

This a whole bunch of changes, ultimately addressing issue #2.

da-x added 4 commits February 7, 2020 23:53
- Implement local verification by accessing the certificates from their
public URLs, and verify them using jsonwebtoken crate.
- Use Cache-Control response header to determine when to re-download the
certificates.
- Parameterize the IdInfo struct - in the decoded token, the fields are
not strings like in the debug API, but their real types.
- Modify the interface to distinguish between the slow and unrecommended
debug API and the API for local verification
- Add a small test to see that the cached certificates work.
@kestred
Copy link
Collaborator

kestred commented Feb 14, 2020

Awesome! Thanks for the hard work. Will merge, test and publish.

@longfellowone
Copy link

Is available to download on crates.io yet?

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.

4 participants