mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-26 06:59:49 +05:30
Updated token interface to drop owner concept for simple user identifier
This commit is contained in:
parent
6358be90c2
commit
13a1ea6db8
@ -28,23 +28,17 @@ interface TokenInterface
|
|||||||
public function setExpiryDateTime(\DateTime $dateTime);
|
public function setExpiryDateTime(\DateTime $dateTime);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the token's owner
|
* Set the identifier of the user associated with the token
|
||||||
* @param string $type The type of the owner (e.g. "user", "client" or something more specific)
|
*
|
||||||
* @param string|int $identifier The identifier of the owner
|
* @param string|int $identifier The identifier of the user
|
||||||
*/
|
*/
|
||||||
public function setOwner($type, $identifier);
|
public function setUserIdentifier($identifier);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the token owner's type
|
* Get the token user's identifier
|
||||||
* @return string The type of owner (e.g. "user", "client" or something more specific)
|
|
||||||
*/
|
|
||||||
public function getOwnerType();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the token owner's identifier
|
|
||||||
* @return string|int
|
* @return string|int
|
||||||
*/
|
*/
|
||||||
public function getOwnerIdentifier();
|
public function getUserIdentifier();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the client that the token was issued to
|
* Get the client that the token was issued to
|
||||||
|
Loading…
Reference in New Issue
Block a user