Skip to content

[5.3] Make the Authenticate middleware throw an AuthenticationException #3783

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

Merged
merged 3 commits into from
May 26, 2016

Conversation

JosephSilber
Copy link
Contributor

@JosephSilber JosephSilber commented May 22, 2016

This PR is part of this change, so that we can unify unauthenticated responses.

@taylorotwell
Copy link
Member

This can't be merged without solution for redirect URI.

@JosephSilber
Copy link
Contributor Author

JosephSilber commented May 25, 2016

@taylor currently, we ship the full response logic in laravel/laravel, and allow people to tweak it there.

Can't we do the same here? Ship the whole unauthenticated method in laravel/laravel, and allow people to tweak it inline.

@taylorotwell
Copy link
Member

Sure, change the PR to do that

@JosephSilber
Copy link
Contributor Author

@taylorotwell should we make the base exception handler an abstract class, and create an abstract unauthenticated method on it?

@taylorotwell
Copy link
Member

I don't see any need for that really.

@taylorotwell
Copy link
Member

Just do what we said a few comments ago.

@JosephSilber
Copy link
Contributor Author

@taylorotwell done.

@GrahamCampbell GrahamCampbell changed the title Make the Authenticate middleware throw an AuthenticationException [5.3] Make the Authenticate middleware throw an AuthenticationException May 25, 2016
@taylorotwell taylorotwell merged commit 3ddaf3f into laravel:develop May 26, 2016
@JosephSilber JosephSilber deleted the authenticate branch May 26, 2016 13:22
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

Successfully merging this pull request may close these issues.

3 participants