Skip to content

Conversation

@robertpustulka
Copy link
Member

When using EncryptedCookieMiddleware cookies stored as a json string will be decoded after being decrypted.

Refs #194 (comment)

@robertpustulka robertpustulka added this to the 1.0.0 milestone Apr 10, 2018
@jeremyharris
Copy link
Member

Works great, thanks for figuring that out @robertpustulka!

$result = $authenticator->authenticate($request, $response);

$this->assertInstanceOf(Result::class, $result);
$this->assertEquals(Result::SUCCESS, $result->getStatus());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be strict with assertSame here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a copy-paste from other test :). Status is a string, so equals is enough for my taste.

Copy link
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@robertpustulka robertpustulka merged commit e871146 into master Apr 10, 2018
@robertpustulka robertpustulka deleted the fix-cookie-auth branch April 10, 2018 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants