-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CHANGELOG | ||
========= | ||
|
||
|
||
2.0.0 - 2016-09-04 | ||
------------------ | ||
|
||
- Initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
* Action filter for validating simple auth token. | ||
* | ||
* @author Robert Korulczyk <[email protected]> | ||
* @since 1.0.0 | ||
*/ | ||
class ActionFilter extends \yii\base\ActionFilter { | ||
|
||
|
@@ -164,7 +165,7 @@ protected function validate($token, $url) { | |
|
||
/** | ||
* Check if given timestamp has not expired. | ||
* | ||
* | ||
* @param int $timestamp | ||
* @return bool True if timestamp has not expired, false otherwise. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
* Helper class for authentication requests. | ||
* | ||
* @author Robert Korulczyk <[email protected]> | ||
* @since 1.0.0 | ||
*/ | ||
abstract class Authenticator { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,13 @@ | |
* Helper class for generate auth tokens. | ||
* | ||
* @author Robert Korulczyk <[email protected]> | ||
* @since 1.0.0 | ||
*/ | ||
class Token { | ||
|
||
/** | ||
* Name of hashing algorithm used for generate token. | ||
* | ||
* | ||
* @var string | ||
* @see https://secure.php.net/manual/en/function.hash.php | ||
*/ | ||
|
@@ -66,7 +67,7 @@ public static function validate($token, $url, $time, $secret = null) { | |
|
||
/** | ||
* Validate secret key. If $secret is empty, Yii::$app->params['simpleauth']['secret'] is used. | ||
* | ||
* | ||
* @param string|null $secret | ||
* @return string | ||
* @throws InvalidParamException | ||
|