chinhle-pa / attestation
A description for attestation.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
pkg:composer/chinhle-pa/attestation
Requires
- google/apiclient: ^2.12.1
- illuminate/support: ^7.0|^8.0
- sop/asn1: ^4.1
- spomky-labs/cbor-php: ^2.1
Requires (Dev)
- orchestra/testbench: ^6.0
This package is auto-updated.
Last update: 2025-10-10 13:47:44 UTC
README
Install
composer require chinhle-pa/attestation
Usage
Add middleware ensuredeive to any routes you need check attestation.
Route::get('/full-info', function(Request $request){ return $request; })->middleware('ensuredevice');
Plugin will repond a challenge key
{
"challenge": "bWd2dkJEdjhiS0dQT1ZtVXVqcFA="
}
iOS
Call POST api/via-attestation to check
{
"device-platform": "iOS",
"challenge": "bWd2dkJEdjhiS0dQT1ZtVXVqcFA=",
"integrityToken": "o2NmbXRvYXBwbGUtY....",
"keyIndentifier": "sy05jqrd95uyFKZcJrHobs6s.."
}
Android
{
"device-platform": "Android",
"challenge": "bWd2dkJEdjhiS0dQT1ZtVXVqcFA=",
"integrityToken": "o2NmbXRvYXBwbGUtY...."
}
Testing
Run the tests with:
vendor/bin/phpunit
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
Security
If you discover any security-related issues, please email chinhle@pacificcross.com.vn instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.