Project

General

Profile

Actions

Support #13003

closed

Foreman with PHP integration

Added by Parveen Saini over 8 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Triaged:
Fixed in Releases:
Found in Releases:

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

Actions #1

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.

Actions #2

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.

Actions #3

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.

Actions #4

Updated by Anonymous about 7 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF