PostgreSQL DB authentication failure

Problem

BuildOn application communicates with PostgreSQL DB but authentication fails.

Cause

By default postgres follows ident based authentication.

Fix

Change authentication method to 'trust'  in pg_hba.conf file of postgres.