https://github.com/pusateri/siwa
Sign In With Apple JWT validator Rust library
https://github.com/pusateri/siwa
jwt rust signinwithapple
Last synced: over 1 year ago
JSON representation
Sign In With Apple JWT validator Rust library
- Host: GitHub
- URL: https://github.com/pusateri/siwa
- Owner: pusateri
- License: mit
- Created: 2020-03-12T04:50:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-25T23:48:41.000Z (almost 2 years ago)
- Last Synced: 2025-02-28T09:48:35.595Z (over 1 year ago)
- Topics: jwt, rust, signinwithapple
- Language: Rust
- Size: 14.6 KB
- Stars: 10
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sign In With Apple JSON Web Token validator library
When using Sign In with Apple on an iOS/iPadOS/macOS device, the client receives an identity token and user token to send to a web/cloud server for validation. The identity token is in the form of a base64 encoded, signed, JSON Web Token (JWT).
This library can be used on the server side to validate the identity token with Apple's servers. An identity token is usually only valid for about 5 minutes.
For testing, it can be valuable to save an identity token for longer than 5 minutes and validate it except for the expiry time. A flag is provided for this purpose when calling the validator.
Apple also provides a mechanism for the server to re-validate the user periodically (but not more than once per day). A future version of this library will add this functionality.