Category: Java

First Steps with Guice

First steps with Guice

A majority of Java developers came to embrace and love Spring’s Inversion of Control (IoC) to inject dependencies. However not all projects are Spring-based! One may want to consider alternatives for taking care of dependency injection… And one of those options is the Guice framework.

From stateful to stateless RESTful security using Spring and JWTs – Part 4 (JWT-based authentication)

Previously we have managed to finally get rid of that Session object and transform our RESTful API security to leverage a stateless authentication solution. We replaced our beloved JSESSIONID with a simple string of text, a token, that allowed us to identify a user. But the solution we used is not secure at all. We still need to find a token with the right characteristics to be safe enough in this world of leaks and breaches. Enter JWTs…