Created middleware that checks authentication

This commit is contained in:
Alejandro Celaya
2016-07-04 17:54:24 +02:00
parent dfc5bfd0f2
commit 431169eb8c
6 changed files with 123 additions and 2 deletions

View File

@@ -22,4 +22,11 @@ interface RestTokenServiceInterface
* @throws AuthenticationException
*/
public function createToken($username, $password);
/**
* Updates the expiration of provided token, extending its life
*
* @param RestToken $token
*/
public function updateExpiration(RestToken $token);
}