Upcoming talks and demos:

Jupyter Con - New York 23-25 Aug









View Natalino Busa's profile on LinkedIn





Principal Data Scientist, Director for Data Science, AI, Big Data Technologies. O’Reilly author on distributed computing and machine learning.



Natalino leads the definition, design and implementation of data-driven financial and telecom applications. He has previously served as Enterprise Data Architect at ING in the Netherlands, focusing on fraud prevention/detection, SoC, cybersecurity, customer experience, and core banking processes.


​Prior to that, he had worked as senior researcher at Philips Research Laboratories in the Netherlands, on the topics of system-on-a-chip architectures, distributed computing and compilers. All-round Technology Manager, Product Developer, and Innovator with 15+ years track record in research, development and management of distributed architectures, scalable services and data-driven applications.

Wednesday, November 28, 2012

Basic Authentication in Play! Framework (Scala)

Based on my previous post, a very simple implementation of http authentication based on basic access authentication.

This example retrieves the authentication data from the http request header. It uses flatMap as a way to idiomatically access and parse the "Authorization" key, if present. The constructs flatMap, map, foreach work very well in combination with scala Option, since the value None is always discarded.

Furthermore, this very simple example uses the org.apache.commons.codec to decode the base64 user:password value of the basic authentication. In this example, the password in not processed, and the user string is passed on to the for further processing using the chainedAction -> Action mechanism already explained in the previous post.