« Return to Thread: xxforms

Re: Re: Re: Re: Help with login

by masjab :: Rate this Message:

Reply to Author | View in Thread

ok, I tried and now it´s almost working like i want..
but still some help would be great.

I have:

<security-constraint>
        <web-resource-collection>
            <web-resource-name>myApp</web-resource-name>
            <url-pattern>/myApp/edit/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>orbeon-admin</role-name>
        </auth-constraint>
    </security-constraint>

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>myApp</web-resource-name>
            <url-pattern>/myApp/search/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>orbeon-user</role-name>
        </auth-constraint>
    </security-constraint>

    

    

    <login-config>
        <auth-method>FORM</auth-method>
        <form-login-config>
            <form-login-page>/myApp/login</form-login-page>
            <form-error-page>/myApp/login-error</form-error-page>
        </form-login-config>
    </login-config>

    

    <security-role>
        <role-name>orbeon-admin</role-name>
    </security-role>



I do not understand how to make it like:
<web-resource-name>myApp</web-resource-name>
   <url-pattern>/myApp/edit/*</url-pattern>
   <url-pattern>/myApp/search/*</url-pattern>
....

because I do not know how to put two different groups....

Please, I read the reference on orbeon, I looked at the example but can someone explain to me again 
"Access control is provided by adding three sections to the web.xml file:"

Now my app works fine with one error:
when i put in a wrong user/pass I only get a error message from orbeon system...
How can I redirect the user  try again?

THX

 











Am 06.05.2008 um 03:03 schrieb Alessandro Vernet:

On Mon, May 5, 2008 at 5:54 PM, Masen J <masenjabban@...> wrote:
What do I have to do if I want the user to see ONLY the loginpage, when he
enters:

http://localhost:8080/orbeon/myApp/

I copied the login.xhtml from the example an it´s in /myApp

But when http://localhost:8080/orbeon/myApp/ is entered the sidebar(I
started from the bookcast example and changed it to my-theme.xsl...) is
still visible...

If you "protect" /myApp and users are not logged in, they should be
redirected to your login page. You might want to try to change the
<url-pattern> to /*, just to make sure that the redirection to the
login page works.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet

--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: ops-users-unsubscribe@...
For general help: sympa@...
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

 « Return to Thread: xxforms

LightInTheBox - Buy quality products at wholesale price