Authen::CAS::External::Library - Types library


Authen-CAS-External documentation Contained in the Authen-CAS-External distribution.

Index


Code Index:

NAME

Top

Authen::CAS::External::Library - Types library

VERSION

Top

This documentation refers to Authen::CAS::External::Library version 0.06

SYNOPSIS

Top

  use Authen::CAS::External::Library qw(ServiceTicket);
  # This will import ServiceTicket type into your namespace as well as some
  # helpers like to_ServiceTicket and is_ServiceTicket. See MooseX::Types
  # for more information.

DESCRIPTION

Top

This module provides types for Authen::CAS::External

METHODS

Top

No methods.

TYPES PROVIDED

Top

* ServiceTicket

Provides no coercions.

* TicketGrantingCookie

Provides no coercions.

DEPENDENCIES

Top

This module is dependent on the following modules:

* MooseX::Types 0.08
* MooseX::Types::Moose
* namespace::clean 0.04

AUTHOR

Top

Douglas Christopher Wilson, <doug at somethingdoug.com>

BUGS AND LIMITATIONS

Top

Please report any bugs or feature requests to bug-authen-cas-external at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Authen-CAS-External. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

I highly encourage the submission of bugs and enhancements to my modules.

LICENSE AND COPYRIGHT

Top


Authen-CAS-External documentation Contained in the Authen-CAS-External distribution.

package Authen::CAS::External::Library;

use 5.008001;
use strict;
use utf8;
use warnings 'all';

# Module metadata
our $AUTHORITY = 'cpan:DOUGDUDE';
our $VERSION   = '0.06';

use MooseX::Types 0.08 -declare => [qw(
	ServiceTicket
	TicketGrantingCookie
)];

# Import built-in types
use MooseX::Types::Moose qw(Int Str);

# Clean the imports are the end of scope
use namespace::clean 0.04 -except => [qw(meta)];

# Type definitions
subtype ServiceTicket,
	as Str,
	where { m{\A ST-.{1,256}}msx };

subtype TicketGrantingCookie,
	as Str,
	where { m{\A [A-Za-z0-9-]+ \z}msx };

1;

__END__