| 1 | package OpenID::Lite::RelyingParty::DirectCommunication; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use Any::Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | with 'OpenID::Lite::Role::AgentHandler'; | |||||||||
| 5 | 1 | with 'OpenID::Lite::Role::ErrorHandler'; | |||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use HTTP::Request; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use OpenID::Lite::Message; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 0 | ▶ | sub send_request { | ||||||||
|
Subroutine
send_request: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 11 | 0 | my ( $self, $url, $params ) = @_; | |||||||||
| 12 | 0 | my $req = HTTP::Request->new( POST => $url ); | |||||||||
| 13 | 0 | $req->header( 'Content-Type' => q{application/x-www-form-urlencoded} ); | |||||||||
| 14 | 0 | $req->content( $params->to_post_body ); | |||||||||
| 15 | 0 | my $res = $self->agent->request($req); | |||||||||
| 16 | 0 | ▶ | if ($res->is_success) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 0 | my $params = OpenID::Lite::Message->from_key_value($res->content); | |||||||||
| 18 | 0 | return $params; | |||||||||
| 19 | } | ||||||||||
| 20 | 0 | return $self->ERROR($res->status_line); | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 1 | ▶ | no Any::Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 24 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||
| 25 | 1 | 1; | |||||||||
| 26 | |||||||||||