chinhle-pa/attestation

A description for attestation.

dev-main 2022-05-10 06:49 UTC

This package is auto-updated.

Last update: 2024-04-10 10:46:40 UTC


README

Software License Travis Total Downloads

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.