MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions2,436 in github.com/crewjam/saml

FunctionTestMetadataWithoutSignatureHasNilSignature
(t *testing.T)
metadata_signature_test.go:100
FunctionTestMiddlewareCanParseResponse
(t *testing.T)
samlsp/middleware_test.go:437
FunctionTestMiddlewareCanProduceMetadata
(t *testing.T)
samlsp/middleware_test.go:132
FunctionTestMiddlewareCanServeSignedMetadata
(t *testing.T)
samlsp/signed_metadata_test.go:18
FunctionTestMiddlewareDefaultCookieDomainIPv4
(t *testing.T)
samlsp/middleware_test.go:462
FunctionTestMiddlewareDefaultCookieDomainIPv6
(t *testing.T)
samlsp/middleware_test.go:485
FunctionTestMiddlewareFourOhFour
(t *testing.T)
samlsp/middleware_test.go:144
FunctionTestMiddlewareHandlesInvalidResponse
(t *testing.T)
samlsp/middleware_test.go:551
FunctionTestMiddlewareIDPInitiatedRelayStateRedirect
With AllowIDPInitiated and no tracked request, the middleware follows RelayState only when it is a path on this site.
samlsp/middleware_test.go:957
FunctionTestMiddlewareQueryAttributes
(t *testing.T)
samlsp/middleware_attribute_query_test.go:245
FunctionTestMiddlewareQueryAttributesErrors
(t *testing.T)
samlsp/middleware_attribute_query_test.go:276
FunctionTestMiddlewareRefusesReplayedResponse
With Options.ReplayCache set, the ACS accepts a response once and refuses the same response again.
samlsp/replay_cache_test.go:172
FunctionTestMiddlewareRejectsInvalidCookie
(t *testing.T)
samlsp/middleware_test.go:528
FunctionTestMiddlewareRejectsInvalidRelayState
(t *testing.T)
samlsp/middleware_test.go:505
FunctionTestMiddlewareRequireAccountBadCreds
(t *testing.T)
samlsp/middleware_test.go:297
FunctionTestMiddlewareRequireAccountCreds
(t *testing.T)
samlsp/middleware_test.go:268
FunctionTestMiddlewareRequireAccountExpiredCreds
(t *testing.T)
samlsp/middleware_test.go:323
FunctionTestMiddlewareRequireAccountNilSessionNilError
(t *testing.T)
samlsp/middleware_test.go:635
FunctionTestMiddlewareRequireAccountNoCreds
(t *testing.T)
samlsp/middleware_test.go:155
FunctionTestMiddlewareRequireAccountNoCredsPostBinding
(t *testing.T)
samlsp/middleware_test.go:203
FunctionTestMiddlewareRequireAccountNoCredsPostBindingScriptNonce
(t *testing.T)
samlsp/middleware_test.go:234
FunctionTestMiddlewareRequireAccountNoCredsSecure
(t *testing.T)
samlsp/middleware_test.go:180
FunctionTestMiddlewareRequireAccountNoCredsSimpleSignBinding
(t *testing.T)
samlsp/simplesign_test.go:84
FunctionTestMiddlewareRequireAccountPanicOnRequestToACS
(t *testing.T)
samlsp/middleware_test.go:353
FunctionTestMiddlewareRequireAccountSessionAndError
(t *testing.T)
samlsp/middleware_test.go:586
FunctionTestMiddlewareRequireAccountWrappedErrNoSession
(t *testing.T)
samlsp/middleware_test.go:611
FunctionTestMiddlewareRequireAttribute
(t *testing.T)
samlsp/middleware_test.go:366
FunctionTestMiddlewareRequireAttributeMissingAccount
(t *testing.T)
samlsp/middleware_test.go:420
FunctionTestMiddlewareRequireAttributeNotPresent
(t *testing.T)
samlsp/middleware_test.go:402
FunctionTestMiddlewareRequireAttributeWrongValue
(t *testing.T)
samlsp/middleware_test.go:384
FunctionTestMiddlewareSignedMetadataErrorIsServerError
(t *testing.T)
samlsp/signed_metadata_test.go:58
FunctionTestMiddleware_WithCryptoSignerE2E
(t *testing.T)
samlsp/middleware_test.go:673
FunctionTestMiscCovDurationOverflow
(t *testing.T)
misc_coverage_test.go:17
FunctionTestMiscCovRandomBytesPanicsOnReadError
(t *testing.T)
misc_coverage_test.go:56
FunctionTestMiscCovRelaxedTimeEmpty
(t *testing.T)
misc_coverage_test.go:35
FunctionTestMiscCovSaferFlateReaderClose
(t *testing.T)
misc_coverage_test.go:41
FunctionTestMultipleAssertions
(t *testing.T)
service_provider_test.go:2146
FunctionTestNameIDFormat
(t *testing.T)
schema_test.go:40
FunctionTestNameIDPolicyEnforcedFormat
TestNameIDPolicyEnforcedFormat checks that with EnforceNameIDPolicy a requested Format other than unspecified or encrypted must be the one issued, or
idp_nameid_test.go:108
FunctionTestNameIDPolicyEnforcedSPNameQualifier
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
FunctionTestNameIDPolicyEnforcedServeSSO
TestNameIDPolicyEnforcedServeSSO checks that ServeSSO answers a request whose NameIDPolicy Format cannot be satisfied with an error Response.
idp_nameid_test.go:174
FunctionTestNameIDPolicyIgnoredByDefault
TestNameIDPolicyIgnoredByDefault checks that, unless EnforceNameIDPolicy is set, the NameIDPolicy does not change the assertion, as before.
idp_nameid_test.go:91
FunctionTestNameIDQualifiersOnlyForPersistentAndTransient
TestNameIDQualifiersOnlyForPersistentAndTransient checks that NameQualifier and SPNameQualifier are only emitted for the formats that define them (sam
idp_nameid_test.go:53
FunctionTestNamespacedAttributesStillRead
Fields read by namespace, and the prefixes documents normally use, are unaffected.
attribute_namespace_test.go:94
FunctionTestNewCanAcceptCookieName
(t *testing.T)
samlsp/new_test.go:13
FunctionTestNewCanAcceptEndpointPaths
(t *testing.T)
samlsp/new_test.go:39
FunctionTestNewEd25519Key
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
FunctionTestNewIdpInitiatedRequestErrorKinds
(t *testing.T)
errors_test.go:372
FunctionTestNewLogoutBindingOption
(t *testing.T)
samlsp/simplesign_logout_test.go:27
FunctionTestNewMemoryReplayCacheRequiresPositiveSize
(t *testing.T)
samlsp/replay_cache_test.go:95
FunctionTestNewPassesAdminMiddleware
(t *testing.T)
samlidp/admin_middleware_test.go:91
FunctionTestNewPassesReplayCache
(t *testing.T)
samlsp/replay_cache_test.go:159
FunctionTestNewSOAPLogoutBindingOption
(t *testing.T)
samlsp/soap_start_logout_test.go:357
FunctionTestNewSimpleSignOptions
(t *testing.T)
samlsp/simplesign_test.go:36
FunctionTestNewUsesSessionKey
(t *testing.T)
samlsp/session_key_test.go:92
FunctionTestOAEP11RoundTrip
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
FunctionTestOAEPDecryptsSpecShapedDocuments
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
FunctionTestOAEPExplicitMGFIsNotRetried
A stated MGF is used as given: the legacy fallback only applies when the document names none.
xmlenc/oaep_test.go:158
FunctionTestOAEPKeyTransportIsDecrypted
RSA-OAEP key transport, which service provider metadata advertises, still decrypts.
xmlenc/key_transport_test.go:48
FunctionTestOAEPMGF1PUsesSHA1MGF
RSA-OAEP-MGF1P always uses MGF1 with SHA-1, whatever the digest, so other implementations can unwrap the key.
xmlenc/oaep_test.go:192
FunctionTestOAEPRejectsBadMGF
(t *testing.T)
xmlenc/oaep_test.go:167
FunctionTestOptionsClock
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
FunctionTestOptionsClockIsPropagated
(t *testing.T)
samlsp/clock_test.go:29
FunctionTestOptionsLimitRelayStateLength
Options.LimitRelayStateLength turns on the ServiceProvider's RelayState limit; it is off by default.
samlsp/spec_bindings_test.go:140
FunctionTestOptionsRejectExpiredIDPMetadata
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
FunctionTestOptionsRejectUnknownConditions
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
FunctionTestOptionsRequireSignedResponseForCBC
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
FunctionTestOptionsRequireStandardArtifacts
Options.RequireStandardArtifacts sets the ServiceProvider's option; it is off by default.
samlsp/artifact_options_test.go:11
FunctionTestPKCS1v15KeyTransportIsNotDecrypted
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
FunctionTestParseBadXMLArtifactResponse
(t *testing.T)
service_provider_test.go:2012
FunctionTestParseBadXMLResponse
(t *testing.T)
service_provider_test.go:2119
FunctionTestParseLogoutResponse
(t *testing.T)
sp_coverage_parse_test.go:646
FunctionTestParseMetadataByEntityID
(t *testing.T)
samlsp/fetch_metadata_test.go:74
FunctionTestParseMetadataNestedAggregates
ParseMetadata searches nested <EntitiesDescriptor> aggregates for an IDP, and returns the first one in document order.
samlsp/fetch_metadata_test.go:166
FunctionTestParseMetadataPropagatesParentValidity
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
FunctionTestParseMetadataRequiresSingleIDPInAggregate
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
FunctionTestParseRedirect
(t *testing.T)
testsaml/parse_test.go:36
FunctionTestParseResponseRecordsNothingWhenRefused
A response refused for any other reason is not recorded.
replay_cache_test.go:96
FunctionTestParseResponseRefusedWhenTheCacheFails
An error from the cache refuses the response.
replay_cache_test.go:106
FunctionTestParseResponseRefusesReplay
A response is accepted once; the same response again is refused.
replay_cache_test.go:71
FunctionTestParseResponseWithoutReplayCacheAcceptsRepeat
Without a ReplayCache the same response is accepted again, as before.
replay_cache_test.go:87
FunctionTestParseSignedMetadata
(t *testing.T)
samlsp/verify_metadata_signature_test.go:96
FunctionTestParseXMLArtifactResponse
(t *testing.T)
service_provider_test.go:1976
FunctionTestParseXMLArtifactResponseVerifiesInnerResponseSignature
(t *testing.T)
inner_signature_test.go:89
FunctionTestParseXMLAttributeQueryResponseAccepts
(t *testing.T)
service_provider_attribute_query_test.go:242
FunctionTestParseXMLAttributeQueryResponseAttributeAuthorityKey
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
FunctionTestParseXMLAttributeQueryResponseBadQuery
(t *testing.T)
service_provider_attribute_query_test.go:564
FunctionTestParseXMLAttributeQueryResponseBadStatus
(t *testing.T)
service_provider_attribute_query_test.go:377
FunctionTestParseXMLAttributeQueryResponseClassifiesErrors
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
FunctionTestParseXMLAttributeQueryResponseEncryptedID
(t *testing.T)
encrypted_id_test.go:276
FunctionTestParseXMLAttributeQueryResponseEnvelope
(t *testing.T)
service_provider_attribute_query_test.go:494
FunctionTestParseXMLAttributeQueryResponseRejects
(t *testing.T)
service_provider_attribute_query_test.go:296
FunctionTestParseXMLAttributeQueryResponseReplayCache
(t *testing.T)
service_provider_attribute_query_test.go:580
FunctionTestParseXMLAttributeQueryResponseSignatures
(t *testing.T)
service_provider_attribute_query_test.go:394
FunctionTestParseXMLAttributeQueryResponseSignedWithoutAssertion
(t *testing.T)
service_provider_attribute_query_test.go:287
FunctionTestParseXMLAttributeQueryResponseUnknownConditions
(t *testing.T)
conditions_unknown_test.go:147
FunctionTestParseXMLAttributeQueryResponseUnsignedWithManyAssertions
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
FunctionTestParseXMLAttributeQueryResponseValidateUnknownConditions
(t *testing.T)
conditions_unknown_test.go:173
FunctionTestParseXMLAttributeQueryResponseVerifiesAssertionSignatureInSignedResponse
(t *testing.T)
inner_signature_test.go:122
FunctionTestParseXMLAttributeQueryResponseVersion
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
← previousnext →1,801–1,900 of 2,436, ranked by callers