Skip to content

Commit 1b07070

Browse files
committed
Add response_status to Assertion object
1 parent bcee1ea commit 1b07070

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

lib/Net/SAML2/Protocol/Assertion.pm

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ Net::SAML2::Protocol::Assertion - SAML2 assertion object
2121
2222
=cut
2323

24-
has 'attributes' => (isa => 'HashRef[ArrayRef]', is => 'ro', required => 1);
25-
has 'session' => (isa => 'Str', is => 'ro', required => 1);
26-
has 'nameid' => (isa => 'Str', is => 'ro', required => 1);
27-
has 'not_before' => (isa => DateTime, is => 'ro', required => 1);
28-
has 'not_after' => (isa => DateTime, is => 'ro', required => 1);
29-
has 'audience' => (isa => NonEmptySimpleStr, is => 'ro', required => 1);
30-
has 'xpath' => (isa => 'XML::XPath', is => 'ro', required => 1);
31-
has 'in_response_to' => (isa => 'Str', is => 'ro', required => 1);
24+
has 'attributes' => (isa => 'HashRef[ArrayRef]', is => 'ro', required => 1);
25+
has 'session' => (isa => 'Str', is => 'ro', required => 1);
26+
has 'nameid' => (isa => 'Str', is => 'ro', required => 1);
27+
has 'not_before' => (isa => DateTime, is => 'ro', required => 1);
28+
has 'not_after' => (isa => DateTime, is => 'ro', required => 1);
29+
has 'audience' => (isa => NonEmptySimpleStr, is => 'ro', required => 1);
30+
has 'xpath' => (isa => 'XML::XPath', is => 'ro', required => 1);
31+
has 'in_response_to' => (isa => 'Str', is => 'ro', required => 1);
32+
has 'response_status' => (isa => 'Str', is => 'ro', required => 1);
3233

3334
=head1 METHODS
3435
@@ -98,6 +99,7 @@ sub new_from_xml {
9899
not_after => $not_after,
99100
xpath => $xpath,
100101
in_response_to => $xpath->findvalue('//saml:Subject/saml:SubjectConfirmation/saml:SubjectConfirmationData/@InResponseTo')->value,
102+
response_status => $xpath->findvalue('//saml2p:Response/saml2p:Status/saml2p:StatusCode/@Value')->value,
101103
);
102104

103105
return $self;

0 commit comments

Comments
 (0)