codahale / passpol

A Java library for validating passwords against NIST SP-800-63B requirements.
Apache License 2.0
26 stars 6 forks source link

no user agent specified #2

Closed constructivetim closed 6 years ago

constructivetim commented 6 years ago

I am getting 403 back from https://api.pwnedpasswords.com/range/

I believe this is because https://haveibeenpwned.com/API/v2#UserAgent

codahale commented 6 years ago

Interesting: I can’t reproduce. HttpURLConnection sets a User-Agent itself, so I wonder if your specific version of Java has been blocked.

Can you try 976982a8f6884d87c66ac6cd44f9a64b6add7e42 and let me know if it works for you?

codahale commented 6 years ago

Released 0.5.1 with the fix.

constructivetim commented 6 years ago

this works now.

thanks very much.

tim