|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
HTTP Authentication header base64 decoding |
« View previous topic :: View next topic » |
Author |
Message
|
GeneRK4 |
Posted: Sun May 25, 2014 7:26 pm Post subject: HTTP Authentication header base64 decoding |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
I used SOAPUI tool to send the HTTP Authentication header,
In the HTTP header ,I could see,
Authorization: Basic bXFicmtyczptcWJya3Jz
It is Base64 encoded string of username and password.
Hence in WMB flow,I tried to decode this username and password as below.
DECLARE AutHeader BLOB BASE64DECODE(InputRoot.HTTPInputHeader.Authorization);
DECLARE AutHeaderCHAR CHARACTER CAST(AutHeader AS CHARACTER CCSID 819);
But it is throwing error,
Text:CHARACTER:Invalid Length for base64 string
As per this error,it looks like the SOAPUI passed HTTP AUT header is not a valid base64 encoded string.
Need help to fix this issue..I want to pass a valid base64 string and decode the same in WMB flow to Authenticate the request. |
|
Back to top |
|
 |
Simbu |
Posted: Sun May 25, 2014 8:41 pm Post subject: Re: HTTP Authentication header base64 decoding |
|
|
 Master
Joined: 17 Jun 2011 Posts: 289 Location: Tamil Nadu, India
|
GeneRK4 wrote: |
Authorization: Basic bXFicmtyczptcWJya3Jz
It is Base64 encoded string of username and password.
|
You are decoding "Basic " as well which is actually a character. You have to substring it from "Basic " and try decoding it. |
|
Back to top |
|
 |
GeneRK4 |
Posted: Tue May 27, 2014 5:40 pm Post subject: |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
Yes...It works now..
Thankyou  |
|
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
|
|
|
|