I'm having troubles authenticating NiFi to a SOAP WebService, using a NTLM Authentication.
I've using this custom processor:
https://github.com/peetkes/nifi-http-processor
I've created a simple flow, with a FlowFile that contains the XML request, passed to the CustomInvokeHTTP Processor.
The problem is that I obtain "Error 401 Unauthorized".
I tried to use the same credentials with SOAPUI and they work.
I attach the flow and the processor properties.
Is there something else I can try?
I don't really know what to do.
Thank you so much!
Related
I'm attempting to collect details about all processors on two installed instances of Nifi, versions 1.19.0 and 1.20.0. I want to use Nifi to do this so I can perform some minor ETLs and save the resultant dataset in a database. Both instances are configured as standalone authentication with SSL.
However, when I configure the InvokeHTTP processor how I think it should be to aquire a token, I'm getting a 400 status code and a response.body of "The username and password must be specified." on both instances.
Here's the super basic flow:
Nifi Flow
Here's what the error looks like:
Attributes of failed response
Here's the current config of the InvokeHTTP processor on the 1.20.0 instance which we can focus on from here out since they are both responding similarly.
Postman - InvokeHTTP Config
When I run the request with Postman, I get the expected token in the response body. And I'm able to make subsequent requests (the above config was a response from https://nifi06:8443/nifi-api/processors/39870615-0186-1000-e7d7-c59fa621ca7d in Postman).
I've tried the following:
Adding dynamic attributes for username/password as in the above configuration.
I've added them as JSON to the preceding Generate FlowFile processor's custom text.
And I've also tried using the Request Username/Request Password properties of the InvokeHTTP processor.
All return with the same response.body of "The username and password must be specified."
This seems it should be really simple and I'm sure I've been staring at it too long to see what I'm missing. Can anyone tell me where I need to specify the username/password?
Thanks.
defined api and path am currently testing KONG gateway api load testing using jmeter
Am getting 403 error.
Please suggest me how can I resolve this issue thanks in advance.
HTTP Status Code 403 means Forbidden so either your apikey parameter is not correct or you're passing it in a wrong way.
Also I have a doubt regarding your URL, if your endpoint is protected with Basic HTTP Authentication you either need:
To add your password to the URL like:
ec2user:your_password#ec2-52-70-117-82.....
Or to remove this ec2user# from the hostname field and provide it along with the password via HTTP Authorization Manager
I am learning and working on building some wso2 sample prototypes.
I have created a proxy service and tried using it with the tryit tool inside.
But i don't know how to use it externally. i mean how to send data to the proxy service because in API there is a endpoint created where the request is sent.
Is there anything like link to request or how to use it externally in some application.
You can use SOAP UI. Please check the article.
The easiest way to call Your proxy service is to use some Rest Client on Your Browser. I use Add-On in Firefox (RestClient i think). U can create there whole request (json, xml), add headers, Authentications or Content Type. It should helps U to call any services in wso2.
I am trying to make a script to test REST services using Jmeter.
Till now I was using Chrome’s Advanced REST Client.
My authentication request was GET and it was something like this in Advanced REST:
https://username:password#URL:portnumber
its a GET request
Now when I am using Jmeter. I tried following ways:
I added HTTP Authorization Manager and mentioned Base URL and Username/password inside it.
When I am trying to do a request then its showing me “Unauthorized”
I also tried to login using normal https request but no success.
When accessed manually, a authorization popup window appears and username and password is submitted inside this window.
Please suggest me a way for how to login using Jmeter.
Few suggestions:
Most likely you have mismatch in URL you're trying hit and the one, specified in HTTP Authorization Manager, double check it.
Add View Results Tree listener and make sure that the header like:
Authorization: Basic xxxxxxxxxxxx=
is being sent along with the request and compare it with the one, sent by the real browser.
Try switching "Implementation" of your HTTP Request samplers to HttpClient3.1, the easiest way of doing this is using HTTP Request Defaults
And finally, you can use HTTP Header Manager to send the relevant header, it's name should be Authorization and value Basic and username:password encoded in Base64. There is base64Encode function available via JMeter Plugins.
I'm currently trying to send a SOAP request to an Exchange server, but I'm getting a 401 Unauthorized. I repeated the request using Postman, and it looks like it's trying to do NTLM authentication. However, I want to authenticate using Basic authentication by using just a username/password. Is there any way to specify this in the message headers or something? Is this something that's configured on the server end?
If it's not possible, how do I go about implementing NTLM authentication? I'm very new to this, so any help/direction will be much appreciated.
Thanks!