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

username token policy webservice producer

webMethods Community Member

webMethods Community MemberMon January 25, 2016 07:33 AM

webMethods Community Member

webMethods Community MemberMon January 25, 2016 08:01 AM

  • 1.  username token policy webservice producer

    Posted Mon December 14, 2015 10:36 AM

    Hi,

    I am required to expose a service in webMethods i.e. webMethods is going to be the provider of the service. I am supposed to secure the webservice with a username token policy. Does anyone know how I can handle the username token parameters sent by the consumer?

    I could only find information on adding handlers to consumer desriptors on this forum. Thanks for helping out!!


    #API-Management
    #webMethods
    #soa


  • 2.  RE: username token policy webservice producer

    Posted Mon December 14, 2015 01:32 PM

    Hi Basheer,

    please provide the version of your wM suite.

    Please check the documentation for WS Aliases as well as ACLs and Client certificates.
    This might help to sort things out.

    Regards,
    Holger


    #webMethods
    #soa
    #API-Management


  • 3.  RE: username token policy webservice producer

    Posted Mon December 14, 2015 01:33 PM

    pls review the Web_Services_Developers_Guide, it should give you enough info to start with.
    If you have specific issue/question, you can raise it to the forum.


    #API-Management
    #webMethods
    #soa


  • 4.  RE: username token policy webservice producer

    Posted Fri January 22, 2016 02:48 AM

    HI. Basheer unnisa

    shared to policy username policy

    example : C:\SoftwareAG97\IntegrationServer\instances\default\config\wss\policies

    Username_token_only < you want file name and show name to pocliy tab.

    <wsp:Policy wsu:Id=“Username_token_only” Name=“Username_token_only”
    xmlns:wsu=“http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
    xmlns:wsp=“Web Services Policy Framework (WS-Policy) and Web Services Policy Attachment (WS-PolicyAttachment)”>

    <wsp:ExactlyOne>
    <wsp:All>
    <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
    <wsp:Policy>
    <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
    </sp:UsernameToken>
    </wsp:Policy>
    </sp:SignedSupportingTokens>
    </wsp:All>
    </wsp:ExactlyOne>
    

    </wsp:Policy>

    good luck!


    #API-Management
    #soa
    #webMethods


  • 5.  RE: username token policy webservice producer

    Posted Mon January 25, 2016 03:42 AM

    Basheer – Did you finish this task ? Can you share sample policy file over here which will be useful to others. In my environment I can see Username_Signature, Username_Over_Transport & Username_Encryption files.

    Thanks,


    #soa
    #webMethods
    #API-Management


  • 6.  RE: username token policy webservice producer

    Posted Mon January 25, 2016 05:16 AM

    I was able to add the policy by placing the policy file in this location:
    …/IntegrationServer/instances/default/config/wss/policies/

    I have attached the policy file to be placed in this location. After you have done this, you may need to restart your server for the policy to reflect in designer.

    After this, open the provider WSD in designer, click on policies tab, right click and select the username token policy you have just added and save. Your webservice is now secure with a username token policy.


    #webMethods
    #soa
    #API-Management


  • 7.  RE: username token policy webservice producer

    Posted Mon January 25, 2016 06:43 AM

    Thanks Basheer Unnisa, but didn’t find attachment, can you please.

    Thanks,


    #webMethods
    #soa
    #API-Management


  • 8.  RE: username token policy webservice producer

    Posted Mon January 25, 2016 07:07 AM

    attached policy file
    Username_Token.zip (381 Bytes)


    #webMethods
    #API-Management
    #soa


  • 9.  RE: username token policy webservice producer

    Posted Mon January 25, 2016 07:33 AM

    Thanks Basheer Unnisa.

    Thanks,


    #soa
    #API-Management
    #webMethods


  • 10.  RE: username token policy webservice producer

    Posted Mon January 25, 2016 07:52 AM

    Basheer Unnisa – which wM version you are on ?

    I am having local wM8.2. I just tried the steps which you gave but didn’t find anything as part of WSD provider’s policies in designer.

    Thanks,


    #soa
    #webMethods
    #API-Management


  • 11.  RE: username token policy webservice producer

    Posted Mon January 25, 2016 08:00 AM


  • 12.  RE: username token policy webservice producer

    Posted Mon January 25, 2016 08:01 AM

    Okay, thanks for your time.

    Thanks,


    #webMethods
    #soa
    #API-Management