Module: BetterAuth::SSO::SAML::Assertions
- Defined in:
- lib/better_auth/sso/saml/assertions.rb
Class Method Summary collapse
Class Method Details
.count(xml) ⇒ Object
13 14 15 16 17 |
# File 'lib/better_auth/sso/saml/assertions.rb', line 13 def count(xml) assertions = xml.to_s.scan(/<(?:\w+:)?Assertion(?:\s|>|\/)/).length encrypted_assertions = xml.to_s.scan(/<(?:\w+:)?EncryptedAssertion(?:\s|>|\/)/).length {assertions: assertions, encrypted_assertions: encrypted_assertions, total: assertions + encrypted_assertions} end |
.validate_single_assertion!(saml_response) ⇒ Object
9 10 11 |
# File 'lib/better_auth/sso/saml/assertions.rb', line 9 def validate_single_assertion!(saml_response) BetterAuth::Plugins.sso_validate_single_saml_assertion!(saml_response) end |