If you want to see a working example of logging in,
you can download the flux tarball:
http://www.apache.org/~jvanzyl/flux.tgz
jvz.
On Sat, 3 Feb 2001, Will Stranathan wrote:
> In TurbineResources.properties, be sure to set action.sessionvalidator to
> sessionvalidator.TemplateSecureSessionValidator
>
> Of course, I tried doing all this, too, and when I login with either good OR
> bad credentials, I just get a blank screen - the URL shows
> /template/index.vm, but no template was executed at all.
>
> Anybody else have any ideas what Eric and I are doing wrong?
>
> Will Stranathan
>
> ----- Original Message -----
> From: "Eric Dobbs" <[EMAIL PROTECTED]>
> To: "Turbine" <[EMAIL PROTECTED]>
> Sent: Saturday, February 03, 2001 3:04 AM
> Subject: basic turbine (or tdk) user authentication
>
>
> > I think I've tried everything reasonable to figure this
> > out on my own and have failed on all attempts.
> >
> > I need to get turbine authenticating users against a
> > database for a proof-of-concept application I'm
> > building at work. We're likely to replace an internal
> > application framework with turbine if we can present a
> > compelling example. I've lost track of all the
> > different permutations I've tried to make this work.
> >
> > For now, I just want to use the security classes that
> > come with turbine, unless I'm mistaken about how those
> > are supposed to work. And for this app I want to use
> > velocity for the templating.
> >
> > <!-- begin Login.vm -->
> > #if ($data.Message)
> > <blockquote>
> > $data.Message
> > </blockquote>
> > #end
> >
> > <form method="post" action="$link.setPage("Index.vm")">
> > <pre>
> > username <input type="text" name="username">
> > password <input type="password" name="password">
> > <input type="hidden" name="action" value="LoginUser">
> > <input type="submit" value="login">
> > </pre>
> > <form>
> > <!-- end Login.vm -->
> >
> > <!-- begin Index.vm -->
> > login succeeded!<br>
> > <!-- end Index.vm -->
> >
> > If I try to log in as username=turbine and
> > password=turbine I want to see the Index.vm. If I try
> > to use anything else I want to be bounced back to to
> > Login.vm and see the default error message that the
> > username or password is wrong.
> >
> > If I understand correctly, for this example, I could
> > create a DefaultScreen that extends VelocityScreen and
> > does nothing. If that's not the case, then I'll need
> > to write Login.java and Index.java as no-opp
> > extensions of VelocityScreen.
> >
> >
> > I can't believe this is even remotely difficult, but
> > I've spent three days failing to get even this much
> > working. I believe I just need some simple combination
> > of settings in the TurbineResources.properties file.
> >
> >
> > If you like, assume I have a running copy of TDK 1.1a10
> > peer example set up on a linux box using mysql as the
> > database. Or if you prefer, assume I have a running
> > copy of Tomcat 4.0 beta 1 installed and running, and a
> > recent CVS checkout of turbine.
> >
> > About your audience: I've got only three weeks of
> > exposure to turbine, about three months of java, nine
> > months of object programming, and twenty years of
> > computer experience you don't want to hear about. 8^)
> >
> > What needs tweeking in TurbineResources.properties?
> > What classes must I build?
> > What am I missing?
> >
> > Please educate me.
> > -Eric
> >
> >
> > ps. I explored the following resources before coming
> > to you for help:
> >
> > TDK
> >
> > turbine documentation and javadocs
> >
> > UML sequence diagrams built from the Turbine source
> > code (code from Wednesday 31 Jan 2001, I think).
> >
> > turbine faq
> >
> > turbine mail archives (If the answer is in that
> > haystack, I'll welcome the search string that will
> > locate the needle. 8^)
> >
> > scarab (Followed a suggestion I found in the archive. I
> > checked out the latest code, as of Friday 2 Feb 2001,
> > and built it. No joy. When I tried to log in I got a
> > stack trace that I don't have at hand.)
> >
> >
> > ------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> > Problems?: [EMAIL PROTECTED]
> >
> >
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]