Basic http plugin for auth?

Hello,

Do you know of any plugin that I can use to do url based authentication?

basically, i want to call

api.domain.tld/centreon/api/index.php?action=authenticate

provide it user name and password in Body form-data:

Thanks

@yosiasz have you checked out the json plugin?

sure did. I don’t believe it provides what we need. It does not allow for body form-data that I could see. Going to try another route

Thanks

I haven’t tried it, but it allows custom headers so you could specify the content-type. The dev mentioned in this discussion:

The body isn’t limited to JSON, you could put any day there, such as value1=foo&value2=bar . If you set the header to Content-Type: multipart/form-data , wouldn’t that work

1 Like

hmm sounds promising let me try that.

not working could be CORS issue. Will keep trying by checking the log on the target server