Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from DarkGhostHunter/master
Browse files Browse the repository at this point in the history
Ready for production.
  • Loading branch information
DarkGhostHunter authored Jul 3, 2020
2 parents 84f7422 + 0f17d28 commit f32106e
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ public function up()
// Change accordingly for your users table if you need to.
$table->unsignedBigInteger('user_id');

$table->boolean('is_enabled')->default(true);

$table->string('name')->nullable();
$table->string('type', 16);
$table->json('transports');
Expand All @@ -39,7 +37,7 @@ public function up()
$table->timestamps();
$table->softDeletes(WebAuthnCredential::DELETED_AT);

$table->primary(['id', 'is_enabled']);
$table->primary(['id', 'user_id']);
});
}

Expand Down
1 change: 0 additions & 1 deletion tests/Auth/EloquentWebAuthnProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public function test_retrieves_user_using_credential_id()
DB::table('web_authn_credentials')->insert([
'id' => 'test_credential_id',
'user_id' => 1,
'is_enabled' => true,
'type' => 'public_key',
'transports' => json_encode([]),
'attestation_type' => 'none',
Expand Down
3 changes: 0 additions & 3 deletions tests/Http/WebAuthnLoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ public function test_receives_webauthn_options_by_credentials()
DB::table('web_authn_credentials')->insert([
'id' => 'test_credential_id',
'user_id' => 1,
'is_enabled' => true,
'type' => 'public_key',
'transports' => json_encode([]),
'attestation_type' => 'none',
Expand Down Expand Up @@ -146,7 +145,6 @@ public function test_disabled_credential_doesnt_show()
DB::table('web_authn_credentials')->insert([
'id' => 'test_credential_id',
'user_id' => 1,
'is_enabled' => false,
'type' => 'public_key',
'transports' => json_encode([]),
'attestation_type' => 'none',
Expand Down Expand Up @@ -199,7 +197,6 @@ public function test_user_authenticates_with_webauthn()
DB::table('web_authn_credentials')->insert([
'id' => 'test_credential_id',
'user_id' => 1,
'is_enabled' => true,
'type' => 'public_key',
'transports' => json_encode([]),
'attestation_type' => 'none',
Expand Down
1 change: 0 additions & 1 deletion tests/WebAuthn/WebAuthnAssertionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ protected function setUp() : void
DB::table('web_authn_credentials')->insert([
'id' => 'test_credential_foo',
'user_id' => 1,
'is_enabled' => true,
'type' => 'public_key',
'transports' => json_encode([]),
'attestation_type' => 'none',
Expand Down
1 change: 0 additions & 1 deletion tests/WebAuthn/WebAuthnAttestationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ protected function setUp() : void
DB::table('web_authn_credentials')->insert([
'id' => 'test_credential_foo',
'user_id' => 1,
'is_enabled' => true,
'type' => 'public_key',
'transports' => json_encode([]),
'attestation_type' => 'none',
Expand Down
1 change: 0 additions & 1 deletion tests/WebAuthnAuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ protected function setUp() : void
DB::table('web_authn_credentials')->insert([
'id' => 'test_credential_foo',
'user_id' => 1,
'is_enabled' => true,
'type' => 'public_key',
'transports' => json_encode([]),
'attestation_type' => 'none',
Expand Down

0 comments on commit f32106e

Please sign in to comment.