Dean Hiller
Dean Hiller

Reputation: 20190

playframework 2.x how to do basic authentication for application/json requests?

We would like to do form authentication for users for basic and I think we could work through the zentasks sample for that. How do we do basic authentication so programs can programmatically pre-empt the challenge and not deal with form authentication at all?

Upvotes: 2

Views: 5689

Answers (2)

Dimitry
Dimitry

Reputation: 4593

I created a example implementation of Basic Authentication using Play Framework Filters with Scala. Here is the Gist and here is a blog post.

Upvotes: 0

Dean Hiller
Dean Hiller

Reputation: 20190

never mind, found something perfect and it worked great...

http://digitalsanctum.com/2012/06/07/basic-authentication-in-the-play-framework-using-custom-action-annotation/

Upvotes: 2

Related Questions