Hello cocoon experts, newbie here stumbling through getting an initial
webapp started.  I have been trying to get the sunRise auth to work with
cocoon v 2.0.3 and jdk 1.3.1.  I can't seem to get the "sunRise-login" to
work properly?!?!?  The redirects to the login page, and the logout all seem
to work as expected.

When I attempt to access a protected resource I appropriately get redirected
to my login page, I attempt to login (submits to foo-login) and I get the
following errors that a resource isn't available

type resource-not-found
message Resource not found
description The requested URI "/internal/foo-login" was not found.
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/internal/foo-login
path-info
internal/foo-login

Here is the foo-login match statement:

    <map:match pattern="foo-login">
      <map:act type="sunRise-login">
        <map:parameter name="handler" value="foo-handler"/>
        <map:parameter name="parameter_name" value="request:name"/>
        <map:parameter name="parameter_password" value="request:password"/>
        <map:redirect-to uri="foo-protected"/>
      </map:act>
      <!-- authentication failed: -->
      <map:generate src="login-failed.xml"/>
      <map:transform src="login-failed.xsl"/>
      <map:serialize/>
    </map:match>

If I change the "sunRise-login" to "sunRise-logout" no errors, it goes in a
big circle because it's not authenticating.  I'm guessing that I'm missing a
parameter somewhere, I've followed the example from
http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunriseComponent
s.html as closely as possible, but no luck.

Here are the interesting action defs in the parent sitemap.xconf:

    <map:action name="sunRise-auth"
src="org.apache.cocoon.sunshine.sunrise.acting.AuthAction">
      <handlers>
        <handler name="foo-handler"
xmlns:map="http://apache.org/cocoon/sitemap/1.0";
            xmlns:sunshine="http://sunshine.sundn.de/sunshine/1.0";>
          <redirect-to uri="cocoon://foo-loginpage"/>
          <authentication uri="cocoon:raw://foo-authuser" />
        </handler>
      </handlers>
    </map:action>

    <map:action name="sunRise-login"
src="org.apache.cocoon.sunshine.sunrise.acting.LoginAction"/>
    <map:action name="sunRise-logout"
src="org.apache.cocoon.sunshine.sunrise.acting.LogoutAction"/>
    <map:action name="sunRise-loggedIn"
src="org.apache.cocoon.sunshine.sunrise.acting.LoggedInAction"/>

Thanks in advance, any help would be greatly appreciated from others who
have successfully done this, I can forward the other parts of the conf as
well.

-Chris


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to