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) : String | Nil #

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


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

Validates the message against the SAML 2.0 protocol schema. @raise [ValidationError] if soft == false and validation fails


[View source]
def version(document) : String | Nil #

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


[View source]