class Saml::SamlMessage

Overview

SAML2 Message

Direct Known Subclasses

Defined in:

saml/saml_message.cr

Constant Summary

ASSERTION = "urn:oasis:names:tc:SAML:2.0:assertion"
BASE64_FORMAT = /\A([A-Za-z0-9+\/]{4})*([A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?\Z/
PROTOCOL = "urn:oasis:names:tc:SAML:2.0:protocol"

Instance Method Summary

Instance Method Detail

def id(document) #

@return [String|nil] Gets the ID attribute from the SAML Message if exists.


[View source]
def valid_saml?(document, soft = true) #

Validates the SAML Message against the specified schema. @param document [REXML::Document] The message that will be validated @param soft [Boolean] soft Enable or Disable the soft mode (In order to raise exceptions when the message is invalid or not) @return [Boolean] True if the XML is valid, otherwise False, if soft=True @raise [ValidationError] if soft == false and validation fails


[View source]
def version(document) #

@return [String|nil] Gets the Version attribute from the SAML Message if exists.


[View source]