confused_elf has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I've been having problems of not having been able to get this authentication working with catalyst. I followed the guide in guide as well as but keep on getting this error in my apache2 error log.

The realm requested, 'default' does not exist, or there is no credential associated with it.

I tried both ways, doing the configuration in the yml file as well as in the application configuration file. but both of them comes like this. Is there anyone that can help me with this issue?,
I'm just confused to why this occurs, since I have already specified the default realm.

Thank you so much for the help, let me know if you need additional information. Thanks again.

Replies are listed 'Best First'.
Re: Authentication in Catalyst
by dragonchild (Archbishop) on May 07, 2008 at 16:28 UTC
    The best place for Catalyst help is #catalyst on irc.perl.org None of the Cat devs really hang out here - they're all there.

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
      I just got it working couple minutes ago. Thanks for the tips, I'll check the irc.perl.org now. Thanks.
Re: Authentication in Catalyst
by Anonymous Monk on Oct 22, 2009 at 21:40 UTC
    Had this problem. My solution: __PACKAGE__->config->{'Plugin::Authentication'} replace with __PACKAGE__->config->{'authentication'}

      The first is actually the "correct" usage but it was not supported in the codebase at first and was still the way an awful lot of Catalyst in the wild worked while many tutorials and documents reflected the newer namespaced style.

      Catalyst::Plugin::Session suffered from this same problem; i.e., "session" worked and "Plugin::Session" didn't and I'm pretty sure there was an interval where the docs and code clashed; i.e., docs said "Plugin::Session" but only "session" worked.

      Ir all seems good now. The current versions of the various auth and session pieces work fine with the namespaced keys. The plain plugin keys -- "authentication," "sesison," etc -- are deprecated so it would probably be better to upgrade your modules than to cater to the old style.