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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Custom authentication

  • 1.  Custom authentication

    Posted Wed June 22, 2011 05:14 PM

    Hi guys:

    I need help to do the following:

    I need to invoke a page (login portlet?) with a session id parameter passed to a preference in the portlet. Imagine the portlet has anonymous access. The session id, is the session id from other application. My portlet should ask the application if the session id is valid. The application may return a domain user id. I need this user id become the current user (set) and redirect to another page.

    I have no problems setting permissions or passing parameters to a portlet, however I have no idea how to set an arbitraty domain user as the current user.

    Best regards.


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 2.  RE: Custom authentication

    Posted Thu June 23, 2011 07:18 PM

    This sounds like a custom Single-Sign-on solution. You’ll need to implement a custom Authentication Handler.

    This article: https://advantage.webmethods.com/advantage?w=0&targChanId=-536884334&oid=1614272879">https://advantage.webmethods.com/advantage?w=0&targChanId=-536884334&oid=1614272879 describes how to create, implement and register a custom authentication scheme.

    You’ll want to look at the implementation of the wm_custAuth.zip. Specifically, the CustAuthHandler. That class is responsible for extracting information and specifying the AuthInfo information.

    You’ll still need to ensure that MWS has a directory service that can lookup the userid in question.

    Regards,
    –mark


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 3.  RE: Custom authentication

    Posted Thu June 23, 2011 10:52 PM

    Following the instructions, after import the zip into designer, I get the following error on default.jsp in the lines:

    Cannot find the tag library descriptor for "API Integration Platform | Software AG

    Thanks in advance.

    regards


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 4.  RE: Custom authentication

    Posted Thu June 23, 2011 11:05 PM

    I just tried it and it seemed to work for me. One key thing to note, is that this isn’t a CAF project. When importing in Designer, just choose a general Eclipse Project to import.

    (Authentication handlers are legacy portlets)

    Regards,
    –mark


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 5.  RE: Custom authentication

    Posted Fri June 24, 2011 09:22 PM

    Can’t find general->Eclipse Project. I did it with general->Existing Projects into Workspace. I don’t have errors now. It’s ok?

    Regards


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 6.  RE: Custom authentication

    Posted Fri June 24, 2011 09:58 PM

    Can’t find general->Eclipse Project. I did it with general->Existing Projects into Workspace. I don’t have errors now. It’s ok?

    Also, instructions says “Build the project in the webMethods Portlets perspective and deploy to the server”, and I can’t find Portlet perspective either.

    Regards


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 7.  RE: Custom authentication

    Posted Mon June 27, 2011 05:29 PM

    You need to enable the Legacy Portlet support in Designer. To do this, go to Window → Preferences → General → Capabilities

    Then you need to enable the Development → MWS Legacy Portlets support. (Use the Advanced button to toggle this on).

    Regards,
    –mark


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 8.  RE: Custom authentication

    Posted Mon June 27, 2011 08:25 PM

    Thanks mimel.

    Now, building the portlet I have the following errors / actions:

    1. can’t find net/sf/antcontrib/antcontrib.properties. Action: I’ve downloaded ant-contrib-0.6.jar and I’ve installed in preferences->ant-runtime->ant home entries.

    2. can’t find xmltask. Action: I’ve downloaded xmltask.jar and I’ve installed in preferences->ant-runtime->ant home entries.

    Now show me the following error:

    BUILD FAILED
    C:\SoftwareAG\eclipse\v34\plugins\com.webMethods.portal.PortletGenerator_8.0.0.0000-0060\lib\component_build.xml:146: taskdef class com.webMethods.portal.build.ComputeComponentProperties cannot be found

    May be I missed on some configurations.

    Best regards.


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 9.  RE: Custom authentication

    Posted Tue June 28, 2011 04:56 PM

    You won’t be able to build and deploy legacy portlets from 8.0.2 Designer (it was fixed in 8.2) In the meantime, you’ll need to use the command line tools to build and deploy these components.

    Please see $MWS_HOME/mycomponents/readme.txt

    Regards,
    –mark


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 10.  RE: Custom authentication

    Posted Thu July 07, 2011 05:03 PM

    What if I create my own portlet under UI perspective???


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 11.  RE: Custom authentication

    Posted Thu July 07, 2011 07:40 PM

    Does that work? If so, feel free to use that.


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine