IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Basic Authentication with Apache and Tamino

  • 1.  Basic Authentication with Apache and Tamino

    Posted Tue December 04, 2001 11:04 AM

    Hello forum reader!

    Is it possible to use Basic Authentication with an Apache Web Server and the Java API?

    How does the URL for the Tamino Client has to look like?
    Something like this??

    code:

    String collection = “http://”+tamino_login+“:”+tamino_pass+“@”+tamino_server+“/tamino/”+tamino_db+“/”+tamino_collection;

    (http://username:password@tamino_url)

    Thanks,
    Volker Bachmann

    Volker Bachmann
    has program service AG
    Germany


    #API-Management
    #webMethods-Tamino-XML-Server-APIs
    #webMethods


  • 2.  RE: Basic Authentication with Apache and Tamino

    Posted Wed December 05, 2001 11:23 AM

    In the API you don’t specify the user id and password via the base URL- though it might work.

    there are a couple of interanl properties of the TaminoClient object for the user id and the password-you can set them with the method setHTTPuser

    void setHTTPuser(java.lang.String userID, java.lang.String password)
    Set HTTP user ID and password.

    This is used in Basic Authentication.
    If it desn’t work tell us.
    If setting the security info in the URL works
    tell us too .-).

    I’ve used this URL technique with FTP but I didn’t know you could do it with http


    #API-Management
    #webMethods
    #webMethods-Tamino-XML-Server-APIs


  • 3.  RE: Basic Authentication with Apache and Tamino

    Posted Wed December 05, 2001 11:59 AM

    Hello Nigel,

    thanks for your hint!
    It works via the Java API only with the “setHTTPuser” function.

    In a Browser URL the noticed URL works.
    http://username:password@tamino_url

    Thanks again,
    Volker Bachmann
    has program service AG

    Volker Bachmann
    has program service AG
    Germany


    #webMethods-Tamino-XML-Server-APIs
    #webMethods
    #API-Management