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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Using The Java API to Authenticate a user

    Posted 08/31/04 05:22 PM

    Has anyone used the webMethods Java API (The UGClass,User and Group classes) to check a userid/password combination. I have attempted to write a simple service but am not having much luck - thanks.

    Bill


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 2.  RE: Using The Java API to Authenticate a user

    Posted 09/01/04 09:49 AM

    Bill,

    There is an example module for workflow custom authentication under Best Practices->Utilities and Samples. That might be the best place to start

    – Tim


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Using The Java API to Authenticate a user

    Posted 09/01/04 11:06 AM

    Are you trying to use the UserManager function?

    User usr = UserManager.getUser(userName);

    That will return the username…the password might be a bit more tricky…good luck


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Using The Java API to Authenticate a user

    Posted 10/06/04 09:55 AM

    bill,
    To authenticate a user (and password), you have to write a AuthenticationModule.

    For details on this, contact WmSupport to the Authentication Module Guide.
    OR

    use com.wm.app.b2b.server
    Class UGClass; method checkPassword

    public boolean checkPassword(java.lang.String guess)
    Verifies the password of this UG. The supplied guess is checked against the set password. Null passwords match any guess; otherwise a strict match is required.

    For details on this, refer to the webM API.

    Let me know, if you have more questions on this.

    • Saurabh

    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Using The Java API to Authenticate a user

    Posted 10/10/04 01:20 PM

    Writing a custom authentication module is a good idea and using the custom module only the valid users recognized by the IS cache will be able to connect and you can manage the passwords externally.


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General