Deadbolt for Scala

The Deadbolt for Scala Developer Hub

Welcome to the Deadbolt for Scala developer hub. You'll find comprehensive guides and documentation to help you start working with Deadbolt for Scala as quickly as possible, as well as support if you get stuck. Let's jump right in!

This project is supported by Auth0.

If you want to easily add secure authentication and authorization to your Java or Scala projects, feel free to check out Auth0's Java SDK, Scala examples and free plan at auth0.com/overview

Get Started    
Ask A Question

Questions

How to compose an Action for multipart upload with Subject Present?

Posted by Michael Read 9 months ago

First, Steve, excellent library. Kudo! I just love Deadbolt! However, I haven't figured this out:

@ https://www.playframework.com/documentation/2.5.x/ScalaFileUpload describes how to upload a file from the browser:
def upload = Action(parse.multipartFormData) { request =>
...
}

How would you compose a deadbolt subject present action with parse.multipartFormData starting from :
def logoUploadPost = actionBuilder.SubjectPresentAction().defaultHandler() { implicit request =>
...
}

It seems like it's too late to provide the alternate parser... Maybe something in the Dynamic arena?

Thanks much...

Loading comments...