All,
I have installed the latest version of the Message Bus Probe and am trying to get it to connect to Nokia NSP version 19.11 (which is supported according to the reference guid here
https://www.ibm.com/docs/en/SSSHTQ/messbuspr_nsp-pdf.pdf). I have configured all of the .props, .properties and .json files as directed in the documentation, and am having PARTIAL success. Specifically, the probe is able to authenticate to the Nokia NSP server and I can see the JSON response that includes the access_token which is required for all of the REST API calls after authentication.
The problem is when the probe tries to create a subscription using an HTTP POST to
https://{{server}}:8544/nbi-notification/api/v1/notifications/subscriptions. The problem I see in the log file is the server is returning an HTTP 401 (Unauthorized) error and I see "Invalid username and password" in the log file. This makes me think that the probe is not sending the correct value in the Authorization header. Unfortunately, the logfile redacts the value set in the Authorization header (it actually states "Authorization: <Redacted>" so I can't see what's being passed. So I tried editing the nokaNspRestMultiChannelHttpTransport.json file to add a new header and set its value to "++access_token++" (this is how the dynamic tokens are referenced in the file). I also added "++access_token++" to the end of the subscriptions URI. The goal here was to see if the probe debug output would contain the expanded value of this token. Unfortunately, all I see in the debug output is the string "++access_token++" in both places where I tried to use it. It *seems like* it should expand this into an actual value, so I tested with another token: "++Username++". When I used this token, I could actually see the expanded value in the log file. I also tried with "++refresh_token++", and it acted the same way as "++access+token++".
With the above testing, it looks to me like the probe isn't correctly expanding these tokens.
Using curl with the correct values (
using this page for authentication details and
this page for subscriptions details) I can successfully access the URL
https://{{server}}:8544/nbi-notification/api/v1/notifications/subscriptions, and I can see that a new subscription is created. I can also recreate the error seen in the probe log file if I change any character in the access_token when I use it to access the subscriptions URL.
Has anyone gotten this integration to work? Or does anyone have insight into how to get it working?
Thanks,
Frank
------------------------------
Frank Tate
Gulfsoft Consulting
------------------------------