ndejong / pfsense_fauxapi

REST based API interface for pfSense 2.3.x and 2.4.x to facilitate devops
Apache License 2.0
354 stars 61 forks source link

Using Postman to read/write to PFSense API - Authentication Failed #6

Closed marcusdandrea closed 7 years ago

marcusdandrea commented 7 years ago

I'm using PFSense 2.3.4 with the latest FauxAPI and have setup my crenditials.ini with the correct information. However, my authentication keeps telling me I have an invalid hash from the debug's and Postman but it should be valid.

Thanks.

rdgerken commented 7 years ago

Hi, I'm using PFSense 2.3.4 also, and having the same issue. I can't get anything to work, I just get "authentication failed" messages. What code does the package use to generate the timestamp? I would like to verify that my client and pfsense hosts are returning matching timestamps. I'm using the Python code you provided, so I see what the client is doing.

rdgerken commented 7 years ago

Well, it's definitely not a timestamp issue. I've confirmed the Python client library is generating the exact same timestamp as my pfsense box. (Within a few seconds of each other)

rdgerken commented 7 years ago

OK, I got it to work finally... didn't RTFM - my key length was too short.

marcusdandrea commented 7 years ago

Yeah python and bash work fine for me just postman that does not.

On May 27, 2017, at 8:52 AM, rdgerken notifications@github.com wrote:

OK, I got it to work finally... didn't RTFM - my key length was too short.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ndejong commented 7 years ago

Happy to hear you managed to sort out your issues there - there have been enough comments with others getting getting stuck that it probably makes sense to roll a feature into the UI to auto-generate them - I'll add this to the next release - N