Integrating Open Policy Agent with Spring Security Reactive and JSON Web Tokens

We present a Java library that simplifies adopting the Open Policy Agent server to manage user authorization for a Spring Boot microservice, while also managing API Token (JWT) authentication. Motivation Spring Security assumes a fairly simplistic Role-Based access control (RBAC) where the service authenticates the user (via some credentials, typically username/password) and returns a UserDetails … More Integrating Open Policy Agent with Spring Security Reactive and JSON Web Tokens

Implement the Envelope Wrapper Pattern in C++ using Google Protocol Buffers

The Envelope Wrapper pattern This pattern, described in “Enterprise Integration Patterns” (Ch. 8, “The Envelope Wrapper”), is used typically in messaging systems, when a number of metadata fields (for routing, security, etc.) are kept in a header, while the data used by service endpoints is serialized in a payload. For the system to be generically … More Implement the Envelope Wrapper Pattern in C++ using Google Protocol Buffers