Change HTTP Basic authetication credentials at runtime

We are implementing REST in ALSB. But the web application we are using requires basic authentication. For this we are configuring static service account in buesiness service.
Now based on input parameter I need to change the relative uri and user id and passoword for basic authetication.
I am able to change the relative uri, but unable to change the user id and passoword at runtime.
I cann't use pass through and mapping in service account as the authetication credentials need to be changed based on relative uri.
Thanks in advance for your help.

Never tried but Action "Set Transport Headers" for OutboundRequest might be of some use. OSB doesn't have out of box option to dynamically change service account for BS in pipeline. If for all the requests there are definite set of users need to be used , then we can think of using that many service accounts that that many proxies and master proxy will route to the slave proxies. It set of user count is high or infinite, then the above solution will not scale? Can you briefly explain the business use-case for better understanding?
Thanks
Manoj

Similar Messages

  • How to call a web service from BPEL that requires HTTP basic authentication

    Hi All,
    I need to calling some Web Services from BPEL (SOA 10.1.3.1 production running on XP machine). The services require HTTP basic authentication.
    I have tried adding httpUsername and httpPassword properties to the ParnterLink, and I see in BPEL Console that they are deployed by checking the descriptor page. But I still get a SOAP fault, HTTP 401: Unathenticated.
    I have also tried using basicHeaders (from memory) = credentials, httpBasicUsername, and httpBasicPassword. Same result.
    I have done a packet trace using Ethereal, and the headers do not seem to contain the userid and password at all.
    Can anyone help?
    Thanks,
    Mark Nelson

    Thanks Bas,
    I have resolved the issue. The provider of the Web Service had not configured if for Basic Authentication. For some reason it worked when they tested, or maybe the did not test. The only thing I had to change was to use:
    <property name="basicHeaders">credentials</property>
    <property name="basicUsername">WMDATA</property>
    <property name="basicPassword">WMDATA</property>
    Instead of:
    <property name="httpUsername">WMDATA</property>
    <property name="httpPassword">WMDATA</property>
    I don’t know why this is, maybe because it is an Axis Web Service.
    Sorry for wasting your time.
    Regards Pete

  • Any way to set "enforce-valid-basic-auth-credentials" from the WL console?

    Someone recently advised me to set "enforce-valid-basic-auth-credentials" to "false" in my laptop config.xml to avoid some annoying login prompts to the application I'm deploying locally. I haven't tried this yet because I wanted to know if there was a page in the WebLogic admin console that can set this flag.
    If not, how exactly does this get set in the config.xml? Where does it go, and exactly what would the element look like?

    Hi David,
    <font color=red> Admin Console does not provide any feature to enable or disable "EnforceValidBasicAuthCredentials" </font><br>
    You can use WLST script If you don't have access to "config.xml" like following:
    "ChangeEnforceValidBasicAuthCredentials.py"
    connect('weblogic','weblogic','t3://localhost:7001')
    edit()
    startEdit()
    cd('SecurityConfiguration')
    cd('base_domain')
    set('EnforceValidBasicAuthCredentials','false')
    save()
    activate()
    print 'Now Restart Your Server...'Above is a Non-Dynamic Change...It means ...once you run the Script ..you need to restart the Server to reflact the changes...
    In the Above Script
    base_domain = is the Domain name
    weblogic= Admin UserName
    weblogic= Admin Password
    t3://localhost:7001 = Is the Admin Server URL
    How to run the above script:
    Before running the above WLST please run the "setWLSEnv.sh"/ "setWLSEnv.cmd". Then
    java weblogic.WLST /app/myScriptLocations/ChangeEnforceValidBasicAuthCredentials.py.
    Thanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic  (Middleware Magic Is Here)

  • Web Services with HTTP Basic Auth

    Hi,
    I am having a problem connecting to web services which
    require HTTP Basic Authentication from a Flex application. I have
    useProxy set to true and call setRemoteCredentials prior to
    attempting the call, but the credentials do not appear to be set on
    the request (the request fails with fault.faultString = "HTTP
    request error", faultCode = "Server.Error.Request". The messages on
    the server indicate that the user name and password were not
    specified.
    I do have the proxy-config.xml file set up properly (I think
    -- I followed the example in the mx.rpc.soap.mxml.WebService class
    description, at least).
    I can verify that the WSDL (which doesn't require BASIC auth
    to access) is being loaded properly, but when I make the request,
    it fails. Is this a known problem?
    I am using Flex Builder 2.0.1 to build my SWF files.
    Thanks,
    Brendan

    Thanks for the pointer, I did try it, but it didn't help.
    As I said in the original post, the problem is with HTTP
    Basic Authentication, so adding a header for WSSE to the service
    request didn't help. It needs to be an HTTP Authorization header,
    not a SOAP Security header.
    Brnedan

  • HTTP Basic authentication for proxy service and its wsdl?

    Hello:
    For some reasons I needed to configure the HTTP basic authentication on a proxy service at OSB 11g. Everything was OK until I realized that, additionally to the authentication when calling the service, the OSB also asks for credentials when I try to get that proxy wsdl file.
    My requirements are to secure the proxy service when is called only, not when retrieving the wsdl.
    Is this possible to configure on OSB / WLS? How?
    Greetings!
    Edited by: user4483647 on 02-sep-2010 12:59
    Edited by: user4483647 on 02-sep-2010 13:25

    If I'm not wrong, Basic authentication is Transport level feature. So passing User/Password in SOAPHeader doesn't make sense. SOAP message can only be sent when you have a HTTP Connection open. During opening of HTTP connection User/Password is required for basic authentication.
    http://www.student.nada.kth.se/~d95-cro/j2eetutorial14/doc/Security7.html#wp156943
    Edited by: mneelapu on Apr 2, 2009 2:09 PM

  • Using HTTP basic auth in WebService

    Hi,
    I am writing a flex app that needs to talk to a pre-existing
    SOAP web service. Unfortunately the web service uses http basic
    auth to authenticate a user. I am trying to figure out exactly how
    this is accomplished but I cannot find any substantive data on the
    subject. So I was hoping someone here could point me in the right
    direction or possibly answer the question outright.
    I DID find reference to using the useProxy attribute on the
    WebService element (and that I would need to make some changes to a
    flex-config.xml) but I could not get this to work, nor could I find
    any explanation as to what exactly I was doing. I, as a workaround,
    attempted to place the auth info in the url (e.g.
    http://user:passwordhash@host:port/wsdl)
    but this did not work either as the request never made it to the
    server, I am assuming actionscript doesn't like this format?
    Anyway, does anyone have any advice/pointers? Any help would
    be appreciated.

    Hi,
    I am writing a flex app that needs to talk to a pre-existing
    SOAP web service. Unfortunately the web service uses http basic
    auth to authenticate a user. I am trying to figure out exactly how
    this is accomplished but I cannot find any substantive data on the
    subject. So I was hoping someone here could point me in the right
    direction or possibly answer the question outright.
    I DID find reference to using the useProxy attribute on the
    WebService element (and that I would need to make some changes to a
    flex-config.xml) but I could not get this to work, nor could I find
    any explanation as to what exactly I was doing. I, as a workaround,
    attempted to place the auth info in the url (e.g.
    http://user:passwordhash@host:port/wsdl)
    but this did not work either as the request never made it to the
    server, I am assuming actionscript doesn't like this format?
    Anyway, does anyone have any advice/pointers? Any help would
    be appreciated.

  • UDDI inquiry service HTTP-Basic authentication in BPEL (10.1.3.1)

    Hi Gurus,
    I'd like to know how we can setup BPEL server for Oracle Service Registry UDDI with HTTP-BASIC authentication for inquiry service (apart of OWSM solution)?
    Imagine that in Service Registry I have defined HTTP-BASIC authentication (REGISTRY_HOME/app/uddi/services/Wasp-inf/package.xml) for inquiry service used in BPEL domain (uddiLocation key in BPEL domain configuration). And now I'd like to provide credentials. In package.xml I have this
    <service-endpoint path="/inquiry" version="3.0" name="UDDIInquiryV3Endpoint"
    service-instance="tns:UDDIInquiryV3" processing="tns:UDDIv1v2v3InquiryProcessing"
    accepting-security-providers="HttpBasic">
    <wsdl uri="uddi_api_v3.wsdl" service="uddi_api_v3:UDDI_Inquiry_SoapService"/>
    <envelopePrefix xmlns="arbitraryNamespace" value=""/>
    <namespaceOptimization xmlns="arbitraryNamespace">false</namespaceOptimization>
    </service-endpoint>
    I don't see any field with username or password. Is it automaticaly taken from security provider configured for Service Registry (for example LDAP)? If yes then it is clear.
    But what about BPEL engine, where can I provide those credentials? Is it some secret configuration file? Or only supported way is to configure it through OWSM component in order to enrich request by credentials (what about license, when customer doesn't want to use OWSM)?
    Do I miss something in this concept?
    Thanks
    Peter

    as said internally - file an ER for it pls - and I will take care of it, depending on the demand - either for 10.1.3.1 GA or 10.1.3.1 patchset ..
    we will support only HTTP Basic Auth - rest will follow per customer demand ..
    /clemens

  • BPEL not passing HTTP basic auth info

    The BPEL control does not seem to pass the HTTP basic auth data correctly.
    I placed the right credentials in the httpUsername and httpPassword properties for the partner link.
    I patched SOA Suite to 10.1.3.3.1 to try to solve this problem. But it still comes up with the same result.
    Any help would be greatly appreciated!

    Steps for invoking secure web services from BPEL================================================
    Add following lines in target wsdl(webservice)
    Add xmlns:ns4="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" in the namespaces section (ensure that "ns4" is not already being used!)
    Add xmlns:ns4="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" in the "schema" element
    Import the namespace http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd and provide a schemaLocation (physical file in the current directory)
    Add the following in the "message" element for the input message type:
         <s1:part name="secHeader" element="ns4:Security"/>
    Add <s3:header message="__relevant_message_name__" part="secHeader" use="literal"/> within <input> element (<binding>..<operation>)
    then in BPEL before invoke activity take one assign activity
    in assain activity xml expression to securerity variable in target variable
    <oas:Security xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <oas:UsernameToken wsu:Id="UsernameToken-15799662" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <oas:Username>username</oas:Username>
    <oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</oas:Password>
    </oas:UsernameToken>
    </oas:Security>
    import xsds into local workspace
    oasis-200401-wss-wssecurity-secext-1.0.xsd
    oasis-200401-wss-wssecurity-utility-1.0.xsd
    xml.xsd
    xmldsig-core-schema.xsd

  • Change registry settings through forms10g at runtime (NLS_LANG)

    Hello all,
    Is there any way to change registry settings through forms10g at runtime.
    my software is dual language suopportable. but i have to set NLS_LANG in registry either AMERICAN_AMERICA. or ARABIC_KUWAIT. to set direction from LEFT for english and RIGHT for arabic respectively.
    when i run in english i change registry NLS_LANG to AMERICAN_AMERICA while when i run in arabic change registry NLS_LANG to ARABIC_KUWAIT and then run the application.
    but now i want that when i select language ARABIC some proceadure will change the NLS_LANG to ARABIC_KUWAIT similarly when i select language ENGLISH the NLS_LANG to AMERICAN_AMERICA .
    have any idea any one?
    thnx
    Najeeb

    Hopefully someone can suggest something simpler, but my best guess (I have not yet tried this) would involve writing a JavaBean and a JNI DLL that interfaces between your JavaBean and the Windows API.
    Since much of the Windows API uses Pascal calling conventions, linking against its DLLs can be a hassle. Most examples that I've found, for compiling such DLLs have called for Visual C++, but I believe it should also be possible under Cygwin (http://www.cygwin.com/), but not necessarily more straightforward.
    Sorry to give just a hint, but that's where my experience ends!
    HTH,
    Eric Adamson
    Lansing, Michigan

  • Change HTTP cdentials in wss_http_token_service_policy

    I want to change http credentials from default weblogic/welcome1(provided during creating the domain in SOA 11.1.1.3) to something else.
    Please suggest the configuration steps.
    I've already created a new map oracle.wsm.security but whatever the credentials I've provided there is not working.
    Thanks,
    Shreekanta

    Hi User,
    Looks like the policy manager is down.Can you try this,
    Step 1- Login to EM
    Step 2 – Expand Internal Applications ->wsm-pm(Admin Server)
    Step 3– If the Policy Manager is down; Restart the wsm-pm application by right clicking on wsm-pm
    Step 4- To verify that the Policy manager is up and running, validate the policy manager page with the below url,
    http://host:port/wsm-pm/validator
    After inputting the Weblogic credentials, It should display the policies.
    Rgds,
    Dpka

  • How to access SOAP web service with authentication, HTTP basic Authentication

    Dear All
    i use Flash Builder 4.5, flex 4..1, i am developing a flex client to soap webservices hosted over Glassfish 2 Java server, the web services is protected by HTTP Basic Authentication, everythime i run my code , the prombt for username and password show up, i need to pass user name and password through action script, i followed the flollowing (but was for http web service, not soap) but really did not work.
    http://stackoverflow.com/questions/490806/http-basic-authentication-wi th-httpservice-objects-in-adobe-flex-air
    http://forums.adobe.com/message/4262868
    private function authAndSend(service:HTTPService):void
            var encoder:Base64Encoder = new Base64Encoder();
            encoder.insertNewLines = false; // see below for why you need to do this
            encoder.encode("someusername:somepassword");
            service.headers = {Authorization:"Basic " +encoder.toString()};                                               
            service.send();
    Also i noticed in debug mode, always that WARNNING raised up
    Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml.  The 'secure' attribute is only permitted in HTTPS and socket policy files.  See http://www.adobe.com/go/strict_policy_files for details.
    any idea ?

    Hello,
    I don't know if this could help.
    Another way to connect to a web service by SOAP and WSDL is to click on the Data/Services panel, then click on "Connect to Data/Services" and then select the "Web Service" (WSDL) icon. This could help as well.

  • SERVER.XML re-write problem when changing HTTP to HTTPS

    Hello,
    I am using SUN ONE App server and had a problem with turning SSL on in order to use HTTPS.
    What I did was that in GUI I selected a http listener under my instance and checked SSL/TLS Settings. I clicked Apply Changes button and I got a message saying that there wa a problem with XML-DOM. I checked my server.xml and found that its size was 0. It seems that it stopped re-writing it when it met the problem.
    An interesting thing is that when I created an additional http listener with SSL at a different port, there was no problem.
    It seems that the problem occurs only when I tried to change HTTP to HTTPS.
    Is there anyone who can tell me why this happens?
    I will appreciate any answers or comments.
    Thanks

    Hi,
    Is your Implementation Class is still the same (as the old one), when you changed the pre-fix.
    Just double click on the Implementation class and check whether the methods are still implemented or not.
    Thanks, Advay

  • Securing Web Applications by HTTP Basic Authentication

    We are working on providing security for web applications in Webdynpro.We downloaded the material from net regarding this.In that it was mentioned to open the webdynpro project's web.xml file in the Netweaver Developer Studio.In the material,we are asked to click the General  TAb and check "Login Configuration".But there is no such checkbox in our general tab screen.Also many tabs are missing like Context,Resources,mapping,Environment,EJB's,Web objects.How to enable/display these tabs?Is there any means of setting properties in the server to get these tabs?
    regards,
    J.Iswaryal
    K.Brinda

    Hi J.Iswaryal,
    I guess two things based on your post.
    1. You have created one wer service and you want to make secure this web service using HTTP basic authentication.
    2. You have such wweb service and you want to consume this web service lets say in webdynpro application.
    <b>For, point one,</b>
    After creating web service goto webservice perspective in NWDS. there, choose your web service project.
    Now, open Web service configuration file recided in your project.
    Here, go under config1-> security and double click on it.
    It will display security options for this web service.
    Choose transport protocol as HTTP, Authentication mechanism as HTTP authentication and choose Basic radio button.
    Now, save this, rebuild this and deploy on server.
    <b>For point 2,</b>
    Make model for your web service.
    before calling your web service, set your username and password in code as shown below.
    wdContext.current<web service model node>element().modelobject()._setusername(<username>);
    wdContext.current<web service model node>element().modelobject()._setPassword(<password>);
    Rehards,
    Bhavik

  • How to change Flex Application frame rate at runtime

    hello,
    i have Flex application that need to change the Frame Rate at
    runtime.
    when i am changing it by using the slider component, here the
    code:
    private function onChangeSlider(e:Event):void
    frameRate = sliderFR.value;
    trace(frameRate);
    <mx:HSlider id="sliderFR" x="452" y="765" width="378.2"
    minimum="1" maximum="50" liveDragging="true" snapInterval="1"
    value="25" change="onChangeSlider(event)"/>
    the value is changed, but the frame rate is not changed.
    when i insert the binding to the <Application> tag i
    got error on this one, because i can't bind there items for the
    application level.
    how can i change the Flex frame rate at runtime?

    i found the solution!
    in Flex application you have frameRate properties that
    doesn't work at runtime in the ActionScript code.
    if you have a video that you want to change the speed of it,
    you need to change the stage.frameRate (of all the Player itself).
    and there is a catch here. if you will try to change it right after
    the application will start (like in: creationComplete event) you
    will have a runtime error.
    what you need to do is, change the stage.frameRate value
    after the all application is started from a button or other event
    in the system.
    this is working grate for fast/slow FLV playing
    enjoy!

  • How to change the screen field text in runtime

    Hi ,
      I want to change the screen button text in runtime IN ABAP dynpro screens. if anybody know this please post some helpful answer
    Regards,
    Anil kumar G

    Hi Anil..
    We can change the Text of a Pushbutton dynamically.
    For this:
    1. Declare a Global variable with the Same name as the Button in TOP include
      Eg:   Data: Button1(30).
    2. In the PBO module of the Screen assign the Text to this variable:
       Eg:
        Module set_text OUTPUT.
            Button1 = 'This is the text'.
        ENDMODULE.
    <b>REWARD IF HELPFUL.</b>

Maybe you are looking for