Hi Gill,

(1) Is it correct to implement my own Object like this?

I quickly read through it, but please include the actual source code if you want us to take a better look. It's a bit tedious to have to read about a Java implementation in plain language. Makes it much slower to have to imagine what it looks like for real. Our eyes are trained to scan over the real code ;-) (btw. for better communication later, we refer to this as an Element implementation, not a general purpose Object since that can really be anything)


Take care,

Geert

(2) in the application, if I click on the ADMIN link, I get redirected to
the login form,
Sofar so good. But then, if I click HOME (in the menu, it as a global exit)
I get an extrodinary long url:
http://localhost:8080/admin/StartAdmin? childrequest=bWFudWFsOlN0YXJ0QWRtaW54
AEdFVG0A&triggerlist=AQAAAAIAAABhdXRoLnhtbGQAaG9tZWQAZABkAA%3D%3D
Normaly HOME points to "/", but here I seem to be trapped inside the ADMIN
sub site.


If anybody can answer these questions for me i would be gratefull.
If you are interessted I can also provide som esourcecode, or even make a
wiki entry.
The case handling "sessions /authentication" with external UserInfo is not
documented in the wike AFAIK.



Mit freundlichen Grüßen / With kind regards

Huibert Gill


-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von henk
Gesendet: Dienstag, 25. Juli 2006 15:22
An: RIFE users list : questions,bug reports and suggestions.
Betreff: Re: [Rife-users] Can't get "flexible authentication" to work

Hi,

I too am very new to Rife, but do you have a call to
'child()' in your
code in order to propagate the request to the child ?

Henk

Gill Huibert wrote:
Hi ,

Since last week I've been evaluating Rife for use in my
next project.
So far I'm very exited about the features Rife offers.
I have tried the examples, and understood them so far (I think)

Now it's time to try the first steps for my own project with Rife.

First thing I wanted to try out was the abbility to
authenticate a User.
We have a custom class which wrapps all userinfo for all of our
webapplications.
I can fetch an user class instance from a service for a
givven username.

In the cookbook I read about the flexible authentication.
(http://rifers.org/wiki/display/RIFE/Flexible+authentication)

So I implemented my own class which implements the
RolesuerCredentials
interface.
(my auth element extends rife/authenticated/memory.xml, and
a property
"credentials_class" points to my class)
Here I wrote a lengthy validate() Method, which fetches a
user, and compared
passwords.
(it was just a mockup or prrof of concept, nothing fancy)
The validate() method returns false for wrong password, and true if
everything is correct.

This works, in so far that my codes gets called, and the
username/password
is evaluated, and the correct boolean values are returned.
But regardless if I type in the correct username/password,
or if I give a
wrong login,
I get redirected back to the login form...

Is there something I'm missing? (there obviously is :-)
Or am I completly onto the wrong track?

Any help would be apriciated.
\ /
  -    marsman

contact me : henk at marsman-it.be
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to