Author: Sergio Lema
-

SQLAlchemy
In this article I show how to configure SQLAlchemy in a Flask backend. I also show how to create entities which reflect some tables in a database. And show how some relationships are managed with SQLAlchemy as one-to-one, one-to-many and many-to-many.
-

Basic Authentication & JWT
In this article I show how to secure a Flask backend with Basic Authentication and also with JWT. I will show the usage of the library flask-http-auth for the Basic Authentication and the token based Authentication. Then, I will add the library pyjwt to encode and decode a JWT.
-

Log4Shell Vulnerability
In this article I show how the Log4Shell vulnerability can impact. I show how the JNDI commands are intercepted with an LDAP server, and how to protect against this vulnerability.
-

Dependency Management with Poetry
In this article I show the usage of Poetry and Python to manage the dependencies. I show how to create a Poetry project, how to search and add dependencies and how to manage virtual environments of Python with Poetry.
-

Flask Backend Setup
In this article I show the setup of a Flask and Python backend. I show the structure of a Flask project, how to add routes to Flask, how to group routes with Blueprints and how to handle errors.
-

Slf4j, Lockback and Log4J2
In this article I show how to write logs in a Spring Boot application. I also show how to configure the Logback and Log4J2 loggers.
-

Store the HTTP Session into Redis
In this article I show how to store the HTTP session into Redis with Spring Boot. I show the necessary dependencies and how to configure Spring Boot to not have the HTTP session stored only in the application.
-

How to use Spring Cloud Config Server with Git and Vault
In this article I will show how to use Spring Cloud Config Server with two sources: Git and Vault. I will use Git for the common configuration and Vault for the critical information.
-

Tests Coverage with Jacoco, Unit and Integration Tests
In this article I show how to obtain the tests coverage with Jacoco, for both the unit and the integration tests. I show the configuration of the Surefire and Failsafe plugins to run the unit and integration tests separately. And finally I show how to use the Surefire and Failsafe plugins to feed Jacoco.
-

OAuth2 Authentication with Spring Security and Github
In this article I will show how to authenticate using the OAuth2 system with Spring Security and Github. For that, I will need to create a Github login application and connect it to my Spring Boot application with Spring Security to allow it to perform the necessary requests.
