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

Allow login flows to return Continuation instances #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

1 participant