MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions2,436 in github.com/crewjam/saml

FunctionTestParseXMLResponseAllocationsBoundedByInputSize
The well-formedness check runs on every message before its signature is checked. It used to allocate a new encoder and decoder for every token, about
parse_allocations_test.go:16
FunctionTestParseXMLResponseErrorKinds
(t *testing.T)
errors_test.go:102
FunctionTestParseXMLResponseIgnoresNamespaceDeclarationInSignedAssertion
End to end: a declaration added to an attribute of a validly signed assertion leaves the signature valid but must not change the attribute.
attribute_namespace_test.go:172
FunctionTestParseXMLResponseReadsTheSignedElement
The service provider reads a signed Response or Assertion from the element the signature check returns, not from the one it received.
signed_element_test.go:62
FunctionTestParseXMLResponseStillRequiresBearer
The browser SSO profile still requires a bearer SubjectConfirmation: an assertion shaped like an attribute query answer does not log anyone in.
service_provider_attribute_query_test.go:597
FunctionTestParseXMLResponseUnknownConditions
(t *testing.T)
conditions_unknown_test.go:78
FunctionTestParseXMLResponseValidateUnknownConditions
(t *testing.T)
conditions_unknown_test.go:105
FunctionTestParseXMLResponseVerifiesAssertionSignatureInSignedResponse
(t *testing.T)
inner_signature_test.go:47
FunctionTestParseXMLResponseWithPlainSignatureVerifierReadsTheMessage
A SignatureVerifier that only reports an error leaves the message as received, as before.
signed_element_test.go:92
FunctionTestPostWithNonce
(t *testing.T)
post_nonce_test.go:12
FunctionTestPropagatedLogoutResponseStatusIgnoresNamespaceDeclaration
The IdP reads a propagated LogoutResponse from what its enveloped signature covers: a namespace declaration added after signing, which encoding/xml wo
identity_provider_logout_propagation_test.go:615
FunctionTestProtocolMessageSignatureRoundTrips
(t *testing.T)
schema_signature_test.go:24
FunctionTestProtocolMessageWithoutSignatureHasNilSignature
(t *testing.T)
schema_signature_test.go:102
FunctionTestPutServiceReplacesEntityLoadedFromStore
A server started on an existing store tracks the stored services by ID.
samlidp/service_registration_test.go:79
FunctionTestPutServiceReplacesPreviousEntity
Replacing a service's metadata with metadata of another entity ID stops accepting the old entity ID.
samlidp/service_registration_test.go:47
FunctionTestPutServiceStoresNestedSignaturesReadably
(t *testing.T)
samlidp/signed_service_store_test.go:92
FunctionTestPutServiceStoresSignedMetadataReadably
(t *testing.T)
samlidp/signed_service_store_test.go:80
FunctionTestPutServiceWithSPMetadataCertificates
(t *testing.T)
samlidp/signed_sp_metadata_test.go:139
FunctionTestPutServiceWithSPMetadataCertificatesStoresReadably
(t *testing.T)
samlidp/signed_service_store_test.go:184
FunctionTestPutServiceWithoutSPMetadataCertificatesAcceptsUnsignedMetadata
(t *testing.T)
samlidp/signed_sp_metadata_test.go:112
FunctionTestPutServiceWithoutSPMetadataCertificatesIgnoresSignature
(t *testing.T)
samlidp/signed_sp_metadata_test.go:125
FunctionTestQueryAttributes
(t *testing.T)
service_provider_attribute_query_test.go:641
FunctionTestQueryAttributesErrors
(t *testing.T)
service_provider_attribute_query_test.go:668
FunctionTestRecordSessionParticipantFails
(t *testing.T)
identity_provider_logout_propagation_test.go:435
FunctionTestRedirectBindingECDSASignature
(t *testing.T)
redirect_binding_test.go:291
FunctionTestRedirectBindingLogoutResponseSignature
(t *testing.T)
redirect_binding_test.go:103
FunctionTestRedirectBindingOutgoingSignature
(t *testing.T)
redirect_binding_test.go:421
FunctionTestRegisteredDigestMethodURIs
TestRegisteredDigestMethodURIs asserts that the digest methods are registered under the URIs assigned by RFC 4051, which is what other implementations
xmlenc/algorithms_test.go:19
FunctionTestRegisteredGCMDecrypters
TestRegisteredGCMDecrypters asserts that every AES-GCM key size is available, mirroring what cbc.go already provides for AES-CBC.
xmlenc/algorithms_test.go:37
FunctionTestRegistryConcurrentUse
TestRegistryConcurrentUse checks, under -race, that registering algorithms while Decrypt looks them up is safe.
xmlenc/registry_test.go:42
FunctionTestRejectExpiredIDPMetadata
saml-metadata-2.0-os §4.3.1: metadata must not be relied on past its validUntil. With RejectExpiredIDPMetadata the SP refuses messages whose signing c
metadata_expiry_test.go:17
FunctionTestRelaxedTimeFormat
(t *testing.T)
time_test.go:13
FunctionTestRelaxedTimeParse
(t *testing.T)
time_test.go:31
FunctionTestRenamedPrefixKeepsElementNamespace
A prefix that could be an attribute field's name is renamed, and the element that uses it is still read in the right namespace.
attribute_namespace_test.go:113
FunctionTestReplayedSignatureCostBoundedWithinNamespaceLimit
Within the limit, the cost of the same attack grows linearly.
xml_structure_budget_test.go:59
FunctionTestReplayedSignatureWithManyNamespacesRefusedBeforeCanonicalization
A validly signed assertion replayed over a body of many namespace declarations and elements cost time and memory quadratic in its size (78 KB: 0.3 s a
xml_structure_budget_test.go:50
FunctionTestRequestedAuthnContext
(t *testing.T)
schema_test.go:101
FunctionTestRequestedAuthnContextDeprecatedSingleClassRef
(t *testing.T)
schema_test.go:392
FunctionTestRequestedAuthnContextMultipleClassRefs
(t *testing.T)
schema_test.go:350
FunctionTestRequireSignedResponseForCBC
(t *testing.T)
cbc_integrity_test.go:87
FunctionTestRequireSignedResponseForCBCArtifactResponse
(t *testing.T)
cbc_integrity_test.go:125
FunctionTestRequireSignedResponseForCBCAttributeQuery
(t *testing.T)
cbc_integrity_test.go:150
FunctionTestRequireSignedResponseForCBCOffByDefault
By default, an unsigned Response carrying a CBC EncryptedAssertion whose assertion is signed inside the encryption is still accepted.
cbc_integrity_test.go:75
FunctionTestResponseEncryptedAssertionRoundTrips
(t *testing.T)
schema_signature_test.go:77
FunctionTestRevocationKeys
(t *testing.T)
samlsp/middleware_soap_logout_test.go:530
FunctionTestRoleDescriptorCacheDurationAndValidUntil
TestRoleDescriptorCacheDurationAndValidUntil checks that the cacheDuration and validUntil attributes of a generic md:RoleDescriptor are read and writt
schema_review_metadata_test.go:17
FunctionTestRoleDescriptorDurationsRoundTrip
(t *testing.T)
metadata_test.go:200
FunctionTestRoleDescriptorOmitsUnsetDurations
(t *testing.T)
metadata_test.go:311
FunctionTestSLOBaseID
Sessions are stored by NameID, so a LogoutRequest whose principal is a BaseID ends no session and is answered with StatusResponder.
samlidp/logout_base_id_test.go:17
FunctionTestSLODoesNotEndOtherUsersSession
(t *testing.T)
samlidp/logout_test.go:150
FunctionTestSLOPostWithoutSessionCookie
(t *testing.T)
samlidp/logout_test.go:128
FunctionTestSLORedirectWithSessionCookie
(t *testing.T)
samlidp/logout_test.go:93
FunctionTestSLORejectsUnsignedRequest
(t *testing.T)
samlidp/logout_test.go:169
FunctionTestSLOSeveralSessionIndexes
(t *testing.T)
samlidp/logout_session_indexes_test.go:14
FunctionTestSOAPHTTPClientDefault
(t *testing.T)
sp_review_soap_redirect_test.go:61
FunctionTestSOAPHTTPClientKeepsCallerRedirectPolicy
A redirect between https locations is still followed with a caller's client, and the caller's own redirect policy still applies.
sp_review_soap_redirect_test.go:38
FunctionTestSOAPHTTPClientRefusesDowngradeRedirect
A SOAP message must not be re-sent in the clear because an https endpoint redirected to an http one.
sp_review_soap_redirect_test.go:18
FunctionTestSOAPLogoutEndsSessionsAndPropagates
An SP logs the user out over SOAP: samlidp ends the session without its cookie, the other SOAP participant is logged out over SOAP, and the front-chan
samlidp/logout_soap_test.go:168
FunctionTestSOAPLogoutOption
samlidp accepts and advertises SOAP logout only with Options.SOAPLogout.
samlidp/logout_soap_test.go:240
FunctionTestSOAPLogoutRefusedByDefault
By default, a SOAP LogoutRequest is refused and ends no session.
samlidp/logout_soap_test.go:266
FunctionTestSOAPLogoutRequestEndToEnd
The SP accepts a LogoutRequest that this repository's IdentityProvider signed, sent in a SOAP envelope over HTTP, and answers it with a SOAP envelope
service_provider_soap_logout_test.go:78
FunctionTestSOAPLogoutRequestRequiresHTTPS
The service provider sends SOAP LogoutRequests only to an https SingleLogoutService, unless AllowInsecureSOAPEndpoints is set.
service_provider_soap_https_test.go:28
FunctionTestSOAPLogoutWithoutSessionIndexEndsEverySession
Without a SessionIndex, a SOAP LogoutRequest ends every session of its NameID, and the logout is propagated to their participants: here a front-channe
samlidp/logout_soap_test.go:217
FunctionTestSOAPSingleLogoutServiceMetadata
The SP metadata advertises a SOAP SingleLogoutService only when asked to.
samlsp/middleware_soap_logout_test.go:548
FunctionTestSPArtifactBounds
An oversized or non-printable SAMLart is refused before it reaches the ReplayCache or the IdP, even when non-standard artifacts are allowed.
sp_review_artifact_bounds_test.go:17
FunctionTestSPArtifactResponseDestinationIsTheACS
The Response inside an ArtifactResponse is checked against the ACS URL, not against the IdP's ArtifactResolutionService the SP posted to.
sp_review_artifact_destination_test.go:15
FunctionTestSPArtifactWithoutIDPMetadata
A misconfigured SP without IDPMetadata returns an error for an artifact instead of panicking.
sp_review_nil_idp_metadata_test.go:16
FunctionTestSPAssertionSubjectBaseID
An assertion whose Subject identifies the principal with a BaseID is refused unless AcceptAssertionBaseID is set: its content is defined by an extensi
subject_identifiers_test.go:64
FunctionTestSPAssertionSubjectBaseIDWithNameIDRefused
saml-core §2.4.1: BaseID, NameID and EncryptedID are alternatives.
subject_identifiers_test.go:128
FunctionTestSPAssertionSubjectWithoutIdentifierRefused
saml-core §2.4.1 and saml-profiles §4.1.4.2: the Subject of a login assertion identifies the principal. One with no BaseID, NameID or EncryptedID used
subject_identifiers_test.go:115
FunctionTestSPAuthnContextClassRefComparator
(t *testing.T)
service_provider_test.go:2469
FunctionTestSPAuthnRequestAcsIndex
(t *testing.T)
acs_index_test.go:16
FunctionTestSPCanHandleEntraIDResponse
TestSPCanHandleEntraIDResponse covers responses shaped the way Microsoft Entra ID (Azure AD) sends them, for each of its "Signing Option" settings, wi
entra_id_test.go:31
FunctionTestSPCanHandleOktaResponseEncryptedAssertionBothSigned
(t *testing.T)
service_provider_test.go:765
FunctionTestSPCanHandleOktaResponseEncryptedSignedAssertion
(t *testing.T)
service_provider_test.go:724
FunctionTestSPCanHandleOktaSignedResponseEncryptedAssertion
(t *testing.T)
service_provider_test.go:684
FunctionTestSPCanHandleOneloginResponse
(t *testing.T)
service_provider_test.go:601
FunctionTestSPCanHandlePlaintextResponse
(t *testing.T)
service_provider_test.go:806
FunctionTestSPCanParseResponse
(t *testing.T)
service_provider_test.go:937
FunctionTestSPCanProcessResponseWithoutDestination
(t *testing.T)
service_provider_test.go:1084
FunctionTestSPCanProduceMetadataWithBothCerts
(t *testing.T)
service_provider_test.go:188
FunctionTestSPCanProduceMetadataWithBothLougoutBindings
(t *testing.T)
service_provider_test.go:262
FunctionTestSPCanProduceMetadataWithEncryptionCert
(t *testing.T)
service_provider_test.go:169
FunctionTestSPCanProduceMetadataWithNoLougoutBindings
(t *testing.T)
service_provider_test.go:244
FunctionTestSPCanProducePostLogoutRequest
(t *testing.T)
service_provider_test.go:478
FunctionTestSPCanProducePostLogoutResponse
(t *testing.T)
service_provider_test.go:555
FunctionTestSPCanProducePostRequest
(t *testing.T)
service_provider_test.go:347
FunctionTestSPCanProduceRedirectLogoutRequest
(t *testing.T)
service_provider_test.go:526
FunctionTestSPCanProduceRedirectLogoutResponse
(t *testing.T)
service_provider_test.go:576
FunctionTestSPCanProduceRedirectRequest
(t *testing.T)
service_provider_test.go:318
FunctionTestSPCanProduceSignedRequestPostBinding
(t *testing.T)
service_provider_test.go:427
FunctionTestSPCanProduceSignedRequestRedirectBinding
(t *testing.T)
service_provider_test.go:368
FunctionTestSPCanSetAuthenticationNameIDFormat
(t *testing.T)
service_provider_test.go:82
FunctionTestSPCanSetScoping
(t *testing.T)
service_provider_test.go:123
FunctionTestSPClockIsScopedPerServiceProvider
(t *testing.T)
service_provider_test.go:2292
FunctionTestSPDecryptionKeysNoneFits
When no key decrypts the assertion, the error names each key tried.
service_provider_decryption_keys_test.go:134
FunctionTestSPDecryptsEncryptedAttributes
saml-core §2.7.3.2: an AttributeStatement may carry EncryptedAttribute elements. They are decrypted with the SP's keys into Attributes, in document or
subject_identifiers_test.go:166
FunctionTestSPDecryptsSubjectConfirmationEncryptedID
(t *testing.T)
encrypted_id_test.go:166
FunctionTestSPDecryptsSubjectEncryptedID
(t *testing.T)
encrypted_id_test.go:114
FunctionTestSPDecryptsSubjectEncryptedIDWithDecryptionKeys
(t *testing.T)
encrypted_id_test.go:153
← previousnext →1,901–2,000 of 2,436, ranked by callers