siwa

Crates.iosiwa
lib.rssiwa
version0.1.2
sourcesrc
created_at2020-03-13 21:43:44.034372
updated_at2021-03-22 20:08:06.553467
descriptionSign In With Apple JWT validator library
homepagehttps://github.com/pusateri/siwa
repositoryhttps://github.com/pusateri/siwa.git
max_upload_size
id218351
size8,936
Tom Pusateri (pusateri)

documentation

https://docs.rs/siwa/0.1.2/

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.

Commit count: 13

cargo fmt