| 1 | package OpenID::Lite::Constants::Namespace; | ||
| 2 | |||
| 3 | 7 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 7 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 7 | ▶ | use base 'Exporter'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 7 | our %EXPORT_TAGS = ( | |
| 9 | all => [ | ||
| 10 | qw( | ||
| 11 | SPEC_2_0 | ||
| 12 | SPEC_1_0 | ||
| 13 | XRDS | ||
| 14 | XRD_2_0 | ||
| 15 | SERVER_2_0 | ||
| 16 | SIGNON_2_0 | ||
| 17 | SIGNON_1_1 | ||
| 18 | SIGNON_1_0 | ||
| 19 | IDENTIFIER_SELECT | ||
| 20 | RETURN_TO | ||
| 21 | ) | ||
| 22 | ] | ||
| 23 | ); | ||
| 24 | 7 | our @EXPORT_OK = map {@$_} values %EXPORT_TAGS; | |
| 25 | |||
| 26 | 7 | ▶ | use constant SPEC_2_0 => q{http://specs.openid.net/auth/2.0}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 27 | 7 | ▶ | use constant SPEC_1_0 => q{http://openid.net/xmlns/1.0}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | 7 | ▶ | use constant XRDS => q{xri://$xrds}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | 7 | ▶ | use constant XRD_2_0 => q{xri://$xrd*($v*2.0)}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 30 | 7 | ▶ | use constant SERVER_2_0 => q{http://specs.openid.net/auth/2.0/server}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | 7 | ▶ | use constant SIGNON_2_0 => q{http://specs.openid.net/auth/2.0/signon}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 32 | 7 | ▶ | use constant SIGNON_1_1 => q{http://openid.net/signon/1.1}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 33 | 7 | ▶ | use constant SIGNON_1_0 => q{http://openid.net/signon/1.0}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 34 | |||
| 35 | 7 | ▶ | use constant IDENTIFIER_SELECT => |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 36 | 7 | q{http://specs.openid.net/auth/2.0/identifier_select}; | |
| 37 | |||
| 38 | 7 | ▶ | use constant RETURN_TO => q{http://specs.openid.net/auth/2.0/return_to}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 39 | |||
| 40 | 7 | 1; | |
| 41 | |||
| 42 | =head1 NAME | ||
| 43 | |||
| 44 | OpenID::Lite::Constants::Namespace - Namespace constants | ||
| 45 | |||
| 46 | =head1 SYNOPSIS | ||
| 47 | |||
| 48 | use OpenID::Lite::Constants::Namespace qw(:all); | ||
| 49 | |||
| 50 | or | ||
| 51 | |||
| 52 | use OpenID::Lite::Constants::Namespace qw(SPEC_2_0 SERVER_2_0 SIGNON_2_0); | ||
| 53 | |||
| 54 | =head1 DESCRIPTION | ||
| 55 | |||
| 56 | This class provides constants represents namespaces that | ||
| 57 | is for OpenID service type. | ||
| 58 | |||
| 59 | =head1 CONSTANTS | ||
| 60 | |||
| 61 | =head2 SPEC_2_0 | ||
| 62 | |||
| 63 | http://specs.openid.net/auth/2.0 | ||
| 64 | |||
| 65 | =head2 SPEC_1_0 | ||
| 66 | |||
| 67 | http://openid.net/xmlns/1.0 | ||
| 68 | |||
| 69 | =head2 XRDS | ||
| 70 | |||
| 71 | xri://$xrds | ||
| 72 | |||
| 73 | =head2 XRD_2_0 | ||
| 74 | |||
| 75 | xri://$xrd*($v*2.0) | ||
| 76 | |||
| 77 | =head2 SERVER_2_0 | ||
| 78 | |||
| 79 | http://specs.openid.net/auth/2.0/server | ||
| 80 | |||
| 81 | =head2 SIGNON_2_0 | ||
| 82 | |||
| 83 | use constant SIGNON_2_0 => q{http://specs.openid.net/auth/2.0/signon}; | ||
| 84 | |||
| 85 | =head2 SIGNON_1_1 | ||
| 86 | |||
| 87 | http://openid.net/signon/1.1 | ||
| 88 | |||
| 89 | =head2 SIGNON_1_0 | ||
| 90 | |||
| 91 | http://openid.net/signon/1.0 | ||
| 92 | |||
| 93 | =head2 IDENTIFIER_SELECT | ||
| 94 | |||
| 95 | http://specs.openid.net/auth/2.0/identifier_select | ||
| 96 | |||
| 97 | =head2 RETURN_TO | ||
| 98 | |||
| 99 | http://specs.openid.net/auth/2.0/return_to | ||
| 100 | |||
| 101 | =head1 AUTHOR | ||
| 102 | |||
| 103 | Lyo Kato, E<lt>lyo.kato@gmail.comE<gt> | ||
| 104 | |||
| 105 | =head1 COPYRIGHT AND LICENSE | ||
| 106 | |||
| 107 | Copyright (C) 2009 by Lyo Kato | ||
| 108 | |||
| 109 | This library is free software; you can redistribute it and/or modify | ||
| 110 | it under the same terms as Perl itself, either Perl version 5.8.8 or, | ||
| 111 | at your option, any later version of Perl 5 you may have available. | ||
| 112 | |||
| 113 | =cut | ||