[jboss-user] [JBoss Web Services] - web-service authentication problem
Christy Christy
do-not-reply at jboss.com
Tue Jun 22 01:57:07 EDT 2010
Christy Christy [http://community.jboss.org/people/christy] replied to the discussion
"web-service authentication problem"
To view the discussion, visit: http://community.jboss.org/message/549048#549048
--------------------------------------------------------------
I found the solution here, on this forum :) . To secure only endpoint but not wsdl you need to secure only POST method:
> <security-constraint>
> <web-resource-collection>
> <web-resource-name>TestFormatsService</web-resource-name>
>
> <url-pattern>/TestFormatsService</url-pattern>
> <http-method>POST</http-method>
> </web-resource-collection>
> <auth-constraint>
> <role-name>friend</role-name>
> </auth-constraint>
> </security-constraint>
>
> <login-config>
> <auth-method>BASIC</auth-method>
> </login-config>
>
> <security-role>
> <role-name>friend</role-name>
> </security-role>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/549048#549048]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100622/ea6804cf/attachment.html
More information about the jboss-user
mailing list