Convert everything not actually a plugin to now live in the
[catagits/Catalyst-Plugin-Authentication.git] / lib / Catalyst / Authentication / Realm / Compatibility.pm
diff --git a/lib/Catalyst/Authentication/Realm/Compatibility.pm b/lib/Catalyst/Authentication/Realm/Compatibility.pm
new file mode 100644 (file)
index 0000000..bceba97
--- /dev/null
@@ -0,0 +1,42 @@
+package Catalyst::Authentication::Realm::Compatibility;
+
+use strict;
+use warnings;
+
+use base qw/Catalyst::Authentication::Realm/;
+
+## very funky - the problem here is that we can't do real realm initialization
+## but we need a real realm object to function.  So - we kinda fake it - we 
+## create an empty object - 
+sub new {
+    my ($class, $realmname, $config, $app) = @_;
+    
+    my $self = { config => $config };
+    bless $self, $class;
+    
+    $self->name($realmname);
+    
+    return $self;
+}
+
+__PACKAGE__;
+
+__END__
+
+=pod
+
+=head1 NAME
+
+Catalyst::Authentication::Realm::Compatibility - Compatibility realm object
+
+=head1 DESCRIPTION
+
+An empty realm object for compatibility reasons.
+
+=head1 METHODS
+
+=head2 new( )
+
+Returns a, basically empty, realm object.
+
+=cut