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
TestMetadataWithoutSignatureHasNilSignature
(t *testing.T)
metadata_signature_test.go:100
Function
TestMiddlewareCanParseResponse
(t *testing.T)
samlsp/middleware_test.go:437
Function
TestMiddlewareCanProduceMetadata
(t *testing.T)
samlsp/middleware_test.go:132
Function
TestMiddlewareCanServeSignedMetadata
(t *testing.T)
samlsp/signed_metadata_test.go:18
Function
TestMiddlewareDefaultCookieDomainIPv4
(t *testing.T)
samlsp/middleware_test.go:462
Function
TestMiddlewareDefaultCookieDomainIPv6
(t *testing.T)
samlsp/middleware_test.go:485
Function
TestMiddlewareFourOhFour
(t *testing.T)
samlsp/middleware_test.go:144
Function
TestMiddlewareHandlesInvalidResponse
(t *testing.T)
samlsp/middleware_test.go:551
Function
TestMiddlewareIDPInitiatedRelayStateRedirect
With AllowIDPInitiated and no tracked request, the middleware follows RelayState only when it is a path on this site.
samlsp/middleware_test.go:957
Function
TestMiddlewareQueryAttributes
(t *testing.T)
samlsp/middleware_attribute_query_test.go:245
Function
TestMiddlewareQueryAttributesErrors
(t *testing.T)
samlsp/middleware_attribute_query_test.go:276
Function
TestMiddlewareRefusesReplayedResponse
With Options.ReplayCache set, the ACS accepts a response once and refuses the same response again.
samlsp/replay_cache_test.go:172
Function
TestMiddlewareRejectsInvalidCookie
(t *testing.T)
samlsp/middleware_test.go:528
Function
TestMiddlewareRejectsInvalidRelayState
(t *testing.T)
samlsp/middleware_test.go:505
Function
TestMiddlewareRequireAccountBadCreds
(t *testing.T)
samlsp/middleware_test.go:297
Function
TestMiddlewareRequireAccountCreds
(t *testing.T)
samlsp/middleware_test.go:268
Function
TestMiddlewareRequireAccountExpiredCreds
(t *testing.T)
samlsp/middleware_test.go:323
Function
TestMiddlewareRequireAccountNilSessionNilError
(t *testing.T)
samlsp/middleware_test.go:635
Function
TestMiddlewareRequireAccountNoCreds
(t *testing.T)
samlsp/middleware_test.go:155
Function
TestMiddlewareRequireAccountNoCredsPostBinding
(t *testing.T)
samlsp/middleware_test.go:203
Function
TestMiddlewareRequireAccountNoCredsPostBindingScriptNonce
(t *testing.T)
samlsp/middleware_test.go:234
Function
TestMiddlewareRequireAccountNoCredsSecure
(t *testing.T)
samlsp/middleware_test.go:180
Function
TestMiddlewareRequireAccountNoCredsSimpleSignBinding
(t *testing.T)
samlsp/simplesign_test.go:84
Function
TestMiddlewareRequireAccountPanicOnRequestToACS
(t *testing.T)
samlsp/middleware_test.go:353
Function
TestMiddlewareRequireAccountSessionAndError
(t *testing.T)
samlsp/middleware_test.go:586
Function
TestMiddlewareRequireAccountWrappedErrNoSession
(t *testing.T)
samlsp/middleware_test.go:611
Function
TestMiddlewareRequireAttribute
(t *testing.T)
samlsp/middleware_test.go:366
Function
TestMiddlewareRequireAttributeMissingAccount
(t *testing.T)
samlsp/middleware_test.go:420
Function
TestMiddlewareRequireAttributeNotPresent
(t *testing.T)
samlsp/middleware_test.go:402
Function
TestMiddlewareRequireAttributeWrongValue
(t *testing.T)
samlsp/middleware_test.go:384
Function
TestMiddlewareSignedMetadataErrorIsServerError
(t *testing.T)
samlsp/signed_metadata_test.go:58
Function
TestMiddleware_WithCryptoSignerE2E
(t *testing.T)
samlsp/middleware_test.go:673
Function
TestMiscCovDurationOverflow
(t *testing.T)
misc_coverage_test.go:17
Function
TestMiscCovRandomBytesPanicsOnReadError
(t *testing.T)
misc_coverage_test.go:56
Function
TestMiscCovRelaxedTimeEmpty
(t *testing.T)
misc_coverage_test.go:35
Function
TestMiscCovSaferFlateReaderClose
(t *testing.T)
misc_coverage_test.go:41
Function
TestMultipleAssertions
(t *testing.T)
service_provider_test.go:2146
Function
TestNameIDFormat
(t *testing.T)
schema_test.go:40
Function
TestNameIDPolicyEnforcedFormat
TestNameIDPolicyEnforcedFormat checks that with EnforceNameIDPolicy a requested Format other than unspecified or encrypted must be the one issued, or
idp_nameid_test.go:108
Function
TestNameIDPolicyEnforcedSPNameQualifier
TestNameIDPolicyEnforcedSPNameQualifier checks that with EnforceNameIDPolicy a requested SPNameQualifier is the one in the NameID (saml-core §3.4.1.1)
idp_nameid_test.go:147
Function
TestNameIDPolicyEnforcedServeSSO
TestNameIDPolicyEnforcedServeSSO checks that ServeSSO answers a request whose NameIDPolicy Format cannot be satisfied with an error Response.
idp_nameid_test.go:174
Function
TestNameIDPolicyIgnoredByDefault
TestNameIDPolicyIgnoredByDefault checks that, unless EnforceNameIDPolicy is set, the NameIDPolicy does not change the assertion, as before.
idp_nameid_test.go:91
Function
TestNameIDQualifiersOnlyForPersistentAndTransient
TestNameIDQualifiersOnlyForPersistentAndTransient checks that NameQualifier and SPNameQualifier are only emitted for the formats that define them (sam
idp_nameid_test.go:53
Function
TestNamespacedAttributesStillRead
Fields read by namespace, and the prefixes documents normally use, are unaffected.
attribute_namespace_test.go:94
Function
TestNewCanAcceptCookieName
(t *testing.T)
samlsp/new_test.go:13
Function
TestNewCanAcceptEndpointPaths
(t *testing.T)
samlsp/new_test.go:39
Function
TestNewEd25519Key
An Ed25519 Key can sign session JWTs, so New accepts it as long as no XML signature is requested, and returns an error (instead of panicking) when one
samlsp/new_signing_key_test.go:17
Function
TestNewIdpInitiatedRequestErrorKinds
(t *testing.T)
errors_test.go:372
Function
TestNewLogoutBindingOption
(t *testing.T)
samlsp/simplesign_logout_test.go:27
Function
TestNewMemoryReplayCacheRequiresPositiveSize
(t *testing.T)
samlsp/replay_cache_test.go:95
Function
TestNewPassesAdminMiddleware
(t *testing.T)
samlidp/admin_middleware_test.go:91
Function
TestNewPassesReplayCache
(t *testing.T)
samlsp/replay_cache_test.go:159
Function
TestNewSOAPLogoutBindingOption
(t *testing.T)
samlsp/soap_start_logout_test.go:357
Function
TestNewSimpleSignOptions
(t *testing.T)
samlsp/simplesign_test.go:36
Function
TestNewUsesSessionKey
(t *testing.T)
samlsp/session_key_test.go:92
Function
TestOAEP11RoundTrip
The XML Encryption 1.1 RSA-OAEP key transport round trips through Encrypt and Decrypt, and states the mask generation function it used.
xmlenc/oaep_test.go:17
Function
TestOAEPDecryptsSpecShapedDocuments
Documents produced by other implementations decrypt, including the default MGF1-SHA-1 when no MGF element is present and an OAEP label.
xmlenc/oaep_test.go:83
Function
TestOAEPExplicitMGFIsNotRetried
A stated MGF is used as given: the legacy fallback only applies when the document names none.
xmlenc/oaep_test.go:158
Function
TestOAEPKeyTransportIsDecrypted
RSA-OAEP key transport, which service provider metadata advertises, still decrypts.
xmlenc/key_transport_test.go:48
Function
TestOAEPMGF1PUsesSHA1MGF
RSA-OAEP-MGF1P always uses MGF1 with SHA-1, whatever the digest, so other implementations can unwrap the key.
xmlenc/oaep_test.go:192
Function
TestOAEPRejectsBadMGF
(t *testing.T)
xmlenc/oaep_test.go:167
Function
TestOptionsClock
TestOptionsClock checks that Options.Clock is used for the IdentityProvider and for login sessions instead of the deprecated package-level saml.TimeNo
samlidp/clock_test.go:22
Function
TestOptionsClockIsPropagated
(t *testing.T)
samlsp/clock_test.go:29
Function
TestOptionsLimitRelayStateLength
Options.LimitRelayStateLength turns on the ServiceProvider's RelayState limit; it is off by default.
samlsp/spec_bindings_test.go:140
Function
TestOptionsRejectExpiredIDPMetadata
Options.RejectExpiredIDPMetadata turns on the ServiceProvider's check of the IDP metadata's validUntil; it is off by default.
samlsp/metadata_expiry_test.go:116
Function
TestOptionsRejectUnknownConditions
Options.RejectUnknownConditions turns on the ServiceProvider's refusal of assertions with conditions it does not understand; it is off by default.
samlsp/reject_unknown_conditions_test.go:11
Function
TestOptionsRequireSignedResponseForCBC
Options.RequireSignedResponseForCBC turns on the ServiceProvider's refusal to decrypt a CBC-encrypted assertion in an unsigned Response; it is off by
samlsp/cbc_integrity_test.go:12
Function
TestOptionsRequireStandardArtifacts
Options.RequireStandardArtifacts sets the ServiceProvider's option; it is off by default.
samlsp/artifact_options_test.go:11
Function
TestPKCS1v15KeyTransportIsNotDecrypted
RSA PKCS#1 v1.5 key transport is open to Bleichenbacher padding-oracle attacks, so a document that names it is refused.
xmlenc/key_transport_test.go:37
Function
TestParseBadXMLArtifactResponse
(t *testing.T)
service_provider_test.go:2012
Function
TestParseBadXMLResponse
(t *testing.T)
service_provider_test.go:2119
Function
TestParseLogoutResponse
(t *testing.T)
sp_coverage_parse_test.go:646
Function
TestParseMetadataByEntityID
(t *testing.T)
samlsp/fetch_metadata_test.go:74
Function
TestParseMetadataNestedAggregates
ParseMetadata searches nested <EntitiesDescriptor> aggregates for an IDP, and returns the first one in document order.
samlsp/fetch_metadata_test.go:166
Function
TestParseMetadataPropagatesParentValidity
saml-metadata-2.0-os §4.3.1: "If metadata elements have parent elements which contain caching policies, the parent element takes precedence." The enti
samlsp/metadata_expiry_test.go:63
Function
TestParseMetadataRequiresSingleIDPInAggregate
ParseMetadata takes the IDP out of an aggregate only if there is one. With several, the first one is not necessarily the IDP the caller means to trust
samlsp/metadata_aggregate_test.go:19
Function
TestParseRedirect
(t *testing.T)
testsaml/parse_test.go:36
Function
TestParseResponseRecordsNothingWhenRefused
A response refused for any other reason is not recorded.
replay_cache_test.go:96
Function
TestParseResponseRefusedWhenTheCacheFails
An error from the cache refuses the response.
replay_cache_test.go:106
Function
TestParseResponseRefusesReplay
A response is accepted once; the same response again is refused.
replay_cache_test.go:71
Function
TestParseResponseWithoutReplayCacheAcceptsRepeat
Without a ReplayCache the same response is accepted again, as before.
replay_cache_test.go:87
Function
TestParseSignedMetadata
(t *testing.T)
samlsp/verify_metadata_signature_test.go:96
Function
TestParseXMLArtifactResponse
(t *testing.T)
service_provider_test.go:1976
Function
TestParseXMLArtifactResponseVerifiesInnerResponseSignature
(t *testing.T)
inner_signature_test.go:89
Function
TestParseXMLAttributeQueryResponseAccepts
(t *testing.T)
service_provider_attribute_query_test.go:242
Function
TestParseXMLAttributeQueryResponseAttributeAuthorityKey
An attribute authority that publishes its own signing key is trusted with that key only; the IdP SSO key is a fallback for one that publishes none.
service_provider_attribute_query_test.go:470
Function
TestParseXMLAttributeQueryResponseBadQuery
(t *testing.T)
service_provider_attribute_query_test.go:564
Function
TestParseXMLAttributeQueryResponseBadStatus
(t *testing.T)
service_provider_attribute_query_test.go:377
Function
TestParseXMLAttributeQueryResponseClassifiesErrors
Attribute query failures carry the same Err* classification as the login and logout paths, so that callers can use errors.Is.
sp_review_attribute_query_errors_test.go:13
Function
TestParseXMLAttributeQueryResponseEncryptedID
(t *testing.T)
encrypted_id_test.go:276
Function
TestParseXMLAttributeQueryResponseEnvelope
(t *testing.T)
service_provider_attribute_query_test.go:494
Function
TestParseXMLAttributeQueryResponseRejects
(t *testing.T)
service_provider_attribute_query_test.go:296
Function
TestParseXMLAttributeQueryResponseReplayCache
(t *testing.T)
service_provider_attribute_query_test.go:580
Function
TestParseXMLAttributeQueryResponseSignatures
(t *testing.T)
service_provider_attribute_query_test.go:394
Function
TestParseXMLAttributeQueryResponseSignedWithoutAssertion
(t *testing.T)
service_provider_attribute_query_test.go:287
Function
TestParseXMLAttributeQueryResponseUnknownConditions
(t *testing.T)
conditions_unknown_test.go:147
Function
TestParseXMLAttributeQueryResponseUnsignedWithManyAssertions
Each assertion of an unsigned response costs an RSA decryption or a signature check, so an unsigned response with many is refused before any of them i
service_provider_attribute_query_test.go:437
Function
TestParseXMLAttributeQueryResponseValidateUnknownConditions
(t *testing.T)
conditions_unknown_test.go:173
Function
TestParseXMLAttributeQueryResponseVerifiesAssertionSignatureInSignedResponse
(t *testing.T)
inner_signature_test.go:122
Function
TestParseXMLAttributeQueryResponseVersion
An attribute query Response, and each assertion in it, must be SAML 2.0 (saml-core §4.1.2, §4.1.3.3).
service_provider_attribute_query_test.go:752
← previous
next →
1,801–1,900 of 2,436, ranked by callers