Forum: Ruby on Rails Well-behaved authentication model / post-backs

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
41e1579600683eed6c00af9a425268e6?d=identicon&s=25 epfrederick (Guest)
on 2005-11-12 12:50
(Received via mailing list)
Hello,

I am new to rails/ruby.

I have been experimenting with simple authentication filters...
filtering protected controllers with an authentication action that
delegates authentication to an authentication controller and the
underlying "Person" model.

When the user is in the process of a http GET, either via bookmark or
otherwise, it's easy to 'bring them back' to where they were via
redirect_to :back or storing back-uris as session variables and
redirecting.

What I am looking for is a complete idiom to seamlessly interject
authentication mid-stream without disrupting workflow--for posts and
gets with arbitrary parameters.

Key use case: user fills out a huge form, but goes to bed before
submitting. The next day, he/she submits the form but their session is
expired. They should be prompted for a login, then the post should
proceed without any loss.

How is this done?
 Thanks
This topic is locked and can not be replied to.