31 Aug 2019

Database column-level encryption with Spring Data JPA

Column-level encryption is one of the database encryption methods, which allows user to select specific attributes for encryption instead of encrypting the entire database.
In this tutorial, we are going to look at how to implement database column-level encryption with Spring Data JPA.

04 Aug 2019

Custom JSON Web Token Claims in Spring Security OAuth2

Sometimes the standard claims provided by the framework are not enough, and we need to add some additional information to the JSON Web Tokens (JWT) for use on resource servers.
In this tutorial, we are going to look at how to add and use custom claims in JWT generated by Spring Security OAuth2.

10 Jul 2019

Exception Handling and Error Propagation in gRPC Java

It is quite important to propagate detailed error information from the server to the client in case something goes wrong, but the gRPC documentation lacks details on this topic.
In this tutorial, we are going to look at how to handle exceptions in the gRPC Java server and provide information about them to clients.

21 Jun 2019

Securing Java gRPC services with JWT-based authentication

gRPC is an open source, high-performance RPC framework that has several advantages to be used for communication between services, but unfortunately, in addition to SSL/TLS support, the only authentication mechanism built-in to gRPC is token-based authentication for use with Google services.
In this tutorial, we are going to create a gRPC server and secure it with JWT-based authentication.