composer: require asbiin/laravel-webauthn
This commit is contained in:
parent
f137192113
commit
cdd07fa275
4 changed files with 1743 additions and 1 deletions
45
database/migrations/2019_03_29_163611_add_webauthn.php
Normal file
45
database/migrations/2019_03_29_163611_add_webauthn.php
Normal file
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddWebauthn extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('webauthn_keys', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('user_id');
|
||||
|
||||
$table->string('name')->default('key');
|
||||
$table->string('credential_id', 255);
|
||||
$table->string('type', 255);
|
||||
$table->text('transports');
|
||||
$table->string('attestation_type', 255);
|
||||
$table->text('trust_path');
|
||||
$table->text('aaguid');
|
||||
$table->text('credential_public_key');
|
||||
$table->integer('counter');
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
||||
$table->index('credential_id');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('webauthn_keys');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue