tomasmcguinness / pkpassvalidator

Checks the validity of a PKPASS file by checking it's signature and contents match the Apple specification
MIT License
78 stars 21 forks source link

Ensure `authenticationToken` meets length requirements #9

Closed chilledornaments closed 4 years ago

chilledornaments commented 4 years ago

According to the PassKit docs, authenticationToken must be at least 16 characters long. I spent a lot of time chasing my tail because FOOBAR < 16 characters.

Reference docs

tomasmcguinness commented 4 years ago

Hi.

Sorry that check wasn’t in there! I had a 16 character check on serial number, which I removed because it was not required. I must have misread the specification at the time!

I will add that check in as soon as possible.

Thank you for the coffee!! Very kind.

chilledornaments commented 4 years ago

Sorry for not responding to this for almost a month!

Thanks for implementing this! Great work :)

tomasmcguinness commented 4 years ago

No problem. If you find this library useful, please consider sponsoring me - https://ko-fi.com/tomasmcguinness - thanks!