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
TestArtifactResponseRefusesFutureIssueInstant
(t *testing.T)
sp_review_issue_instant_test.go:45
Function
TestArtifactResponseSizeLimit
The SOAP ArtifactResponse body read from the IDP is limited to MaxArtifactResponseSize bytes.
artifact_response_size_test.go:17
Function
TestAssertionConditionsRequireAssertionNamespace
Conditions in a foreign namespace are not the assertion's Conditions.
assertion_shape_test.go:38
Function
TestAssertionEncrypterBlockCipher
(t *testing.T)
identity_provider_assertion_encrypter_test.go:12
Function
TestAttributeNameIgnoresInheritedNamespaceDeclaration
A declaration on an ancestor is in scope for the element's children too, and must not leak into them either.
attribute_namespace_test.go:77
Function
TestAttributeNameIgnoresNamespaceDeclaration
A namespace declaration is not an attribute. encoding/xml reports xmlns:Name="..." as an attribute named Name, and exclusive canonicalization drops de
attribute_namespace_test.go:31
Function
TestAttributeNameNotReadFromNamespaceDeclarationAlone
(t *testing.T)
attribute_namespace_test.go:39
Function
TestAttributeNameRequiresUnqualifiedAttribute
An attribute in another namespace is not the SAML attribute of the same local name.
attribute_namespace_test.go:86
Function
TestAttributeQueryElement
(t *testing.T)
schema_attribute_query_test.go:31
Function
TestAttributeQueryRefusesFutureIssueInstant
(t *testing.T)
sp_review_issue_instant_test.go:54
Function
TestAttributeQueryRequiresHTTPS
The service provider sends attribute queries only to an https AttributeService, unless AllowInsecureSOAPEndpoints is set.
service_provider_soap_https_test.go:70
Function
TestAttributeQueryXMLRoundTrip
(t *testing.T)
schema_attribute_query_test.go:69
Function
TestAttributeValueEmptyIsNotNil
An empty element without xsi:nil is an empty string, not a null value.
attribute_value_test.go:47
Function
TestAttributeValueEncodingRoundTrip
saml-profiles §8.2.4: under the X.500/LDAP profile each <AttributeValue> carries x500:Encoding="LDAP" in the X500 profile namespace.
attribute_value_test.go:75
Function
TestAttributeValueIDPScopedAffiliationFriendlyName
saml-profiles §8.2.2: the FriendlyName SHOULD be one of the defined descriptors; for urn:oid:1.3.6.1.4.1.5923.1.1.1.9 that is eduPersonScopedAffiliati
attribute_value_test.go:113
Function
TestAttributeValueNilParse
saml-core §2.7.3.1.1: a null value is an empty <AttributeValue> carrying xsi:nil with a value of "true" or "1".
attribute_value_test.go:31
Function
TestAttributeValueNilRoundTrip
(t *testing.T)
attribute_value_test.go:56
Function
TestAttributeXMLRoundTrip
(t *testing.T)
schema_test.go:13
Function
TestAudienceRestrictionMarshal
(t *testing.T)
audience_restriction_test.go:97
Function
TestAudienceRestrictionUnmarshalKeepsAllAudiences
(t *testing.T)
audience_restriction_test.go:81
Function
TestAudienceRestrictionWithMultipleAudiences
An AudienceRestriction may list several audiences (saml-core §2.5.1.4). All of them are read, and the assertion is for this service provider when any
audience_restriction_test.go:35
Function
TestAudienceRestrictionsAllMustBeSatisfied
When an assertion has several AudienceRestrictions, every one of them must be satisfied (saml-core §2.5.1.4): each must name this service provider, wh
audience_restriction_test.go:137
Function
TestAuthenticatingAuthority
(t *testing.T)
schema_test.go:114
Function
TestAuthnContextMultiAuthenticatingAuthority
(t *testing.T)
schema_test.go:143
Function
TestAuthnContextNoAuthenticatingAuthority
(t *testing.T)
schema_test.go:127
Function
TestAuthnContextUnmarshalAuthenticatingAuthority
(t *testing.T)
schema_test.go:332
Function
TestAuthnStatementMarshalWithoutSessionNotOnOrAfter
(t *testing.T)
schema_test.go:80
Function
TestAuthnStatementXMLRoundTrip
(t *testing.T)
schema_test.go:53
Function
TestCBCDecryptAcceptsArbitraryPaddingBytes
XML Encryption padding is not PKCS#7: only the last byte, the count, is defined. Apache Santuario and .NET's EncryptedXml pad with random bytes (ISO 1
xmlenc/cbc_padding_test.go:33
Function
TestCBCDecryptBadPaddingReturnsErrDecryptionFailed
A bad padding count gets ErrDecryptionFailed, without detail, whatever is wrong with it.
xmlenc/cbc_padding_test.go:43
Function
TestCanDecrypt
(t *testing.T)
xmlenc/decrypt_test.go:15
Function
TestCanDecryptWithoutCertificate
(t *testing.T)
xmlenc/decrypt_test.go:59
Function
TestCanEncryptOAEP
(t *testing.T)
xmlenc/encrypt_test.go:15
Function
TestCanParseIDPMetadataWithRoleDescriptorCacheDuration
(t *testing.T)
metadata_test.go:391
Function
TestCanParseMetadata
(t *testing.T)
metadata_test.go:13
Function
TestCanParseShibbolethScopes
(t *testing.T)
metadata_shibmd_test.go:53
Function
TestCanParseTestshibMetadata
(t *testing.T)
samlsp/samlsp_test.go:56
Function
TestCanProduceMetadataEntityID
(t *testing.T)
service_provider_test.go:227
Function
TestCanProduceMetadataNoCerts
(t *testing.T)
service_provider_test.go:210
Function
TestCanProduceSPMetadata
(t *testing.T)
metadata_test.go:90
Function
TestCheckSOAPEndpoint
(t *testing.T)
identity_provider_logout_soap_test.go:489
Function
TestCheckXMLSignatureNotSHA1
(t *testing.T)
sha1_policy_test.go:198
Function
TestClassify
(t *testing.T)
errors_test.go:22
Function
TestClassifyCertificate
(t *testing.T)
errors_test.go:40
Function
TestConditionsNotOnOrAfterIgnoresNamespaceDeclaration
(t *testing.T)
attribute_namespace_test.go:63
Function
TestConditionsUnmarshalRecordsUnknownConditions
(t *testing.T)
conditions_unknown_test.go:61
Function
TestConformanceDeviation_DetachedSignatureAlgorithms
These tests pin the deliberate departures from the algorithms saml-conformance-2.0-os §4 and saml-bindings-2.0-os §3.4.4.1 list as mandatory, as docum
conformance_deviations_test.go:24
Function
TestConformanceDeviation_EncryptedAssertionAlgorithms
Triple DES block encryption and RSA-v1.5 key transport (saml-conformance §4.2) are not accepted by default: an EncryptedAssertion using either is refu
conformance_deviations_test.go:57
Function
TestConformanceDeviation_HMACSHA1XMLSignature
HMAC-SHA1 (saml-conformance §4.1) XML signatures are not accepted: the package has no shared-key configuration to verify them with.
conformance_deviations_test.go:39
Function
TestConformanceDeviation_OptInDecrypters
Triple DES block encryption and RSA-v1.5 key transport are mandatory in saml-conformance-2.0-os §4.2 but, as the README's "Conformance notes" say, are
xmlenc/conformance_deviations_test.go:16
Function
TestConsumeAssertionRequiresID
An assertion without an ID cannot be checked, so it is refused rather than recorded under the empty ID.
replay_cache_test.go:113
Function
TestContactPersonsReplacedAfterParsing
TestContactPersonsReplacedAfterParsing checks the documented way of replacing ContactPersons of parsed metadata: clearing the deprecated ContactPerson
schema_review_metadata_test.go:89
Function
TestCookieRequestTrackerDefaultIndexName
The default index is used in the cookie name as-is, so cookies set before the encoding was introduced are still found.
samlsp/request_tracker_relay_state_test.go:63
Function
TestCookieRequestTrackerRelayStateFunc
A RelayStateFunc may return a value that is not a valid cookie name, such as a path with a query. The request is still tracked: the cookie name encode
samlsp/request_tracker_relay_state_test.go:16
Function
TestCookieRequestTrackerSameSite
The IDP returns the SAML response with a cross-site POST to the ACS URL. Browsers treat a cookie without a SameSite attribute as SameSite=Lax and do n
samlsp/request_tracker_cookie_samesite_test.go:18
Function
TestCookieSameSite
(t *testing.T)
samlsp/session_cookie_test.go:15
Function
TestCookieSessionProviderRevocationStoreError
If the store cannot be read, the session is refused with an error that is not ErrNoSession, so that the request fails rather than starting a login tha
samlsp/middleware_soap_logout_test.go:427
Function
TestCookieSessionProviderTerminateSessions
(t *testing.T)
samlsp/middleware_soap_logout_test.go:440
Function
TestCovAttributeFromContext
--- session.go ---
samlsp/session_coverage_test.go:43
Function
TestCovAttributesGet
(t *testing.T)
samlsp/session_coverage_test.go:161
Function
TestCovCBCDecryptErrors
(t *testing.T)
xmlenc/cbc_coverage_test.go:79
Function
TestCovCBCEncryptErrors
(t *testing.T)
xmlenc/cbc_coverage_test.go:34
Function
TestCovCBCRoundTrip
(t *testing.T)
xmlenc/cbc_coverage_test.go:18
Function
TestCovCookieRequestTrackerGetTrackedRequest
(t *testing.T)
samlsp/session_coverage_test.go:412
Function
TestCovCookieRequestTrackerGetTrackedRequests
(t *testing.T)
samlsp/session_coverage_test.go:394
Function
TestCovCookieRequestTrackerStopTracking
(t *testing.T)
samlsp/session_coverage_test.go:377
Function
TestCovCookieRequestTrackerTrackRequest
(t *testing.T)
samlsp/session_coverage_test.go:339
Function
TestCovCookieSessionProviderCreateSession
(t *testing.T)
samlsp/session_coverage_test.go:183
Function
TestCovCookieSessionProviderCreateSessionTooLarge
(t *testing.T)
samlsp/session_coverage_test.go:249
Function
TestCovCookieSessionProviderDeleteSession
(t *testing.T)
samlsp/session_coverage_test.go:220
Function
TestCovCookieSessionProviderGetSession
(t *testing.T)
samlsp/session_coverage_test.go:274
Function
TestCovCreateSessionFromAssertion
(t *testing.T)
samlsp/middleware_coverage_test.go:203
Function
TestCovDecryptWithoutEncryptionMethod
(t *testing.T)
xmlenc/decrypt_coverage_test.go:19
Function
TestCovDefaultOnError
--- error.go ---
samlsp/samlsp_coverage_test.go:70
Function
TestCovDefaultServiceProvider
(t *testing.T)
samlsp/samlsp_coverage_test.go:195
Function
TestCovDefaultSigningMethodForKey
(t *testing.T)
samlsp/samlsp_coverage_test.go:186
Function
TestCovDeleteHandlersStoreErrors
(t *testing.T)
samlidp/handlers_coverage_test.go:84
Function
TestCovDeleteServiceRemovesProvider
(t *testing.T)
samlidp/handlers_coverage_test.go:177
Function
TestCovErrorStrings
(t *testing.T)
xmlenc/decrypt_coverage_test.go:12
Function
TestCovFetchMetadata
(t *testing.T)
samlsp/samlsp_coverage_test.go:106
Function
TestCovFuzz
(t *testing.T)
xmlenc/fuzz_coverage_test.go:54
Function
TestCovFuzzSeedsDoNotPanic
Malformed input must be refused with an error, never a panic.
xmlenc/fuzz_coverage_test.go:114
Function
TestCovGCMDecryptErrors
(t *testing.T)
xmlenc/gcm_coverage_test.go:109
Function
TestCovGCMEncryptErrors
(t *testing.T)
xmlenc/gcm_coverage_test.go:71
Function
TestCovGCMEncryptOutputFormat
The CipherValue is nonce || ciphertext || tag (XML Encryption 1.1 section 5.2.4), with the plaintext actually encrypted and no padding added, so other
xmlenc/gcm_coverage_test.go:37
Function
TestCovGCMGoldenRoundTrip
The golden GCM ciphertext decrypts back to its plaintext.
xmlenc/gcm_coverage_test.go:59
Function
TestCovGCMRoundTrip
(t *testing.T)
xmlenc/gcm_coverage_test.go:20
Function
TestCovGetCiphertext
(t *testing.T)
xmlenc/decrypt_coverage_test.go:25
Function
TestCovGetDefaultSigningMethod
--- new.go ---
samlsp/samlsp_coverage_test.go:158
Function
TestCovGetHandlersStoreErrors
(t *testing.T)
samlidp/handlers_coverage_test.go:59
Function
TestCovGetHandlersWriteErrors
(t *testing.T)
samlidp/handlers_coverage_test.go:71
Function
TestCovGetSPMetadata
(t *testing.T)
samlidp/samlidp_coverage_test.go:246
Function
TestCovGetSessionCookieStoreError
(t *testing.T)
samlidp/session_coverage_test.go:119
Function
TestCovGetSessionExpired
(t *testing.T)
samlidp/session_coverage_test.go:139
Function
TestCovGetSessionPopulatesUserFields
(t *testing.T)
samlidp/session_coverage_test.go:67
Function
TestCovGetSessionPutError
(t *testing.T)
samlidp/session_coverage_test.go:55
Function
TestCovGetSessionSecureCookieOverTLS
(t *testing.T)
samlidp/session_coverage_test.go:82
Function
TestCovGetSessionUnknownCookie
(t *testing.T)
samlidp/session_coverage_test.go:129
Function
TestCovHandleLoginBadForm
(t *testing.T)
samlidp/session_coverage_test.go:33
Function
TestCovHandleLoginEncodeError
(t *testing.T)
samlidp/session_coverage_test.go:47
← previous
next →
1,301–1,400 of 2,436, ranked by callers