## make classdata where it is used.
$app->mk_classdata( '_auth_realms' => {});
- my $cfg = $app->config->{'authentication'} ||= {};
+ my $cfg = $app->config->{'Plugin::Authentication'} ||= $app->config->{'authentication'} ||= {};
$cfg->{use_session} = 1;
$c->res->body( "ok" );
}
-__PACKAGE__->config->{authentication} = {
+__PACKAGE__->config->{'Plugin::Authentication'} = {
default_realm => 'members',
realms => {
members => {