Skip to content

Conversation

@thekid
Copy link
Member

@thekid thekid commented Nov 20, 2022

These will rewrite the request URI and pass an "auth" value with the response, and then continue processing the request. This can be used e.g. to show a login page.

These will rewrite the request URI and pass an "auth" value with the
response, and then continue processing the request. This can be used
e.g. to show a login page
@thekid thekid added the enhancement New feature or request label Nov 20, 2022
// order to fulfill its job.
$result= $this->flow->authenticate($req, $res, $session);
if (null === $result) {
return;
Copy link
Member Author

Choose a reason for hiding this comment

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

Instead of redirection implemented in the Flow class, this could be also refactored to if ($result instanceof Redirect) { ... } and then handling that here. This would further simplify the implementations IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants