MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions2,436 in github.com/crewjam/saml

FunctionTestSpecSig_Conformance_4_2_AESWithRSAOAEP
saml-conformance-2.0-os §4.2 (lines 250-253) lists AES-128 and AES-256 block encryption and RSA-OAEP key transport as mandatory. Encrypted assertions
spec_signature_encryption_test.go:610
FunctionTestSpecSig_Conformance_4_2_MandatoryEncryptionAlgorithms
saml-conformance-2.0-os §4.2 (lines 250-253): "Block Encryption: TRIPLE DES, AES-128, AES-256. Key Transport: RSA-v1.5, RSA-OAEP" MUST be implemented.
xmlenc/spec_conformance_test.go:15
FunctionTestStatementsInAssertionNamespace
The same elements in the SAML assertion namespace are still read, whatever prefix the document binds to it.
statement_namespace_test.go:51
FunctionTestStatementsRequireAssertionNamespace
Statements, attributes and their children outside the SAML assertion namespace are not part of the assertion. A consumer that reads the subject-id att
statement_namespace_test.go:15
FunctionTestStatusDetailChildrenRoundTrip
(t *testing.T)
schema_signature_test.go:111
FunctionTestStatusDetailMarshalsEtreeChildren
(t *testing.T)
schema_signature_test.go:155
FunctionTestStdLoggerSatisfiesInterface
A *log.Logger, which DefaultLogger is, satisfies Interface and its print methods write where it is pointed.
logger/logger_test.go:20
FunctionTestStoredLegacyServiceWithoutSignatureUnchanged
(t *testing.T)
samlidp/signed_service_store_test.go:170
FunctionTestStoredServiceWithSignatureLoads
(t *testing.T)
samlidp/signed_service_store_test.go:135
FunctionTestSubjectBaseIDRoundTrip
Subject.BaseID is read and written in the place the schema gives it, before SubjectConfirmation.
subject_identifiers_test.go:139
FunctionTestSubjectConfirmationDataInResponseToIgnoresNamespaceDeclaration
(t *testing.T)
attribute_namespace_test.go:57
FunctionTestSubjectConfirmationDataNotBeforeRelaxed
TestSubjectConfirmationDataNotBeforeRelaxed checks that NotBefore is read with RelaxedTime like NotOnOrAfter, and that unset times are left out by Mar
schema_review_metadata_test.go:63
FunctionTestSubjectConfirmationDataNotOnOrAfterIgnoresNamespaceDeclaration
(t *testing.T)
attribute_namespace_test.go:45
FunctionTestSubjectConfirmationDataRecipientIgnoresNamespaceDeclaration
(t *testing.T)
attribute_namespace_test.go:51
FunctionTestSubjectConfirmationMethodIgnoresNamespaceDeclaration
(t *testing.T)
attribute_namespace_test.go:69
FunctionTestSubjectEncryptedIDRoundTrip
(t *testing.T)
encrypted_id_test.go:53
FunctionTestSubjectNameIDRequiresAssertionNamespace
A NameID outside the SAML assertion namespace is not the subject's NameID.
assertion_shape_test.go:13
FunctionTestTrackedRequestOutlivesMaxIssueDelay
A tracked request outlives saml.MaxIssueDelay: a user who spends several minutes at the IdP (MFA, password reset) still comes back to a request the AC
samlsp/tracked_request_max_age_test.go:19
FunctionTestTripleDESDecryptUsesItsBlockSize
TripleDES takes the IV at its own 8 byte block size, not AES's 16.
xmlenc/short_ciphertext_test.go:55
FunctionTestTripleDESIsNotRegisteredForDecryption
tripledes-cbc is not offered for decryption by default, because 3DES is a legacy cipher; applications opt in with RegisterDecrypter(TripleDES).
xmlenc/short_ciphertext_test.go:67
FunctionTestTripleDESKeySize
tripledes-cbc takes a 24 byte key (XML Encryption section 5.2.1).
xmlenc/tripledes_test.go:15
FunctionTestTripleDESMatchesCryptoDES
TripleDES is DES-EDE3: it decrypts what crypto/des's 3DES encrypts in CBC mode, and all three 8 byte subkeys matter.
xmlenc/tripledes_test.go:24
FunctionTestUnknownItemsAreNotFound
Requests for items that do not exist are answered with 404 Not Found, without logging an error.
samlidp/not_found_test.go:16
FunctionTestUnmarshalledAttributeFieldsStartUpperCase
sanitizeAttributesForUnmarshal keeps prefixes that start with a lower case letter, which is safe only while no attribute field of a type the service p
attribute_namespace_test.go:123
FunctionTestUnregisterDecrypterRefusesCBC
TestUnregisterDecrypterRefusesCBC checks that an application can refuse CBC, so that GCM ciphertext relabelled as CBC is not decrypted in CBC mode.
xmlenc/registry_test.go:14
FunctionTestUnsignedResponseMayCarryOnlyOneAssertion
(t *testing.T)
unsigned_response_test.go:25
FunctionTestUnsignedResponseWithManyAssertionsRejectedCheaply
Each assertion of an unsigned Response had its signature checked, which copies the namespace context in scope: 4,000 assertions under 1,000 declaratio
unsigned_response_test.go:16
FunctionTestUsersCrud
(t *testing.T)
samlidp/user_test.go:13
FunctionTestValidateAcceptsRepeatedSiblingNamespaces
Declarations repeated on sibling elements, as some IdPs write xmlns:xs and xmlns:xsi on every AttributeValue, are never in scope together.
internal/xmlroundtrip/limits_test.go:23
FunctionTestValidateAcceptsStableDocuments
(t *testing.T)
internal/xmlroundtrip/validate_test.go:13
FunctionTestValidateAllocationsBoundedByInputSize
Validate used to allocate a new encoder and decoder, with 4 KiB buffers, for every token: about 2,500 bytes for every byte of input made of empty elem
internal/xmlroundtrip/validate_test.go:72
FunctionTestValidateAssertionAcceptsCompleteAssertion
(t *testing.T)
required_conditions_test.go:42
FunctionTestValidateAssertionMissingElements
An assertion missing its optional elements fails validation with an error instead of a nil-pointer panic.
assertion_shape_test.go:49
FunctionTestValidateAssertionRequiresAudienceRestriction
Without an AudienceRestriction an assertion issued to any service provider trusting the same IdP would be accepted here.
required_conditions_test.go:68
FunctionTestValidateAssertionRequiresBearerSubjectConfirmation
Without a SubjectConfirmation the Recipient, InResponseTo and expiry checks never run, so the SAML web browser SSO profile (saml-profiles §4.1.4.2) re
required_conditions_test.go:51
FunctionTestValidateAttributeQueryAssertionNotOnOrAfter
An assertion answering an attribute query follows the same NotOnOrAfter rules as a login assertion (saml-core §2.5.1.2): an omitted Conditions NotOnOr
service_provider_attribute_query_test.go:728
FunctionTestValidateAudienceRestrictionHookStillDecides
A ValidateAudienceRestriction hook still replaces the default check.
required_conditions_test.go:79
FunctionTestValidateDepthLimit
(t *testing.T)
internal/xmlroundtrip/limits_test.go:28
FunctionTestValidateLogoutRequest
(t *testing.T)
redirect_binding_test.go:322
FunctionTestValidateLogoutRequestBaseID
The SP accepts a BaseID in an IdP-initiated LogoutRequest only if AcceptLogoutRequestBaseID is set.
logout_request_identifiers_test.go:295
FunctionTestValidateLogoutRequestEncryptedID
The service provider decrypts an EncryptedID in an IdP-initiated LogoutRequest with its own key.
logout_request_session_indexes_test.go:223
FunctionTestValidateLogoutRequestFormWithoutRootElement
The no-root checks added after the reports of nil pointer dereferences on a body with no root element, for the paths that had no test.
no_root_test.go:15
FunctionTestValidateLogoutRequestRefusesReplay
The service provider records each LogoutRequest it accepts in its ReplayCache and refuses the same request again, with each binding.
logout_request_replay_test.go:16
FunctionTestValidateLogoutRequestReplayCacheDetails
(t *testing.T)
logout_request_replay_test.go:61
FunctionTestValidateLogoutRequestWithoutReplayCache
Without a ReplayCache, the same LogoutRequest is accepted again, as before.
logout_request_replay_test.go:51
FunctionTestValidateLogoutResponseWithoutIssuer
A LogoutResponse without an Issuer is refused instead of panicking.
assertion_shape_test.go:95
FunctionTestValidateRefusesTooManyNamespacesInScope
(t *testing.T)
internal/xmlroundtrip/limits_test.go:12
FunctionTestValidateRejectsMalformedDocuments
(t *testing.T)
internal/xmlroundtrip/validate_test.go:62
FunctionTestValidateRejectsUnstableTokens
The constructs behind CVE-2020-29509, CVE-2020-29510 and CVE-2020-29511 (names with extra colons, empty prefixes or local names, directives containing
internal/xmlroundtrip/validate_test.go:42
FunctionTestValidateSOAPLogoutRequestAccepts
(t *testing.T)
service_provider_soap_logout_test.go:125
FunctionTestValidateSOAPLogoutRequestBodyLimit
(t *testing.T)
service_provider_soap_logout_test.go:242
FunctionTestValidateSOAPLogoutRequestRefusesReplay
(t *testing.T)
service_provider_soap_logout_test.go:218
FunctionTestValidateSOAPLogoutRequestRejects
(t *testing.T)
service_provider_soap_logout_test.go:150
FunctionTestValidateSOAPLogoutRequestRejectsSHA1
(t *testing.T)
service_provider_soap_logout_test.go:232
FunctionTestValidateSignatureOnLargeAssertion
A correctly signed assertion larger than the traversal budget validates.
signature_size_test.go:80
FunctionTestValidateSignatureOnTamperedLargeAssertion
A tampered large assertion is refused with an error, not a panic.
signature_size_test.go:88
FunctionTestValidateUnknownConditionsNotCalledWithoutUnknownConditions
The hook is not consulted when every condition is understood.
conditions_unknown_test.go:128
FunctionTestValidatedElementIsWhatTheSignatureCovers
validatedElement returns what the signature covers, parsed from the bytes that were digested: a namespace declaration added after signing, which exclu
signed_element_test.go:16
FunctionTestWithSessionIndexes
(t *testing.T)
logout_request_session_indexes_test.go:76
FunctionTestWriteSOAPFault
(t *testing.T)
service_provider_soap_logout_test.go:275
FunctionTestXHTMLIdPForms
(t *testing.T)
xhtml_forms_test.go:82
FunctionTestXHTMLLoginForm
(t *testing.T)
samlidp/xhtml_forms_test.go:54
FunctionTestXHTMLLogoutPage
(t *testing.T)
samlidp/xhtml_forms_test.go:75
FunctionTestXHTMLPostBindingPage
(t *testing.T)
samlsp/xhtml_forms_test.go:56
FunctionTestXHTMLReplayPage
(t *testing.T)
samlsp/xhtml_forms_test.go:72
FunctionTestXHTMLServiceProviderForms
(t *testing.T)
xhtml_forms_test.go:138
FunctionTestXswPermutationEightIsRejected
(t *testing.T)
service_provider_test.go:1675
FunctionTestXswPermutationFiveIsRejected
(t *testing.T)
service_provider_test.go:1589
FunctionTestXswPermutationFourIsRejected
(t *testing.T)
service_provider_test.go:1559
FunctionTestXswPermutationNineIsRejected
(t *testing.T)
service_provider_test.go:1706
FunctionTestXswPermutationOneIsRejected
(t *testing.T)
service_provider_test.go:1472
FunctionTestXswPermutationSevenIsRejected
(t *testing.T)
service_provider_test.go:1644
FunctionTestXswPermutationSixIsRejected
(t *testing.T)
service_provider_test.go:1617
FunctionTestXswPermutationThreeIsRejected
(t *testing.T)
service_provider_test.go:1526
FunctionTestXswPermutationTwoIsRejected
(t *testing.T)
service_provider_test.go:1499
MethodTrackRequest
(w http.ResponseWriter, r *http.Request, id string)
samlsp/middleware_coverage_test.go:52
MethodTrackRequest
TrackRequest starts tracking the SAML request with the given ID. It returns an `index` that should be used as the RelayState in the SAMl request flow.
samlsp/request_tracker_cookie.go:80
MethodUnmarshalJSON
UnmarshalJSON implements json.Unmarshaler. A Service stored with RawMetadata gets its Metadata parsed from it. A Service stored by an earlier version
samlidp/service.go:48
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler.
schema.go:88
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:269
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:410
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:629
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:730
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:812
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:919
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler, reading every child element into Children. Text between the children is ignored. Each child keeps its prefix
schema.go:1115
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1239
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1323
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1436
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1499
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1574
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1637
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1740
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1992
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
metadata.go:88
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
metadata.go:254
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
metadata.go:528
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
metadata.go:639
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
metadata.go:678
MethodUnmarshalXML
UnmarshalXML implements xml.Unmarshaler
metadata.go:784
← previousnext →2,301–2,400 of 2,436, ranked by callers