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

@require Should Not Always Redirect To Login #27

Closed
pedersen opened this issue Sep 24, 2012 · 0 comments
Closed

@require Should Not Always Redirect To Login #27

pedersen opened this issue Sep 24, 2012 · 0 comments
Assignees
Milestone

Comments

@pedersen
Copy link
Member

Right now, the require decorator will always redirect to the login page if the user does not have permissions to view the page in question.

Alternate behaviors that should be provided:

  • On detecting a content type that indicates a JavaScript/library type call, return a 403 (XML, JSON)
  • The developer should have the option of always aborting with a 403, and thus end the process, no redirect
  • The developer should have the ability to override the smart handling, and force things to end with a 403.
@ghost ghost assigned pedersen Sep 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant