|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to get IdentitySourceToken filled after failure terminal |
« View previous topic :: View next topic » |
Author |
Message
|
dziku007 |
Posted: Wed Jul 24, 2019 2:03 am Post subject: How to get IdentitySourceToken filled after failure terminal |
|
|
Apprentice
Joined: 26 Jul 2012 Posts: 32
|
Hello,
I'm using SOAPInput Node with Security Profile configured. I use Security Profile to provide HTTP BasicAuth authentication. After SOAPInput Node 'out' terminal i receive Root.Properties.IdentitySourceToken filled with Username. That is ok, because i need Username later on the process. The problem is when input message validation fails. After that i receive Root.Properties.IdentitySourceToken empty. It occurs either on SOAPInput Node 'failure' terminal (when SOAPInput Validate param is set to "Content and value") or after SOAPInput Node 'out' terminal (when SOAPInput Validate param is set to "None").
The question is how populate IdentitySourceToken param with Username during input message validation error scenario?
I receive (in both cases) authentication string with HTTPInputHeader.Authorization and there is Username, but it is encoded and decoding Username from there smells rather poor design solution.
Tested on IIB 9.0.0.11.
Thanks in advance for any answer. |
|
Back to top |
|
 |
abhi_thri |
Posted: Wed Jul 24, 2019 11:26 am Post subject: Re: How to get IdentitySourceToken filled after failure term |
|
|
 Knight
Joined: 17 Jul 2017 Posts: 516 Location: UK
|
hi...
dziku007 wrote: |
The question is how populate IdentitySourceToken param with Username during input message validation error scenario?
|
why do you want to know the Username in the error scenario at all, i mean does it adds any value in the diagnostics of the validation error at all?
Can you try moving the validation further downstream the flow, eg:- a Validation node and see whether the flow maintains the IdentitySourceToken in the Catch terminal path of the SoapInput node. |
|
Back to top |
|
 |
dziku007 |
Posted: Wed Jul 24, 2019 12:17 pm Post subject: |
|
|
Apprentice
Joined: 26 Jul 2012 Posts: 32
|
Hi,
Thanks for Your question.
I need to log error info where I need to write username who sent bad request.
I tried with Validate node later after SOAPInput, but it seems that broker still does not populate IdentitySourceToken param while soap message is not valid. |
|
Back to top |
|
 |
abhi_thri |
Posted: Thu Jul 25, 2019 10:48 pm Post subject: |
|
|
 Knight
Joined: 17 Jul 2017 Posts: 516 Location: UK
|
hi...
With the Validate node later after SOAPInput approach I'm assuming you are able to see the IdentitySourceToken populated with Username before the Validate node, if so you should be able to store it to an Environment variable so that you can access it later in the error path in the Catch subflow. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|