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 » Basic Authentication in HTTP Request node

Post new topic  Reply to topic
 Basic Authentication in HTTP Request node « View previous topic :: View next topic » 
Author Message
anuj.garg
PostPosted: Tue Sep 13, 2016 2:59 am    Post subject: Basic Authentication in HTTP Request node Reply with quote

Newbie

Joined: 12 Sep 2016
Posts: 3

I want to hit a web service url which is basic authentication enabled so i put http request node nd a compute node before it putting

SET OutRoot.HTTPRequestHeader."Authorization"='Basic . . .';

but its terminating at http request node so can anyone help me. i can do all this thing in a simple http call directly.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Sep 13, 2016 4:02 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Can a Moderator please move this thread to the Broker forum.

What have you tried to do? What failed and why?

Please don't expect us to do your job for you. We are here to help you and not to do your job for you.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Sep 13, 2016 4:37 am    Post subject: Re: Basic Authentication in HTTP Request node Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

anuj.garg wrote:
I want to hit a web service url which is basic authentication enabled so i put http request node nd a compute node before it putting

SET OutRoot.HTTPRequestHeader."Authorization"='Basic . . .';


What about the rest of the things you need to do to get IIB to do BasicAuth for you?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
vishBroker
PostPosted: Tue Sep 13, 2016 5:22 am    Post subject: Reply with quote

Centurion

Joined: 08 Dec 2010
Posts: 135

'Base64 encoding' - something you should look into.

Here is hint

Quote:
SET OutputRoot.HTTPRequestHeader."Authorization" = 'Basic '||base64Encode(CAST('admin:admin123' as BLOB CCSID InputRoot.Properties.CodedCharSetId));
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Sep 13, 2016 5:27 am    Post subject: Re: Basic Authentication in HTTP Request node Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
What about the rest of the things you need to do to get IIB to do BasicAuth for you?



By "webservice" you mean "SOAP provider"? Then you should be using SoapRequest, not HTTPRequest.

If you mean "REST request", then you should be using an HTTPRequest node, and configuring the necessary security policies/etc. to have IIB handle the basic auth for you.

Where are you going to store the password? in plaintext in your code? in a "properties file"? In a User Defined Parameter, that can be changed when you redeploy or at runtime? Again, where are you going to *store* the password so you can get it to change the runtime to use the new one?
_________________
chmod -R ugo-wx /
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 » Basic Authentication in HTTP Request node
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.