Is there really no answer for this out there?

J. B. Rainsberger wrote:

Everyone:

I have solved my problem, but I do not understand why it works. If this is not a Cactus issue, then let me know so I can ask the nice JBoss people.

I am testing EJB method permissions. I have configured the EJBs so that only the role "administrator" can invoke the EJB in question. I have two users: one is an "administrator" and the other is a "user".

I wanted to write the test saying that a "user" cannot invoke the EJB in question. The test itself was easy to write. My question was how in JBoss to say "everyone is in role 'allAuthenticatedUsers'," as this is a feature of WebSphere with which I am familiar. I was unable to find an answer, so in desperation, I just tried the following, and it worked:

1. Configure my test web app to authenticate users with auth-constraint/role-name=allAuthenicatedUsers.

2. Execute the tests, and they passed.

Nowhere did I connect any user to the role allAuthenticatedUsers. So how the hell did this work?

Cactus 1.6dev/JBoss 3.2.2/Tomcat 4.1.27

Any ideas?
--
J. B. Rainsberger,
Diaspar Software Services
http://www.diasparsoftware.com :: +1 416 791-8603
Let's write software that people understand


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to