mojolicious / mojo-pg

Mojolicious :heart: PostgreSQL
https://metacpan.org/release/Mojo-Pg
Artistic License 2.0
99 stars 46 forks source link

Allow passwordless authentication #14

Closed oalders closed 8 years ago

oalders commented 8 years ago

I'm trying to integrate Minion with MetaCPAN. Our Pg is set up to authenticate without a password. However, when I try to get started, I get tripped up by this line, which is verifying the presence of a password: https://metacpan.org/source/SRI/Mojo-Pg-2.23/lib/Mojo/Pg.pm#L80

What I've got is { Pg => 'postgresql://vagrant@localhost/minion_queue' }

Is there some other way to express this for passwordless auth?

kraih commented 8 years ago

I don't see anything verifying a password.

oalders commented 8 years ago

The error is Can't load application from file "/home/vagrant/metacpan-api/bin/queue.pl": DBI connect('dbname=minion_queue;host=localhost','',...) failed: fe_sendauth: no password supplied at /home/vagrant/carton/metacpan-api/lib/perl5/Mojo/Pg.pm line 80.

Should have looked more closely as it's an error from DBI.

tsibley commented 8 years ago

fe_sendauth: implies an error from the Pg server or the Pg client lib.