[Radiant] Solved: Extensions and authentication

Todd McGrath mcgrath at supergloo.com
Sun Jan 7 20:04:13 CST 2007


Hey Todd,

Add "no_login_required" after the class declaration.

Your buddy,
Todd

Quoting Todd McGrath <mcgrath at supergloo.com>:

> 
> I'm missing something obvious about extensions and authentication
> requirements?
> 
> Background
> I setup an extension hoping to be able to process forms from the _public_
> side
> of the site.  
> 
> * using Mental Branch
> * run ruby script\generate extension mailertest
> * update mailertest_extension.rb:
> 
>    define_routes do |map|
>      map.connect 'mailertest/:action', :controller => 'mailertest'
>    end
> 
> * in mailertest controller add method to make sure the new controller is
> used:
> 
>   def index
>     logger.info("if I'm not back in 5 minutes, wait longer")
>   end
> 
> * access http://localhost:3000/mailertest 
> where I'm promptly redirected to the /admin/ login screen.
> 
> log: 
> Redirected to http://localhost:3000/admin/login
> Filter chain halted as
> [#<ActionController::Filters::ClassMethods::SymbolFilter:0x950b85c
> @filter=:authenticate>] returned false.
> Filter chain halted as [:authenticate] did not yield.
> 
> --/--
> I'm missing something obvious aren't I?  Is there a way to specify that an
> extension shouldn't require authentication?
> 
> 
> Actually, maybe I'm on the wrong track all together - I want to be able to
> process forms submitted from the public side of the site.  I don't need any
> tags  that will create the forms and inputs.  Perhaps, easier if I add a
> route
> in routes.rb to /mailertest and put the controller alongside Radiant code?
> 
> Any insight appreciated!
> 
> Todd M
> _______________________________________________
> Radiant mailing list
> Post:   Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> 





More information about the Radiant mailing list