Begin implementation of new daemon authentication scheme

This commit is contained in:
Dane Everitt 2017-09-23 20:45:25 -05:00
parent 8722571037
commit 906a699ee2
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
23 changed files with 796 additions and 145 deletions
app/Models

View file

@ -42,13 +42,6 @@ class Subuser extends Model implements CleansAttributes, ValidableContract
*/
protected $table = 'subusers';
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = ['daemonSecret'];
/**
* Fields that are not mass assignable.
*
@ -72,7 +65,6 @@ class Subuser extends Model implements CleansAttributes, ValidableContract
protected static $applicationRules = [
'user_id' => 'required',
'server_id' => 'required',
'daemonSecret' => 'required',
];
/**
@ -81,7 +73,6 @@ class Subuser extends Model implements CleansAttributes, ValidableContract
protected static $dataIntegrityRules = [
'user_id' => 'numeric|exists:users,id',
'server_id' => 'numeric|exists:servers,id',
'daemonSecret' => 'string',
];
/**