Forum: Radiant CMS Password protection part of a radiant web site

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.
A9cdc0b24a1ee497ad749afab0ec5c30?d=identicon&s=25 Luigi Rizzo (luigi)
on 2007-01-11 01:09
(Received via mailing list)
Hello.

Is there any working solution made available by the radiant
development/user community to password protect a part of a radiant-based
web site?

Unluckily it seems the password_protected behavior doesn't work with
0.5.2 (see below for the error I get) :(

Many thanks in advance!

Luigi

ActionController::MissingTemplate (Missing template
/usr/lib/ruby/gems/1.8/gems/radiant-0.5.2/lib/../app/views/site/show_page.rhtml):

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:1034:in
`assert_existence_of_template_file'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:724:in
`render_file'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:648:in
`render_with_no_layout'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/layout.rb:245:in
`render_without_benchmark'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:53:in
`render'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:53:in
`render'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:942:in
`perform_action_without_filters'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in
`perform_action_without_benchmark'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in
`perform_action'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in
`send'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in
`process_without_filters'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in
`process_without_session_management_support'

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in
`process'
    /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in
`dispatch'
    /opt/lsws/fcgi-bin/RailsRunner.rb:12
02693beb6285803295b5ada9680a1817?d=identicon&s=25 Ruben D. Orduz (Guest)
on 2007-01-11 01:48
(Received via mailing list)
Luigi,

ho questo archivio "app/views/site/show_page.rhtml" in questo diretorio?
A9cdc0b24a1ee497ad749afab0ec5c30?d=identicon&s=25 Luigi Rizzo (luigi)
on 2007-01-11 08:41
(Received via mailing list)
Ruben D. Orduz wrote:
> ho questo archivio "app/views/site/show_page.rhtml" in questo diretorio?

Ciao Ruben, grazie per l'aiuto! :)

the file is effectively missing. My installation of radiant is from the
gem and not a "full" one (i.e. the app dir is not in my application root
directory).

What the show_page file is supposed to contain?

Grazie.

Luigi
A9cdc0b24a1ee497ad749afab0ec5c30?d=identicon&s=25 Luigi Rizzo (luigi)
on 2007-01-11 11:42
(Received via mailing list)
Luigi Rizzo wrote:
> Ruben D. Orduz wrote:
>> ho questo archivio "app/views/site/show_page.rhtml" in questo diretorio?
> the file is effectively missing. My installation of radiant is from the
> gem and not a "full" one (i.e. the app dir is not in my application root
> directory).

I created the file "app/views/site/show_page.rhtml", and when I access
the password protected page it is simply rendered to the browser but no
authentication request is issued. I think it worth noticing I'm using
litespeed as web server to serve the radiant site.

L
6ec6f77ea603dd75b3a7a7775b059e79?d=identicon&s=25 John W. Long (Guest)
on 2007-01-11 16:21
(Received via mailing list)
Luigi Rizzo wrote:
> Hello.
>
> Is there any working solution made available by the radiant
> development/user community to password protect a part of a radiant-based
> web site?
>
> Unluckily it seems the password_protected behavior doesn't work with
> 0.5.2 (see below for the error I get) :(

Probably the easiest thing to do is to setup basic authentication with
an apache .htaccess file. Would that work for you?

--
John Long
http://wiseheartdesign.com
02693beb6285803295b5ada9680a1817?d=identicon&s=25 Ruben D. Orduz (Guest)
on 2007-01-19 16:30
(Received via mailing list)
What I don't get is how can he be running Radiant w/o an app folder
inside RAILS_ROOT dir? I'm still puzzled about that one. Sensa una
buona explicazione non puo fare niente.
A9cdc0b24a1ee497ad749afab0ec5c30?d=identicon&s=25 Luigi Rizzo (luigi)
on 2007-01-19 16:31
(Received via mailing list)
Many thanks for your assistance.

John W. Long wrote:
> Probably the easiest thing to do is to setup basic authentication with
> an apache .htaccess file. Would that work for you?

It would work but how can be, for example, the
"/official-documents/documents" page protected with .htaccess? In other
words, where should I put the .htaccess file to protect a "virtual"
radiant sub-sub-directory?

L
A9cdc0b24a1ee497ad749afab0ec5c30?d=identicon&s=25 Luigi Rizzo (luigi)
on 2007-09-25 22:43
(Received via mailing list)
Ruben D. Orduz wrote:
> What I don't get is how can he be running Radiant w/o an app folder
> inside RAILS_ROOT dir? I'm still puzzled about that one. Sensa una
> buona explicazione non puo fare niente.

Hello Ruben.

I installed radiant from a gem, and not as an application bu as an
instance. Here is what the installation dir has inside:
http://pastie.caboo.se/32595

(Note: the show_page.rhtml file in the "app/views/site" was added today)

It seems to me the problem is with the HTTP Authentication part of the
password_protected behavior, which doesn't seem to happen ... (maybe
because of litespeed?). I'm using the latest behavior available and I
installed it as a plugin.

Thank you for you assistance.

L
02693beb6285803295b5ada9680a1817?d=identicon&s=25 Ruben D. Orduz (Guest)
on 2007-09-25 22:52
(Received via mailing list)
Luigi,

Yeah .htaccess will not work under litespped or lighthttpd, so John's
suggestion probably won't work. And if the password protection of the
extension relies on HTTP auth, then it probably won't work either.
This topic is locked and can not be replied to.