You've already forked php-auth
generated from siteworxpro/Php-Template
Basics of auth
This commit is contained in:
27
src/OAuth/Entities/Scope.php
Normal file
27
src/OAuth/Entities/Scope.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Siteworxpro\App\OAuth\Entities;
|
||||
|
||||
use League\OAuth2\Server\Entities\ScopeEntityInterface;
|
||||
use League\OAuth2\Server\Entities\Traits\ScopeTrait;
|
||||
use Siteworxpro\App\Models\Model;
|
||||
|
||||
/**
|
||||
* Class Scope
|
||||
* @package Siteworxpro\App\Models
|
||||
*
|
||||
* @property string $id
|
||||
* @property string $name
|
||||
* @property string $description
|
||||
*/
|
||||
class Scope extends Model implements ScopeEntityInterface
|
||||
{
|
||||
use ScopeTrait;
|
||||
|
||||
public function getIdentifier(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user