Apologies for the long delay.  Received this when I was on vacation
and lost track of it.

I tried using the authentication example that ships with OXF and
was able to get that to work.  For comparison's sake here is my
experience.

o Uncommented security contraint items at bottom of example's
   web.xml

o In tomcat-user.xml, located in .oxfContainers/Internal Tomcat/conf,
   <user name="admin"   password="password" roles="administrator" />

o Started J2EE Container

o In browser went to
   http://localhost:8888/examples-standalone/authentication

o  Got login prompt in browser.  After entering "admin"
    and "password" received the 'you are logged in now'
    text.

So were you doing something similar?  Also if you try 
the authentication example does it work for you?

-- Regards, Dan S



On Wed, 18 Aug 2004 16:58:36 -0700 (PDT), Omar Tazi <[EMAIL PROTECTED]>
wrote:

>
> This is for you!
>
> -Omar
>
>
> --- Damon Rand <[EMAIL PROTECTED]> wrote:
>
>> From: "Damon Rand" <[EMAIL PROTECTED]>
>> To: "OXF Users" <[EMAIL PROTECTED]>
>> Date: Thu, 19 Aug 2004 00:55:06 +0100
>> Subject: OXFStudio web.xml authentication problem..
>>
>> Hey guys,
>>
>>     Just started to properly get into using Studio so I
>> might email some bug
>> reports through on it.. I am using 0.0.5.
>>
>> I have been using the below security constraints for
>> sometime..
>>
>> <!-- Secure everything by default -->
>> <security-constraint>
>>     <web-resource-collection>
>>       <web-resource-name>secure</web-resource-name>
>>       <url-pattern>/*</url-pattern>
>>     </web-resource-collection>
>>     <auth-constraint>
>>       <role-name>*</role-name>
>>     </auth-constraint>
>>   </security-constraint>
>> <!-- Allow login without being authenticated -->
>>   <security-constraint>
>>     <web-resource-collection>
>>       <web-resource-name>insecure</web-resource-name>
>>       <url-pattern>/login/</url-pattern>
>>     </web-resource-collection>
>>     <auth-constraint/>
>>   </security-constraint>
>>   <!-- Form based authentication -->
>>   <login-config>
>>     <auth-method>FORM</auth-method>
>>     <realm-name>oxfsandbox</realm-name>
>>     <form-login-config>
>>
>> <form-login-page>/login/login.html</form-login-page>
>>
>>
> <form-error-page>/login/login-error.html</form-error-page>
>>     </form-login-config>
>>   </login-config>
>>
>> Bringing my app into studio I now get this message when I
>> access a protected
>> page..
>>
>>     Configuration error: Cannot perform access control
>> without an
>> authenticated principal
>>
>> If I "Export war" and deploy in standalone Tomcat it
>> works ok.
>>
>> Any ideas?
>>
>>
>> Cheers,
>> Damon.
>>
>> _______________________________________________
>> oxf-users mailing list
>> [EMAIL PROTECTED]
>> http://mail.orbeon.com/mailman/listinfo/oxf-users
>>
> 


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to