How to handle redirects with Passport's oAuth2

Authentication is one of the basic parts on most of the websites and if you spent some time programming with Node.js, you鈥檝e already met Passport. This wonderfull tool is used by many developers to save them tons of time implementing a secure authentication processes. However, when I needed to pass data from one authentication loop to others, I found it almost impossible to find any documentation on how to do that....

How to install OCI8 on ubuntu

In case we would like to use Oracle database in our PHP application. We need to install OCI8 extension. However, it can not be done with simple command like apt install php-oci8, but we need to download Oracle Instant Client and SDK first. Install Oracle Instant Client and SDK First we need to download Instant Cliend and SDk from (Oracle website). You also need to create an account to be able to download the file....

Optional SSL in dockerized Apache2

Recently I had to move one older application to the Docker containers and as this application is used in different environments, I had to solve a few tricky problems first. One of them was how to allow other administrators to decide whether they want to use our Apache container with or without SSL. You might wonder whatever would possess us to do something like this. The answer is simple - reverse proxy....