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

Create SecuredEssentialAction #482

Open
eliotfowler opened this issue Oct 1, 2014 · 4 comments
Open

Create SecuredEssentialAction #482

eliotfowler opened this issue Oct 1, 2014 · 4 comments

Comments

@eliotfowler
Copy link

I'm writing an action that has a custom body parser, that streams the incoming file to an S3 instance. Prior to parsing that body, I need to check that the user is authenticated and perform some database calls to validate that the user has permission to update a file of that size.

In order to do this, I believe this module will need to extend EssentialAction (as you informed me in this comment on StackOverflow) that will authenticate the user PRIOR to parsing the body.

Is this something you would be able to add, or something you could point me in the right direction to adding?

@jaliss
Copy link
Owner

jaliss commented Oct 3, 2014

I would like to add this but not sure I can do it soon. If you want to start I'd take a look at EssentialAction (or Action itself) and try to create an action that checks if the request is authenticated (as SecuredAction does) and if it's the case then use the body parser to parse the request and delegate to the action code.

@eliotfowler
Copy link
Author

Okay, thanks Jorge. I'll take a look and try to get this implemented.

@jaliss
Copy link
Owner

jaliss commented Oct 3, 2014

Alright, feel free to ping me if you get blocked.

@eliotfowler
Copy link
Author

@jaliss I'm struggling to make much progress on this. I've tried adding an Essential Action, but I can't seem to manually authenticate. Any way you could offer some assistance or point me in the right direction?

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

No branches or pull requests

2 participants