Closed nopoz closed 2 months ago
I don’t have a pfsense but it seems odd to me that the current highly-specific documentation would be made-up, so the only way would be if something changed. Perhaps in the recent pfsense v2? If so, this change would be confusing
I don’t have a pfsense but it seems odd to me that the current highly-specific documentation would be made-up, so the only way would be if something changed. Perhaps in the recent pfsense v2? If so, this change would be confusing
Looks like "Authorization: client_id client_token" is only for the v1 API version documented here: https://github.com/jaredhendrickson13/pfsense-api/tree/legacy?tab=readme-ov-file#authentication--authorization
The version I've added is for v2 only.
I suppose there could be two different code blocks in the readme for v1 and another for v2?
I suppose there could be two different code blocks in the readme for v1 and another for v2?
Yes, my point is it should be made clearer
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details.
Fixing pfSense widget documentation for usage with an API key. Current documentation has incorrect header of
Authorization
and a value ofclient_id client_token
. The correct header name isX-API-Key
and the value is the APIkey
produced by the pfSense v2 API package. I have tested this format and it works as expected.Example working config for reference:
pfSense API authorization documentation is here: https://pfrest.org/AUTHENTICATION_AND_AUTHORIZATION/
Proposed change
Closes Discussion #3716
Type of change
Checklist: