How to set up WebLogic 10.3.3. security for JAX_WS web services?

Posted by Roman Kagan on Stack Overflow See other posts from Stack Overflow or by Roman Kagan
Published on 2011-01-06T23:34:44Z Indexed on 2011/01/10 18:53 UTC
Read the original article Hit count: 175

I have quite simple task to accomplish - I have to set up the security for web services ( basic authentication with hardcoded in WLES user id and password). I set the web.xml (see code fragment below) but I have tough time configuring WebLogic. I added IdentityAssertionAuthenticator Authentication Provider, set it as Required, modified DefaultAuthenticator as Optional and I went to deployed application's security and set the role to "thisIsUser" and at some point it worked, but not anymore (I redeployed war file and set web service security the same way but no avail.) I'd greatly appreciate for all your help.

    <security-constraint>
    <display-name>SecurityConstraint</display-name>
    <web-resource-collection>
        <web-resource-name>ABC</web-resource-name>
        <url-pattern>/ABC</url-pattern>
    </web-resource-collection>
    <auth-constraint>
        <role-name>thisIsUser</role-name>
    </auth-constraint>
</security-constraint>

© Stack Overflow or respective owner

Related posts about web-services

Related posts about security