Mojo-SAML

 view release on metacpan or  search on metacpan

lib/Mojo/SAML/Document.pm  view on Meta::CPAN

Calls L<Mojo::XMLSig/sign> with the XML payload and the given key.

Note that this is probably not that useful to call directly.

=head2 before_render

  $doc->before_render();

Called during rendering (see L</to_string>) before the document is rendered.
It is provided here to allow overriding by specific document types.
This method can be used to pre-process and/or validate the object before rendering.
The return value is ignored.

The default implementation does nothing.

=head2 build_template

  has template => sub { shift->build_template($string) };

Builds an instance of L<Mojo::Template> from a given string.
This is especially useful in the L</template> initializer.

lib/Mojolicious/Plugin/SAML.pm  view on Meta::CPAN


Boolean indicating if the request should be signed.
Defaults to true (though it should and probably will default to the IdP's preference).

=back

=head2 saml.response

  my $dom = $c->saml->response;

Returns the parsed (and validated) SAML response (as a L<Mojo:DOM> object).
This must only be called during the response to a SAML interaction, notably during L</handle_login>.

=head2 saml.response_success

  my $bool = $c->saml->response_success;

Returns a boolean indicating if the SAML response was succesful.
This must only be called during the response to a SAML interaction, notably during L</handle_login>.

=head2 saml.response_status



( run in 1.029 second using v1.01-cache-2.11-cpan-df04353d9ac )