MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions2,436 in github.com/crewjam/saml

FunctionTestArtifactResponseRefusesFutureIssueInstant
(t *testing.T)
sp_review_issue_instant_test.go:45
FunctionTestArtifactResponseSizeLimit
The SOAP ArtifactResponse body read from the IDP is limited to MaxArtifactResponseSize bytes.
artifact_response_size_test.go:17
FunctionTestAssertionConditionsRequireAssertionNamespace
Conditions in a foreign namespace are not the assertion's Conditions.
assertion_shape_test.go:38
FunctionTestAssertionEncrypterBlockCipher
(t *testing.T)
identity_provider_assertion_encrypter_test.go:12
FunctionTestAttributeNameIgnoresInheritedNamespaceDeclaration
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
FunctionTestAttributeNameIgnoresNamespaceDeclaration
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
FunctionTestAttributeNameNotReadFromNamespaceDeclarationAlone
(t *testing.T)
attribute_namespace_test.go:39
FunctionTestAttributeNameRequiresUnqualifiedAttribute
An attribute in another namespace is not the SAML attribute of the same local name.
attribute_namespace_test.go:86
FunctionTestAttributeQueryElement
(t *testing.T)
schema_attribute_query_test.go:31
FunctionTestAttributeQueryRefusesFutureIssueInstant
(t *testing.T)
sp_review_issue_instant_test.go:54
FunctionTestAttributeQueryRequiresHTTPS
The service provider sends attribute queries only to an https AttributeService, unless AllowInsecureSOAPEndpoints is set.
service_provider_soap_https_test.go:70
FunctionTestAttributeQueryXMLRoundTrip
(t *testing.T)
schema_attribute_query_test.go:69
FunctionTestAttributeValueEmptyIsNotNil
An empty element without xsi:nil is an empty string, not a null value.
attribute_value_test.go:47
FunctionTestAttributeValueEncodingRoundTrip
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
FunctionTestAttributeValueIDPScopedAffiliationFriendlyName
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
FunctionTestAttributeValueNilParse
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
FunctionTestAttributeValueNilRoundTrip
(t *testing.T)
attribute_value_test.go:56
FunctionTestAttributeXMLRoundTrip
(t *testing.T)
schema_test.go:13
FunctionTestAudienceRestrictionMarshal
(t *testing.T)
audience_restriction_test.go:97
FunctionTestAudienceRestrictionUnmarshalKeepsAllAudiences
(t *testing.T)
audience_restriction_test.go:81
FunctionTestAudienceRestrictionWithMultipleAudiences
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
FunctionTestAudienceRestrictionsAllMustBeSatisfied
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
FunctionTestAuthenticatingAuthority
(t *testing.T)
schema_test.go:114
FunctionTestAuthnContextMultiAuthenticatingAuthority
(t *testing.T)
schema_test.go:143
FunctionTestAuthnContextNoAuthenticatingAuthority
(t *testing.T)
schema_test.go:127
FunctionTestAuthnContextUnmarshalAuthenticatingAuthority
(t *testing.T)
schema_test.go:332
FunctionTestAuthnStatementMarshalWithoutSessionNotOnOrAfter
(t *testing.T)
schema_test.go:80
FunctionTestAuthnStatementXMLRoundTrip
(t *testing.T)
schema_test.go:53
FunctionTestCBCDecryptAcceptsArbitraryPaddingBytes
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
FunctionTestCBCDecryptBadPaddingReturnsErrDecryptionFailed
A bad padding count gets ErrDecryptionFailed, without detail, whatever is wrong with it.
xmlenc/cbc_padding_test.go:43
FunctionTestCanDecrypt
(t *testing.T)
xmlenc/decrypt_test.go:15
FunctionTestCanDecryptWithoutCertificate
(t *testing.T)
xmlenc/decrypt_test.go:59
FunctionTestCanEncryptOAEP
(t *testing.T)
xmlenc/encrypt_test.go:15
FunctionTestCanParseIDPMetadataWithRoleDescriptorCacheDuration
(t *testing.T)
metadata_test.go:391
FunctionTestCanParseMetadata
(t *testing.T)
metadata_test.go:13
FunctionTestCanParseShibbolethScopes
(t *testing.T)
metadata_shibmd_test.go:53
FunctionTestCanParseTestshibMetadata
(t *testing.T)
samlsp/samlsp_test.go:56
FunctionTestCanProduceMetadataEntityID
(t *testing.T)
service_provider_test.go:227
FunctionTestCanProduceMetadataNoCerts
(t *testing.T)
service_provider_test.go:210
FunctionTestCanProduceSPMetadata
(t *testing.T)
metadata_test.go:90
FunctionTestCheckSOAPEndpoint
(t *testing.T)
identity_provider_logout_soap_test.go:489
FunctionTestCheckXMLSignatureNotSHA1
(t *testing.T)
sha1_policy_test.go:198
FunctionTestClassify
(t *testing.T)
errors_test.go:22
FunctionTestClassifyCertificate
(t *testing.T)
errors_test.go:40
FunctionTestConditionsNotOnOrAfterIgnoresNamespaceDeclaration
(t *testing.T)
attribute_namespace_test.go:63
FunctionTestConditionsUnmarshalRecordsUnknownConditions
(t *testing.T)
conditions_unknown_test.go:61
FunctionTestConformanceDeviation_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
FunctionTestConformanceDeviation_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
FunctionTestConformanceDeviation_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
FunctionTestConformanceDeviation_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
FunctionTestConsumeAssertionRequiresID
An assertion without an ID cannot be checked, so it is refused rather than recorded under the empty ID.
replay_cache_test.go:113
FunctionTestContactPersonsReplacedAfterParsing
TestContactPersonsReplacedAfterParsing checks the documented way of replacing ContactPersons of parsed metadata: clearing the deprecated ContactPerson
schema_review_metadata_test.go:89
FunctionTestCookieRequestTrackerDefaultIndexName
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
FunctionTestCookieRequestTrackerRelayStateFunc
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
FunctionTestCookieRequestTrackerSameSite
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
FunctionTestCookieSameSite
(t *testing.T)
samlsp/session_cookie_test.go:15
FunctionTestCookieSessionProviderRevocationStoreError
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
FunctionTestCookieSessionProviderTerminateSessions
(t *testing.T)
samlsp/middleware_soap_logout_test.go:440
FunctionTestCovAttributeFromContext
--- session.go ---
samlsp/session_coverage_test.go:43
FunctionTestCovAttributesGet
(t *testing.T)
samlsp/session_coverage_test.go:161
FunctionTestCovCBCDecryptErrors
(t *testing.T)
xmlenc/cbc_coverage_test.go:79
FunctionTestCovCBCEncryptErrors
(t *testing.T)
xmlenc/cbc_coverage_test.go:34
FunctionTestCovCBCRoundTrip
(t *testing.T)
xmlenc/cbc_coverage_test.go:18
FunctionTestCovCookieRequestTrackerGetTrackedRequest
(t *testing.T)
samlsp/session_coverage_test.go:412
FunctionTestCovCookieRequestTrackerGetTrackedRequests
(t *testing.T)
samlsp/session_coverage_test.go:394
FunctionTestCovCookieRequestTrackerStopTracking
(t *testing.T)
samlsp/session_coverage_test.go:377
FunctionTestCovCookieRequestTrackerTrackRequest
(t *testing.T)
samlsp/session_coverage_test.go:339
FunctionTestCovCookieSessionProviderCreateSession
(t *testing.T)
samlsp/session_coverage_test.go:183
FunctionTestCovCookieSessionProviderCreateSessionTooLarge
(t *testing.T)
samlsp/session_coverage_test.go:249
FunctionTestCovCookieSessionProviderDeleteSession
(t *testing.T)
samlsp/session_coverage_test.go:220
FunctionTestCovCookieSessionProviderGetSession
(t *testing.T)
samlsp/session_coverage_test.go:274
FunctionTestCovCreateSessionFromAssertion
(t *testing.T)
samlsp/middleware_coverage_test.go:203
FunctionTestCovDecryptWithoutEncryptionMethod
(t *testing.T)
xmlenc/decrypt_coverage_test.go:19
FunctionTestCovDefaultOnError
--- error.go ---
samlsp/samlsp_coverage_test.go:70
FunctionTestCovDefaultServiceProvider
(t *testing.T)
samlsp/samlsp_coverage_test.go:195
FunctionTestCovDefaultSigningMethodForKey
(t *testing.T)
samlsp/samlsp_coverage_test.go:186
FunctionTestCovDeleteHandlersStoreErrors
(t *testing.T)
samlidp/handlers_coverage_test.go:84
FunctionTestCovDeleteServiceRemovesProvider
(t *testing.T)
samlidp/handlers_coverage_test.go:177
FunctionTestCovErrorStrings
(t *testing.T)
xmlenc/decrypt_coverage_test.go:12
FunctionTestCovFetchMetadata
(t *testing.T)
samlsp/samlsp_coverage_test.go:106
FunctionTestCovFuzz
(t *testing.T)
xmlenc/fuzz_coverage_test.go:54
FunctionTestCovFuzzSeedsDoNotPanic
Malformed input must be refused with an error, never a panic.
xmlenc/fuzz_coverage_test.go:114
FunctionTestCovGCMDecryptErrors
(t *testing.T)
xmlenc/gcm_coverage_test.go:109
FunctionTestCovGCMEncryptErrors
(t *testing.T)
xmlenc/gcm_coverage_test.go:71
FunctionTestCovGCMEncryptOutputFormat
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
FunctionTestCovGCMGoldenRoundTrip
The golden GCM ciphertext decrypts back to its plaintext.
xmlenc/gcm_coverage_test.go:59
FunctionTestCovGCMRoundTrip
(t *testing.T)
xmlenc/gcm_coverage_test.go:20
FunctionTestCovGetCiphertext
(t *testing.T)
xmlenc/decrypt_coverage_test.go:25
FunctionTestCovGetDefaultSigningMethod
--- new.go ---
samlsp/samlsp_coverage_test.go:158
FunctionTestCovGetHandlersStoreErrors
(t *testing.T)
samlidp/handlers_coverage_test.go:59
FunctionTestCovGetHandlersWriteErrors
(t *testing.T)
samlidp/handlers_coverage_test.go:71
FunctionTestCovGetSPMetadata
(t *testing.T)
samlidp/samlidp_coverage_test.go:246
FunctionTestCovGetSessionCookieStoreError
(t *testing.T)
samlidp/session_coverage_test.go:119
FunctionTestCovGetSessionExpired
(t *testing.T)
samlidp/session_coverage_test.go:139
FunctionTestCovGetSessionPopulatesUserFields
(t *testing.T)
samlidp/session_coverage_test.go:67
FunctionTestCovGetSessionPutError
(t *testing.T)
samlidp/session_coverage_test.go:55
FunctionTestCovGetSessionSecureCookieOverTLS
(t *testing.T)
samlidp/session_coverage_test.go:82
FunctionTestCovGetSessionUnknownCookie
(t *testing.T)
samlidp/session_coverage_test.go:129
FunctionTestCovHandleLoginBadForm
(t *testing.T)
samlidp/session_coverage_test.go:33
FunctionTestCovHandleLoginEncodeError
(t *testing.T)
samlidp/session_coverage_test.go:47
← previousnext →1,301–1,400 of 2,436, ranked by callers