Shin Code log

Logs of solution for code

Articles


Implementing OAuth2 Authentication in Django

In the realm of web application security, OAuth2 stands out as a robust protocol for user authentication and authorization. Integrating OAuth2 into Django applications can enhance security and user experience. This post will walk you through the process of implementing OAuth2 authentication in your Django project, ensuring a secure and seamless user login mechanism.

[Postgres] How to list active connections on PostgreSQL?

You can check connection details in Postgres using pgstatactivity. You can apply filter to satisfy your condition.

[Postgres] How to list active connections on PostgreSQL?

Run docker image with bash

Spawn a container and jump right into a shell

Run docker image with bash

[Postgresql] Check number of connection to db

The query to check number of connection to db and more details about activity

SQL Postgresql, run docker ssl mode

Enabling SSL for PostgreSQL in Docker

SQL Postgresql, run docker ssl mode

[Postgres] Restore backup file, sql file type

The way to restore backup db from terminal

[Postgres] Restore backup file, sql file type