@@ -15,17 +15,26 @@ Net::SAML2::Protocol::ArtifactResolve - ArtifactResolve protocol class.
1515
1616=head1 SYNOPSIS
1717
18- my $resolver = Net::SAML2::Binding::ArtifactResolve->new(
19- issuer => 'http://localhost:3000',
20- );
18+ my $resolver = Net::SAML2::Protocol::ArtifactResolve->new(
19+ artifact => 'yourartifact',
20+ destination => $idp->art_url('urn:oasis:names:tc:SAML:2.0:bindings:SOAP'), # https://idp.example.net/idp
21+ issuer => $sp->id, # https://you.example.com/auth/saml
22+ );
2123
22- my $response = $resolver->resolve(params->{SAMLart});
24+ my $binding = Net::SAML2::Binding::SOAP->new(...);
25+ $binding->request($resolved->as_xml);
2326
2427=head1 METHODS
2528
2629=cut
2730
28- =head2 new( ... )
31+ =head2 new(%args)
32+
33+ my $resolver = Net::SAML2::Protocol::ArtifactResolve->new(
34+ artifact => 'yourartifact',
35+ destination => $idp->art_url('urn:oasis:names:tc:SAML:2.0:bindings:SOAP'), # https://idp.example.net/idp
36+ issuer => $sp->id, # https://you.example.com/auth/saml
37+ );
2938
3039Constructor. Returns an instance of the ArtifactResolve request for
3140the given issuer and artifact.
@@ -36,16 +45,20 @@ Arguments:
3645
3746=item B<issuer >
3847
39- issuing SP's identity URI
48+ Issuing SP's identity URI
4049
4150=item B<artifact >
4251
43- artifact to be resolved
52+ Artifact to be resolved
4453
4554=item B<destination >
4655
4756IdP's identity URI
4857
58+ =item B<provider >
59+
60+ IdP's provider name
61+
4962=back
5063
5164=cut
@@ -60,14 +73,14 @@ has 'provider' => (
6073 predicate => ' has_provider' ,
6174);
6275
63- =head2 as_xml( )
76+ =head2 as_xml()
6477
6578Returns the ArtifactResolve request as XML.
6679
6780=cut
6881
6982sub as_xml {
70- my ( $self ) = @_ ;
83+ my $self = shift ;
7184
7285 my $x = XML::Generator-> new(' :pretty' );
7386 my $saml = [' saml' => URN_ASSERTION ];
0 commit comments