Created
January 6, 2016 16:17
-
-
Save millar/50169e74c1af785a2983 to your computer and use it in GitHub Desktop.
Solution regarding https://github.com/artdarek/oauth-4-laravel/issues/40
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
<?php | |
namespace OAuth\Common\Storage; | |
use Predis\Client as Predis; | |
class LaravelRedisStorage extends Redis implements TokenStorageInterface { | |
public function __construct() | |
{ | |
$this->redis = \Redis::connection(); | |
$this->key = 'oauth_user_tokens'; | |
$this->stateKey = 'oauth_user_states'; | |
$this->cachedTokens = array(); | |
$this->cachedStates = array(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment