ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » HTTP Authentication header base64 decoding

Post new topic  Reply to topic
 HTTP Authentication header base64 decoding « View previous topic :: View next topic » 
Author Message
GeneRK4
PostPosted: Sun May 25, 2014 7:26 pm    Post subject: HTTP Authentication header base64 decoding Reply with quote

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
View user's profile Send private message
Simbu
PostPosted: Sun May 25, 2014 8:41 pm    Post subject: Re: HTTP Authentication header base64 decoding Reply with quote

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
View user's profile Send private message
GeneRK4
PostPosted: Tue May 27, 2014 5:40 pm    Post subject: Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

Yes...It works now..

Thankyou
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » HTTP Authentication header base64 decoding
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.