Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewjam/saml
/ functions
Functions
2,436 in github.com/crewjam/saml
⨍
Functions
2,436
◇
Types & classes
281
Function
TestSpecSig_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
Function
TestSpecSig_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
Function
TestStatementsInAssertionNamespace
The same elements in the SAML assertion namespace are still read, whatever prefix the document binds to it.
statement_namespace_test.go:51
Function
TestStatementsRequireAssertionNamespace
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
Function
TestStatusDetailChildrenRoundTrip
(t *testing.T)
schema_signature_test.go:111
Function
TestStatusDetailMarshalsEtreeChildren
(t *testing.T)
schema_signature_test.go:155
Function
TestStdLoggerSatisfiesInterface
A *log.Logger, which DefaultLogger is, satisfies Interface and its print methods write where it is pointed.
logger/logger_test.go:20
Function
TestStoredLegacyServiceWithoutSignatureUnchanged
(t *testing.T)
samlidp/signed_service_store_test.go:170
Function
TestStoredServiceWithSignatureLoads
(t *testing.T)
samlidp/signed_service_store_test.go:135
Function
TestSubjectBaseIDRoundTrip
Subject.BaseID is read and written in the place the schema gives it, before SubjectConfirmation.
subject_identifiers_test.go:139
Function
TestSubjectConfirmationDataInResponseToIgnoresNamespaceDeclaration
(t *testing.T)
attribute_namespace_test.go:57
Function
TestSubjectConfirmationDataNotBeforeRelaxed
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
Function
TestSubjectConfirmationDataNotOnOrAfterIgnoresNamespaceDeclaration
(t *testing.T)
attribute_namespace_test.go:45
Function
TestSubjectConfirmationDataRecipientIgnoresNamespaceDeclaration
(t *testing.T)
attribute_namespace_test.go:51
Function
TestSubjectConfirmationMethodIgnoresNamespaceDeclaration
(t *testing.T)
attribute_namespace_test.go:69
Function
TestSubjectEncryptedIDRoundTrip
(t *testing.T)
encrypted_id_test.go:53
Function
TestSubjectNameIDRequiresAssertionNamespace
A NameID outside the SAML assertion namespace is not the subject's NameID.
assertion_shape_test.go:13
Function
TestTrackedRequestOutlivesMaxIssueDelay
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
Function
TestTripleDESDecryptUsesItsBlockSize
TripleDES takes the IV at its own 8 byte block size, not AES's 16.
xmlenc/short_ciphertext_test.go:55
Function
TestTripleDESIsNotRegisteredForDecryption
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
Function
TestTripleDESKeySize
tripledes-cbc takes a 24 byte key (XML Encryption section 5.2.1).
xmlenc/tripledes_test.go:15
Function
TestTripleDESMatchesCryptoDES
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
Function
TestUnknownItemsAreNotFound
Requests for items that do not exist are answered with 404 Not Found, without logging an error.
samlidp/not_found_test.go:16
Function
TestUnmarshalledAttributeFieldsStartUpperCase
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
Function
TestUnregisterDecrypterRefusesCBC
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
Function
TestUnsignedResponseMayCarryOnlyOneAssertion
(t *testing.T)
unsigned_response_test.go:25
Function
TestUnsignedResponseWithManyAssertionsRejectedCheaply
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
Function
TestUsersCrud
(t *testing.T)
samlidp/user_test.go:13
Function
TestValidateAcceptsRepeatedSiblingNamespaces
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
Function
TestValidateAcceptsStableDocuments
(t *testing.T)
internal/xmlroundtrip/validate_test.go:13
Function
TestValidateAllocationsBoundedByInputSize
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
Function
TestValidateAssertionAcceptsCompleteAssertion
(t *testing.T)
required_conditions_test.go:42
Function
TestValidateAssertionMissingElements
An assertion missing its optional elements fails validation with an error instead of a nil-pointer panic.
assertion_shape_test.go:49
Function
TestValidateAssertionRequiresAudienceRestriction
Without an AudienceRestriction an assertion issued to any service provider trusting the same IdP would be accepted here.
required_conditions_test.go:68
Function
TestValidateAssertionRequiresBearerSubjectConfirmation
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
Function
TestValidateAttributeQueryAssertionNotOnOrAfter
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
Function
TestValidateAudienceRestrictionHookStillDecides
A ValidateAudienceRestriction hook still replaces the default check.
required_conditions_test.go:79
Function
TestValidateDepthLimit
(t *testing.T)
internal/xmlroundtrip/limits_test.go:28
Function
TestValidateLogoutRequest
(t *testing.T)
redirect_binding_test.go:322
Function
TestValidateLogoutRequestBaseID
The SP accepts a BaseID in an IdP-initiated LogoutRequest only if AcceptLogoutRequestBaseID is set.
logout_request_identifiers_test.go:295
Function
TestValidateLogoutRequestEncryptedID
The service provider decrypts an EncryptedID in an IdP-initiated LogoutRequest with its own key.
logout_request_session_indexes_test.go:223
Function
TestValidateLogoutRequestFormWithoutRootElement
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
Function
TestValidateLogoutRequestRefusesReplay
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
Function
TestValidateLogoutRequestReplayCacheDetails
(t *testing.T)
logout_request_replay_test.go:61
Function
TestValidateLogoutRequestWithoutReplayCache
Without a ReplayCache, the same LogoutRequest is accepted again, as before.
logout_request_replay_test.go:51
Function
TestValidateLogoutResponseWithoutIssuer
A LogoutResponse without an Issuer is refused instead of panicking.
assertion_shape_test.go:95
Function
TestValidateRefusesTooManyNamespacesInScope
(t *testing.T)
internal/xmlroundtrip/limits_test.go:12
Function
TestValidateRejectsMalformedDocuments
(t *testing.T)
internal/xmlroundtrip/validate_test.go:62
Function
TestValidateRejectsUnstableTokens
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
Function
TestValidateSOAPLogoutRequestAccepts
(t *testing.T)
service_provider_soap_logout_test.go:125
Function
TestValidateSOAPLogoutRequestBodyLimit
(t *testing.T)
service_provider_soap_logout_test.go:242
Function
TestValidateSOAPLogoutRequestRefusesReplay
(t *testing.T)
service_provider_soap_logout_test.go:218
Function
TestValidateSOAPLogoutRequestRejects
(t *testing.T)
service_provider_soap_logout_test.go:150
Function
TestValidateSOAPLogoutRequestRejectsSHA1
(t *testing.T)
service_provider_soap_logout_test.go:232
Function
TestValidateSignatureOnLargeAssertion
A correctly signed assertion larger than the traversal budget validates.
signature_size_test.go:80
Function
TestValidateSignatureOnTamperedLargeAssertion
A tampered large assertion is refused with an error, not a panic.
signature_size_test.go:88
Function
TestValidateUnknownConditionsNotCalledWithoutUnknownConditions
The hook is not consulted when every condition is understood.
conditions_unknown_test.go:128
Function
TestValidatedElementIsWhatTheSignatureCovers
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
Function
TestWithSessionIndexes
(t *testing.T)
logout_request_session_indexes_test.go:76
Function
TestWriteSOAPFault
(t *testing.T)
service_provider_soap_logout_test.go:275
Function
TestXHTMLIdPForms
(t *testing.T)
xhtml_forms_test.go:82
Function
TestXHTMLLoginForm
(t *testing.T)
samlidp/xhtml_forms_test.go:54
Function
TestXHTMLLogoutPage
(t *testing.T)
samlidp/xhtml_forms_test.go:75
Function
TestXHTMLPostBindingPage
(t *testing.T)
samlsp/xhtml_forms_test.go:56
Function
TestXHTMLReplayPage
(t *testing.T)
samlsp/xhtml_forms_test.go:72
Function
TestXHTMLServiceProviderForms
(t *testing.T)
xhtml_forms_test.go:138
Function
TestXswPermutationEightIsRejected
(t *testing.T)
service_provider_test.go:1675
Function
TestXswPermutationFiveIsRejected
(t *testing.T)
service_provider_test.go:1589
Function
TestXswPermutationFourIsRejected
(t *testing.T)
service_provider_test.go:1559
Function
TestXswPermutationNineIsRejected
(t *testing.T)
service_provider_test.go:1706
Function
TestXswPermutationOneIsRejected
(t *testing.T)
service_provider_test.go:1472
Function
TestXswPermutationSevenIsRejected
(t *testing.T)
service_provider_test.go:1644
Function
TestXswPermutationSixIsRejected
(t *testing.T)
service_provider_test.go:1617
Function
TestXswPermutationThreeIsRejected
(t *testing.T)
service_provider_test.go:1526
Function
TestXswPermutationTwoIsRejected
(t *testing.T)
service_provider_test.go:1499
Method
TrackRequest
(w http.ResponseWriter, r *http.Request, id string)
samlsp/middleware_coverage_test.go:52
Method
TrackRequest
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
Method
UnmarshalJSON
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
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler.
schema.go:88
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:269
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:410
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:629
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:730
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:812
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:919
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler, reading every child element into Children. Text between the children is ignored. Each child keeps its prefix
schema.go:1115
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1239
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1323
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1436
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1499
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1574
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1637
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1740
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
schema.go:1992
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
metadata.go:88
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
metadata.go:254
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
metadata.go:528
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
metadata.go:639
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
metadata.go:678
Method
UnmarshalXML
UnmarshalXML implements xml.Unmarshaler
metadata.go:784
← previous
next →
2,301–2,400 of 2,436, ranked by callers