Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double encrypted token in Proxy class #7

Open
4levels opened this issue Jan 12, 2016 · 0 comments
Open

Double encrypted token in Proxy class #7

4levels opened this issue Jan 12, 2016 · 0 comments

Comments

@4levels
Copy link

4levels commented Jan 12, 2016

Hi,

when testing the refresh-token call I noticed that the Proxy class encrypts the token twice before storing it in the cookie. This seems to fail. When I adjust this, the refresh token call seems to work as intended.

in Proxy.php I commented line 50

48            $crypt  = app()->make('encrypter');
49
50            // $encryptedToken = $crypt->encrypt($response->refresh_token);
51
52            // Set the refresh token as an encrypted HttpOnly cookie
53            $cookie->queue('refreshToken',
54                $crypt->encrypt($response->refresh_token),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant