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
TestParseXMLResponseAllocationsBoundedByInputSize
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
Function
TestParseXMLResponseErrorKinds
(t *testing.T)
errors_test.go:102
Function
TestParseXMLResponseIgnoresNamespaceDeclarationInSignedAssertion
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
Function
TestParseXMLResponseReadsTheSignedElement
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
Function
TestParseXMLResponseStillRequiresBearer
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
Function
TestParseXMLResponseUnknownConditions
(t *testing.T)
conditions_unknown_test.go:78
Function
TestParseXMLResponseValidateUnknownConditions
(t *testing.T)
conditions_unknown_test.go:105
Function
TestParseXMLResponseVerifiesAssertionSignatureInSignedResponse
(t *testing.T)
inner_signature_test.go:47
Function
TestParseXMLResponseWithPlainSignatureVerifierReadsTheMessage
A SignatureVerifier that only reports an error leaves the message as received, as before.
signed_element_test.go:92
Function
TestPostWithNonce
(t *testing.T)
post_nonce_test.go:12
Function
TestPropagatedLogoutResponseStatusIgnoresNamespaceDeclaration
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
Function
TestProtocolMessageSignatureRoundTrips
(t *testing.T)
schema_signature_test.go:24
Function
TestProtocolMessageWithoutSignatureHasNilSignature
(t *testing.T)
schema_signature_test.go:102
Function
TestPutServiceReplacesEntityLoadedFromStore
A server started on an existing store tracks the stored services by ID.
samlidp/service_registration_test.go:79
Function
TestPutServiceReplacesPreviousEntity
Replacing a service's metadata with metadata of another entity ID stops accepting the old entity ID.
samlidp/service_registration_test.go:47
Function
TestPutServiceStoresNestedSignaturesReadably
(t *testing.T)
samlidp/signed_service_store_test.go:92
Function
TestPutServiceStoresSignedMetadataReadably
(t *testing.T)
samlidp/signed_service_store_test.go:80
Function
TestPutServiceWithSPMetadataCertificates
(t *testing.T)
samlidp/signed_sp_metadata_test.go:139
Function
TestPutServiceWithSPMetadataCertificatesStoresReadably
(t *testing.T)
samlidp/signed_service_store_test.go:184
Function
TestPutServiceWithoutSPMetadataCertificatesAcceptsUnsignedMetadata
(t *testing.T)
samlidp/signed_sp_metadata_test.go:112
Function
TestPutServiceWithoutSPMetadataCertificatesIgnoresSignature
(t *testing.T)
samlidp/signed_sp_metadata_test.go:125
Function
TestQueryAttributes
(t *testing.T)
service_provider_attribute_query_test.go:641
Function
TestQueryAttributesErrors
(t *testing.T)
service_provider_attribute_query_test.go:668
Function
TestRecordSessionParticipantFails
(t *testing.T)
identity_provider_logout_propagation_test.go:435
Function
TestRedirectBindingECDSASignature
(t *testing.T)
redirect_binding_test.go:291
Function
TestRedirectBindingLogoutResponseSignature
(t *testing.T)
redirect_binding_test.go:103
Function
TestRedirectBindingOutgoingSignature
(t *testing.T)
redirect_binding_test.go:421
Function
TestRegisteredDigestMethodURIs
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
Function
TestRegisteredGCMDecrypters
TestRegisteredGCMDecrypters asserts that every AES-GCM key size is available, mirroring what cbc.go already provides for AES-CBC.
xmlenc/algorithms_test.go:37
Function
TestRegistryConcurrentUse
TestRegistryConcurrentUse checks, under -race, that registering algorithms while Decrypt looks them up is safe.
xmlenc/registry_test.go:42
Function
TestRejectExpiredIDPMetadata
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
Function
TestRelaxedTimeFormat
(t *testing.T)
time_test.go:13
Function
TestRelaxedTimeParse
(t *testing.T)
time_test.go:31
Function
TestRenamedPrefixKeepsElementNamespace
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
Function
TestReplayedSignatureCostBoundedWithinNamespaceLimit
Within the limit, the cost of the same attack grows linearly.
xml_structure_budget_test.go:59
Function
TestReplayedSignatureWithManyNamespacesRefusedBeforeCanonicalization
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
Function
TestRequestedAuthnContext
(t *testing.T)
schema_test.go:101
Function
TestRequestedAuthnContextDeprecatedSingleClassRef
(t *testing.T)
schema_test.go:392
Function
TestRequestedAuthnContextMultipleClassRefs
(t *testing.T)
schema_test.go:350
Function
TestRequireSignedResponseForCBC
(t *testing.T)
cbc_integrity_test.go:87
Function
TestRequireSignedResponseForCBCArtifactResponse
(t *testing.T)
cbc_integrity_test.go:125
Function
TestRequireSignedResponseForCBCAttributeQuery
(t *testing.T)
cbc_integrity_test.go:150
Function
TestRequireSignedResponseForCBCOffByDefault
By default, an unsigned Response carrying a CBC EncryptedAssertion whose assertion is signed inside the encryption is still accepted.
cbc_integrity_test.go:75
Function
TestResponseEncryptedAssertionRoundTrips
(t *testing.T)
schema_signature_test.go:77
Function
TestRevocationKeys
(t *testing.T)
samlsp/middleware_soap_logout_test.go:530
Function
TestRoleDescriptorCacheDurationAndValidUntil
TestRoleDescriptorCacheDurationAndValidUntil checks that the cacheDuration and validUntil attributes of a generic md:RoleDescriptor are read and writt
schema_review_metadata_test.go:17
Function
TestRoleDescriptorDurationsRoundTrip
(t *testing.T)
metadata_test.go:200
Function
TestRoleDescriptorOmitsUnsetDurations
(t *testing.T)
metadata_test.go:311
Function
TestSLOBaseID
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
Function
TestSLODoesNotEndOtherUsersSession
(t *testing.T)
samlidp/logout_test.go:150
Function
TestSLOPostWithoutSessionCookie
(t *testing.T)
samlidp/logout_test.go:128
Function
TestSLORedirectWithSessionCookie
(t *testing.T)
samlidp/logout_test.go:93
Function
TestSLORejectsUnsignedRequest
(t *testing.T)
samlidp/logout_test.go:169
Function
TestSLOSeveralSessionIndexes
(t *testing.T)
samlidp/logout_session_indexes_test.go:14
Function
TestSOAPHTTPClientDefault
(t *testing.T)
sp_review_soap_redirect_test.go:61
Function
TestSOAPHTTPClientKeepsCallerRedirectPolicy
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
Function
TestSOAPHTTPClientRefusesDowngradeRedirect
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
Function
TestSOAPLogoutEndsSessionsAndPropagates
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
Function
TestSOAPLogoutOption
samlidp accepts and advertises SOAP logout only with Options.SOAPLogout.
samlidp/logout_soap_test.go:240
Function
TestSOAPLogoutRefusedByDefault
By default, a SOAP LogoutRequest is refused and ends no session.
samlidp/logout_soap_test.go:266
Function
TestSOAPLogoutRequestEndToEnd
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
Function
TestSOAPLogoutRequestRequiresHTTPS
The service provider sends SOAP LogoutRequests only to an https SingleLogoutService, unless AllowInsecureSOAPEndpoints is set.
service_provider_soap_https_test.go:28
Function
TestSOAPLogoutWithoutSessionIndexEndsEverySession
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
Function
TestSOAPSingleLogoutServiceMetadata
The SP metadata advertises a SOAP SingleLogoutService only when asked to.
samlsp/middleware_soap_logout_test.go:548
Function
TestSPArtifactBounds
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
Function
TestSPArtifactResponseDestinationIsTheACS
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
Function
TestSPArtifactWithoutIDPMetadata
A misconfigured SP without IDPMetadata returns an error for an artifact instead of panicking.
sp_review_nil_idp_metadata_test.go:16
Function
TestSPAssertionSubjectBaseID
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
Function
TestSPAssertionSubjectBaseIDWithNameIDRefused
saml-core §2.4.1: BaseID, NameID and EncryptedID are alternatives.
subject_identifiers_test.go:128
Function
TestSPAssertionSubjectWithoutIdentifierRefused
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
Function
TestSPAuthnContextClassRefComparator
(t *testing.T)
service_provider_test.go:2469
Function
TestSPAuthnRequestAcsIndex
(t *testing.T)
acs_index_test.go:16
Function
TestSPCanHandleEntraIDResponse
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
Function
TestSPCanHandleOktaResponseEncryptedAssertionBothSigned
(t *testing.T)
service_provider_test.go:765
Function
TestSPCanHandleOktaResponseEncryptedSignedAssertion
(t *testing.T)
service_provider_test.go:724
Function
TestSPCanHandleOktaSignedResponseEncryptedAssertion
(t *testing.T)
service_provider_test.go:684
Function
TestSPCanHandleOneloginResponse
(t *testing.T)
service_provider_test.go:601
Function
TestSPCanHandlePlaintextResponse
(t *testing.T)
service_provider_test.go:806
Function
TestSPCanParseResponse
(t *testing.T)
service_provider_test.go:937
Function
TestSPCanProcessResponseWithoutDestination
(t *testing.T)
service_provider_test.go:1084
Function
TestSPCanProduceMetadataWithBothCerts
(t *testing.T)
service_provider_test.go:188
Function
TestSPCanProduceMetadataWithBothLougoutBindings
(t *testing.T)
service_provider_test.go:262
Function
TestSPCanProduceMetadataWithEncryptionCert
(t *testing.T)
service_provider_test.go:169
Function
TestSPCanProduceMetadataWithNoLougoutBindings
(t *testing.T)
service_provider_test.go:244
Function
TestSPCanProducePostLogoutRequest
(t *testing.T)
service_provider_test.go:478
Function
TestSPCanProducePostLogoutResponse
(t *testing.T)
service_provider_test.go:555
Function
TestSPCanProducePostRequest
(t *testing.T)
service_provider_test.go:347
Function
TestSPCanProduceRedirectLogoutRequest
(t *testing.T)
service_provider_test.go:526
Function
TestSPCanProduceRedirectLogoutResponse
(t *testing.T)
service_provider_test.go:576
Function
TestSPCanProduceRedirectRequest
(t *testing.T)
service_provider_test.go:318
Function
TestSPCanProduceSignedRequestPostBinding
(t *testing.T)
service_provider_test.go:427
Function
TestSPCanProduceSignedRequestRedirectBinding
(t *testing.T)
service_provider_test.go:368
Function
TestSPCanSetAuthenticationNameIDFormat
(t *testing.T)
service_provider_test.go:82
Function
TestSPCanSetScoping
(t *testing.T)
service_provider_test.go:123
Function
TestSPClockIsScopedPerServiceProvider
(t *testing.T)
service_provider_test.go:2292
Function
TestSPDecryptionKeysNoneFits
When no key decrypts the assertion, the error names each key tried.
service_provider_decryption_keys_test.go:134
Function
TestSPDecryptsEncryptedAttributes
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
Function
TestSPDecryptsSubjectConfirmationEncryptedID
(t *testing.T)
encrypted_id_test.go:166
Function
TestSPDecryptsSubjectEncryptedID
(t *testing.T)
encrypted_id_test.go:114
Function
TestSPDecryptsSubjectEncryptedIDWithDecryptionKeys
(t *testing.T)
encrypted_id_test.go:153
← previous
next →
1,901–2,000 of 2,436, ranked by callers