Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Authentication CPAN distribution.

Report information
The Basics
Id: 54598
Status: rejected
Priority: 0/
Queue: Catalyst-Plugin-Authentication

People
Owner: Nobody in particular
Requestors: c.kras [...] pcc-online.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.10016
Fixed in: (no value)



Subject: Settings in configuration file is being ignored
Either I must be doing something completely wrong, or Catalyst::Plugin::Authentication is silently ignoring my configuration file. I'm running Strawberry Perl 5.10.1 on Windows Vista. Catalyst::Runtime is version 5.80020. When using the following configuration (MyApp.conf) the module ignores my settings: <Plugin::Authentication> <realms> <default> class SimpleDB user_model DB::User password_type clear </default> </realms> </Plugin::Authentication> But when adding it directly to MyApp.pm (the base module that extends Catalyst) like this it works without any problems: __PACKAGE__->config( name => 'MyApp', # Disable deprecated behavior needed by old applications disable_component_resolution_regex_fallback => 1, 'Plugin::Authentication' => { 'realms' => { 'default' => { 'class' => 'SimpleDB', 'user_model' => 'DB::User', 'password_type' => 'clear' } } } ); At line 229 in Catalys/Plugin/Authentication.pm it retrieves the specific configuration. But it simply doesn't exist at that point yet, as it's undefined. As soon as I configure the application with the config() method it suddenly works. So it seems like this modules setups too early?
This works, you're not doing it right somehow, sorry. Either you have 'Authentication' in your plugin list before 'ConfigLoader' (ConfigLoader has to be first - ordering is important!), or the config file you think is being loaded isn't being for some reason - in this case check the app debug screen for the _actual_ config which the application is loading.. Cheers t0m
On Sat 13 Feb 2010 18:13:49, BOBTFISH wrote: Show quoted text
> This works, you're not doing it right somehow, sorry. > > Either you have 'Authentication' in your plugin list before > 'ConfigLoader' (ConfigLoader has to be first - ordering is important!), > or the config file you think is being loaded isn't being for some reason > - in this case check the app debug screen for the _actual_ config which > the application is loading.. > > Cheers > t0m
Hi t0m, thanks for the fast reply! The config is being loaded as it was working for the session plugin and the app debug screen also showed it. But it was the ordering of plugins. Configloader came after Authorization... Damn me with my alphabetical ordering tick :-).