Closed KristijanL closed 5 months ago
Hey!
In v2 there is no concept of client-id or client-token like there was in v1. It is simply an API key that you include in your authorization header. For example: Authorization: KeyAuth YOURKEYHERE
. The package knows which key is associated with which user already so there is no need for a client-id in v2.
Hope this helps.
Thanks!
ah, it works, thanks!
but there is an issue with openapi, the headers are not correctly configured.
Message from syslogd@fw at May 9 20:29:32 ...
php-fpm[94518]: /api/v2/status/carp/index.php: webConfigurator authentication error for user 'unknown' from: 192.168.5.21
Yeah I noticed that right after my previous response. I'll have a build later today with a fix for the malformed header. I'll mark this as a bug for now.
Thanks!
The OpenAPI spec doesn't really have a clean way to define the Authorization
header with the KeyAuth
identifier so I've opted to use the x-api-key
header in its place. This has been addressed in the latest dev build and I've verified KeyAuth works as expected in the Swagger docs.
when i create an API key with latest v2 dev version i don't get client-id
To Reproduce create API key
Expected behavior Should show the client-id.
Screenshots or Response
pfSense Version & Package Version:
Affected Endpoints: