# Restful\_authentication and popup window

**URL:** <https://www.ruby-forum.com/t/restful-authentication-and-popup-window/123778>\
**Category:** Rails\
**Created:** [December 20, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/restful-authentication-and-popup-window/123778 "2007-12-20T16:25:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonaylward](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eb8c5e/32.png) [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Post date:** [December 20, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/restful-authentication-and-popup-window/123778/1 "2007-12-20T16:25:46Z")

</div>

Take a look at item #7 at  
[http://prototype-window.xilinus.com/samples.html](http://prototype-window.xilinus.com/samples.html)

I’d really like the “login or register” of r\_a to d that!  
Wouldn’t you?

Of course it would also need to be triggered programmatically, in a  
‘before\_filter’ or in an ‘login\_required’ in an action, to get the  
authentication before proceeding with the action. (Which strikes me as  
better than a redirect to a login page then redirect back!)

Has this been done? I can’t find it goggling.

–  
Our government has kept us in a perpetual state of fear - kept us in a  
continuous stampede of patriotic fervor - with the cry of grave national  
emergency.  
– Douglas MacArthur
