« blib/lib/Jifty/Plugin/Authentication/CAS/Dispatcher.pm
↑ Summary
/home/cpancover/.cpan/CPAN/MyConfig.pm »
| 1 | package Jifty::Plugin::Authentication::CAS::Mixin::Model::User; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use Jifty::DBI::Schema; | ||
| 5 | use base 'Jifty::DBI::Record::Plugin'; | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Jifty::Plugin::Authentication::CAS::Mixin::Model::User - CAS mixin for User model | ||
| 10 | |||
| 11 | =head1 DESCRIPTION | ||
| 12 | |||
| 13 | L<Jifty::Plugin::Authentication::CAS> mixin for the User model. Provides an 'cas_id' column. | ||
| 14 | |||
| 15 | =cut | ||
| 16 | |||
| 17 | our @EXPORT = qw(has_alternative_auth); | ||
| 18 | |||
| 19 | use Jifty::Plugin::Authentication::CAS::Record schema { | ||
| 20 | |||
| 21 | column cas_id => | ||
| 22 | type is 'text', | ||
| 23 | label is 'CAS ID', | ||
| 24 | is distinct, | ||
| 25 | is immutable; | ||
| 26 | |||
| 27 | }; | ||
| 28 | |||
| 29 | =head2 has_alternative_auth | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||
| 33 | sub has_alternative_auth { 1 } | ||
| 34 | |||
| 35 | 1; |