Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use Header authentication with Webhooks resource #421

Open
smithjw opened this issue Oct 5, 2024 · 3 comments
Open

Cannot use Header authentication with Webhooks resource #421

smithjw opened this issue Oct 5, 2024 · 3 comments

Comments

@smithjw
Copy link
Contributor

smithjw commented Oct 5, 2024

Looking at the webhooks resource code, while I can set authentication to HEADER, I don't have the ability to set the required header. If I try to create a webhook, I'll receive an error because the Header has not been added.

@ShocOne
Copy link
Contributor

ShocOne commented Oct 5, 2024

Hiya,

So the docs for api are like this:

{ "id": 1, "name": "Computer Enrolled Hook", "enabled": true, "url": "https://requestb.in/wsfasfws", "content_type": "text/xml", "event": "ComputerAdded", "connection_timeout": 5, "read_timeout": 2, "authentication_type": "NONE", "username": "webhook_admin", "password": "string", "enable_display_fields_for_group_object": false, "display_fields": [ { "size": 1, "display_field": { "name": "IP Address" } } ] }

Which means one of two things, either you can't by api define the headers for the webhook request as there's no field. Or, the field exists and doesn't exist in the docs. I'll ask a question on slack #jamf-api slack and see if anybody has any ideas 💡.

@ShocOne
Copy link
Contributor

ShocOne commented Oct 7, 2024

Update. It's been confirmed by Jamf to be a known issue with the api webhook api endpoint. It will require a feature request / support ticket with jamf.

@ShocOne
Copy link
Contributor

ShocOne commented Oct 11, 2024

Issue has been raised with jamf. It's currently unclear whether this will be fixed within the classic api, or, more likely will be rectified when the endpoint moves to the jamf pro api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants