Skip to content

Commit

Permalink
alpha1
Browse files Browse the repository at this point in the history
  • Loading branch information
HergenD committed Jul 8, 2020
1 parent 2e78474 commit 05a75c3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/vendor
/.idea
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "werk365/jwtfusionauth",
"description": ":package_description",
"description": "Use JWT to auth users in Laravel"
"version": "1.0.0-alpha",
"license": "MIT",
"authors": [
{
Expand Down
11 changes: 11 additions & 0 deletions src/Models/jwk.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace werk365\Models;

use Illuminate\Database\Eloquent\Model;

class jwk extends Model
{
//
protected $fillable = ['kid', 'key'];
}
2 changes: 1 addition & 1 deletion src/jwtfusionauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace werk365\jwtfusionauth;

use App\jwk;
use werk365\Models\jwk;
use App\User;
use Firebase\JWT\JWT;
use phpseclib\Crypt\RSA;
Expand Down
4 changes: 2 additions & 2 deletions src/jwtfusionauthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ protected function getMigrationFileName(Filesystem $filesystem): string

return Collection::make($this->app->databasePath().DIRECTORY_SEPARATOR.'migrations'.DIRECTORY_SEPARATOR)
->flatMap(function ($path) use ($filesystem) {
return $filesystem->glob($path.'*_create_jwks_tables.php');
})->push($this->app->databasePath()."/migrations/{$timestamp}_create_permission_tables.php")
return $filesystem->glob($path.'*_create_jwks_table.php');
})->push($this->app->databasePath()."/migrations/{$timestamp}_create_jwks_table.php")
->first();
}
}

0 comments on commit 05a75c3

Please sign in to comment.