Support #13003
closedForeman with PHP integration
Description
i had install foreman at eg https://0.0.0.0 here and after login the foreman if i hit the https://0.0.0.0/api/compute_resources in browser it return json data but if i hit same url in my curl or ajax then it logout the whole system and return the error unable to authenticate user.
How can i authenticate with ajax api .
Thanks
Updated by Dominic Cleal over 8 years ago
- Status changed from New to Feedback
- Priority changed from Urgent to Normal
Please don't keep opening issues, you already did at #13002. As I said there, this also isn't a good method to get help.
The API supports HTTP basic authentication as shown at http://theforeman.org/manuals/1.10/index.html#5.1API.
Updated by Parveen Saini over 8 years ago
Dominic Cleal wrote:
Please don't keep opening issues, you already did at #13002. As I said there, this also isn't a good method to get help.
The API supports HTTP basic authentication as shown at http://theforeman.org/manuals/1.10/index.html#5.1API.
Hello Dominic
i am using https://foremanUrl/api/compute_resources api to generate compute_resources in php,.Can you tell me how can i do this in PHP (any code example)
Thanks for help me.
Updated by Ohad Levy over 8 years ago
As Dominic already stated, please do not use the bug tracker for this kind of requests, the more proper ways would be via the mailing list or irc.