MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions2,436 in github.com/crewjam/saml

FunctionTestIDPServeSSOExpiredRequest
(t *testing.T)
idp_error_response_test.go:270
FunctionTestIDPServeSSORefusesReplayedSignedAuthnRequest
A signed AuthnRequest is answered with an assertion once; a replay of it is refused. The ID is recorded only when a session is returned.
idp_review_authn_replay_test.go:15
FunctionTestIDPServeSSOSendErrorResponsesKeeps400
(t *testing.T)
idp_error_response_test.go:371
FunctionTestIDPServeSSOStatusErrorCannotSign
(t *testing.T)
idp_error_response_test.go:209
FunctionTestIDPServeSSOVersionMismatch
(t *testing.T)
idp_error_response_test.go:333
FunctionTestIDPSignedAuthnRequestRequiresDestination
(t *testing.T)
xhtml_forms_test.go:199
FunctionTestIDPSigningWithNilKey
TestIDPSigningWithNilKey is a regression test for https://github.com/crewjam/saml/issues/405: a nil or typed-nil key used to panic deep inside the XML
idp_coverage_test.go:539
FunctionTestIDPStatusErrorMessage
(t *testing.T)
idp_error_response_test.go:169
FunctionTestIDPUnknownServiceProviderWrappedErrNotExist
A ServiceProviderProvider that wraps os.ErrNotExist, as its documentation allows errors to be wrapped elsewhere in Go, is still understood as "unknown
idp_review_errors_test.go:25
FunctionTestIDPValidateRejectsMissingIssuer
An AuthnRequest without an Issuer in the assertion namespace is refused with an error rather than a nil-pointer panic.
identity_provider_test.go:1441
FunctionTestIDPVerifiesPostAuthnRequestSignature
(t *testing.T)
idp_review_authn_signature_test.go:54
FunctionTestIDPVerifiesRedirectAuthnRequestSignature
(t *testing.T)
idp_review_authn_signature_test.go:36
FunctionTestIDPWantAuthnRequestsSigned
(t *testing.T)
idp_review_authn_signature_test.go:99
FunctionTestIDPWriteResponse
(t *testing.T)
identity_provider_test.go:935
FunctionTestIdentifierEncrypter
(t *testing.T)
logout_nameid_encryption_test.go:24
FunctionTestIdentityProviderOnError
(t *testing.T)
errors_test.go:455
FunctionTestIdpAuthnRequestErrorKinds
(t *testing.T)
errors_test.go:272
FunctionTestIdpLogoutRequestMatchesAnySessionIndex
(t *testing.T)
logout_request_session_indexes_test.go:89
FunctionTestIdpLogoutRequestMatchesSession
(t *testing.T)
identity_provider_logout_test.go:537
FunctionTestIdpLogoutRequestMisuse
(t *testing.T)
identity_provider_logout_test.go:554
FunctionTestInnerSignatureUsesNamespacesAsReceived
An inner signature is checked against the element as received, not as rebuilt from what the outer signature covers, which can lack namespace declarati
inner_signature_test.go:241
FunctionTestInvalidCertificateErrorKinds
(t *testing.T)
errors_test.go:416
FunctionTestIsLocalRedirect
(t *testing.T)
samlsp/middleware_test.go:921
FunctionTestIsNil
(t *testing.T)
internal/signerutil/signerutil_test.go:12
FunctionTestIsPassiveWithExpiredSessionSendsNoPassive
TestIsPassiveWithExpiredSessionSendsNoPassive checks that an expired session is treated as no session.
samlidp/force_authn_passive_test.go:205
FunctionTestIsPassiveWithInvalidCredentialsSendsNoPassive
TestIsPassiveWithInvalidCredentialsSendsNoPassive checks that invalid credentials posted with a passive request do not bring up the login form.
samlidp/force_authn_passive_test.go:243
FunctionTestIsPassiveWithSessionUsesSession
TestIsPassiveWithSessionUsesSession checks that IsPassive="true" with a session gets an assertion for that session.
samlidp/force_authn_passive_test.go:215
FunctionTestIsPassiveWithUnknownSessionSendsNoPassive
TestIsPassiveWithUnknownSessionSendsNoPassive checks that a session cookie that names no session is treated as no session.
samlidp/force_authn_passive_test.go:197
FunctionTestIsPassiveWithoutSessionSendsNoPassive
TestIsPassiveWithoutSessionSendsNoPassive checks that IsPassive="true" without a session shows no login form and answers with NoPassive.
samlidp/force_authn_passive_test.go:189
FunctionTestIsSOAPRequest
(t *testing.T)
service_provider_soap_logout_test.go:289
FunctionTestJWTSessionCodecClock
(t *testing.T)
samlsp/clock_test.go:43
FunctionTestJWTSessionCodecNewNameIDAttributeValue
TestJWTSessionCodecNewNameIDAttributeValue checks that an AttributeValue whose content is a <saml:NameID> element (e.g. eduPersonTargetedID) is stored
samlsp/session_jwt_test.go:16
FunctionTestJWTSessionCodec_CryptoSignerEncodeDecode
(t *testing.T)
samlsp/middleware_test.go:784
FunctionTestJWTSessionCodec_UnsupportedAlgorithmReturnsError
(t *testing.T)
samlsp/middleware_test.go:885
FunctionTestJWTSessionNameIDClaimsOmitted
(t *testing.T)
samlsp/middleware_attribute_query_test.go:76
FunctionTestJWTSessionNameIDClaimsRoundTrip
(t *testing.T)
samlsp/middleware_attribute_query_test.go:53
FunctionTestJWTSessionWithoutNameIDClaims
TestJWTSessionWithoutNameIDClaims decodes a session issued before JWTSessionCodec recorded the NameID's Format and qualifiers.
samlsp/middleware_attribute_query_test.go:109
FunctionTestJWTTrackedRequestCodecClock
(t *testing.T)
samlsp/clock_test.go:65
FunctionTestLinksConcurrentAccess
(t *testing.T)
example/service_test.go:106
FunctionTestListLinksUsesSessionNotHeader
(t *testing.T)
example/service_test.go:66
FunctionTestLoginAllowsCrossOriginPostWithoutCredentials
A cross-site POST that carries no credentials, such as an AuthnRequest with the HTTP-POST binding, is not refused.
samlidp/login_csrf_test.go:52
FunctionTestLoginAlwaysRunsBcrypt
TestLoginAlwaysRunsBcrypt checks that every login attempt performs exactly one bcrypt comparison against a real hash, whether or not the user exists,
samlidp/session_timing_test.go:24
FunctionTestLoginLogsUsernameQuoted
A username with a newline cannot forge a log line.
samlidp/login_log_test.go:17
FunctionTestLoginRefusesCrossOriginCredentials
Credentials posted by a browser from another site are refused, so that a page elsewhere cannot log the victim's browser in as the attacker.
samlidp/login_csrf_test.go:15
FunctionTestLoginSchedulesSessionDeletion
A login schedules the deletion of the session it stores.
samlidp/session_expiry_test.go:162
FunctionTestLogoutErrorKinds
(t *testing.T)
errors_test.go:204
FunctionTestLogoutPropagatesToEveryServiceProvider
(t *testing.T)
samlidp/logout_propagation_test.go:125
FunctionTestLogoutRequestBaseIDXML
(t *testing.T)
logout_request_identifiers_test.go:201
FunctionTestLogoutRequestMarshalWithoutNotOnOrAfter
(t *testing.T)
schema_test.go:298
FunctionTestLogoutRequestSessionIndexesXML
(t *testing.T)
logout_request_session_indexes_test.go:26
FunctionTestLogoutRequestSingleSessionIndexUnchanged
(t *testing.T)
logout_request_session_indexes_test.go:51
FunctionTestLogoutRequestXMLRoundTrip
(t *testing.T)
schema_test.go:257
FunctionTestLogoutStateCookieGivesUpOnParticipantsThatDoNotFit
When the state still does not fit, the last participants are given up on and reported as failed, rather than setting a cookie the browser drops.
idp_review_logout_state_test.go:81
FunctionTestLogoutStateCookieIsCompact
A dozen participants used to make a cookie of over 6 KB, which browsers drop. The state is now deflated.
idp_review_logout_state_test.go:65
FunctionTestLogoutStateUndeflatedIsRead
A state written before it was deflated (plain base64 JSON, no prefix) is still read, so a logout in progress during an upgrade carries on.
idp_review_logout_state_test.go:97
FunctionTestLogoutWithoutSession
(t *testing.T)
samlidp/logout_propagation_test.go:147
FunctionTestLookupDeletesOldExpiredSession
Looking up a session that expired long ago deletes it.
samlidp/session_expiry_test.go:177
FunctionTestLookupElementNamespaceMatchesSubContext
lookupElementNamespace must find what SubContext and LookupPrefix find, and checkNamespaceDeclarations must refuse what SubContext refuses.
find_children_test.go:67
FunctionTestMakeArtifactResolveRequest
(t *testing.T)
service_provider_test.go:1920
FunctionTestMakeAssertionElDefaultFallsBackToCBC
An SP whose metadata lists no block cipher still gets AES-128-CBC, which every implementation can decrypt.
identity_provider_assertion_encrypter_test.go:100
FunctionTestMakeAssertionElDefaultUsesGCMWhenListed
By default the assertion is encrypted with the strongest block cipher the SP's metadata lists: this package's SP lists AES-256-GCM.
identity_provider_assertion_encrypter_test.go:94
FunctionTestMakeAssertionElUsesConfiguredEncrypter
A configured AssertionEncrypter is used as is, whatever the SP lists.
identity_provider_assertion_encrypter_test.go:110
FunctionTestMakeAttributeQuery
(t *testing.T)
service_provider_attribute_query_test.go:138
FunctionTestMakeAttributeQueryErrors
(t *testing.T)
service_provider_attribute_query_test.go:196
FunctionTestMakeAttributeQuerySignatureMethod
(t *testing.T)
service_provider_attribute_query_test.go:175
FunctionTestMakeAttributeQueryWithoutKeyIsUnsigned
(t *testing.T)
service_provider_attribute_query_test.go:189
FunctionTestMakeSOAPLogoutRequest
(t *testing.T)
service_provider_soap_logout_test.go:513
FunctionTestMakeSOAPLogoutResponse
(t *testing.T)
service_provider_soap_logout_test.go:257
FunctionTestMakeSignedArtifactResolveRequest
(t *testing.T)
service_provider_test.go:1939
FunctionTestMakeSignedArtifactResolveRequestWithBogusSignatureMethod
(t *testing.T)
service_provider_test.go:1959
FunctionTestMarshalXMLOmitsEmptyOptionalAttributes
TestMarshalXMLOmitsEmptyOptionalAttributes checks that optional attributes that are unset are left out, rather than written as empty strings (Assertio
schema_review_marshal_test.go:48
FunctionTestMarshalXMLOnValues
TestMarshalXMLOnValues checks that the custom MarshalXML methods of the protocol types are used when a value, not a pointer, is marshalled: the signat
schema_review_marshal_test.go:17
FunctionTestMemoryReplayCacheAlreadyExpired
An ID recorded with an expiry that has already passed takes no room.
samlsp/replay_cache_test.go:85
FunctionTestMemoryReplayCacheConcurrentDistinctIDs
(t *testing.T)
samlsp/replay_cache_test.go:132
FunctionTestMemoryReplayCacheConcurrentSameID
(t *testing.T)
samlsp/replay_cache_test.go:106
FunctionTestMemoryReplayCacheFull
A full cache refuses new IDs instead of dropping an unexpired one, and accepts them again once IDs have expired.
samlsp/replay_cache_test.go:56
FunctionTestMemoryReplayCacheRefusesReplay
(t *testing.T)
samlsp/replay_cache_test.go:33
FunctionTestMemorySessionRevocationStore
(t *testing.T)
samlsp/middleware_soap_logout_test.go:461
FunctionTestMemoryStoresClock
(t *testing.T)
samlsp/clock_test.go:82
FunctionTestMetadataAdvertisesIssuedNameIDFormats
Tests for the NameID formats samlidp advertises and issues (issue #868). TestMetadataAdvertisesIssuedNameIDFormats checks that the samlidp metadata li
samlidp/nameid_formats_test.go:20
FunctionTestMetadataCovCheckEndpointLocationBadURL
(t *testing.T)
metadata_coverage_test.go:58
FunctionTestMetadataCovEndpointUnmarshal
(t *testing.T)
metadata_coverage_test.go:63
FunctionTestMetadataCovEntitiesDescriptorRoundTrip
(t *testing.T)
metadata_coverage_test.go:13
FunctionTestMetadataCovEntitiesDescriptorUnmarshalError
(t *testing.T)
metadata_coverage_test.go:52
FunctionTestMetadataCovEntitiesDescriptorWithoutOptionalAttrs
(t *testing.T)
metadata_coverage_test.go:40
FunctionTestMetadataCovIndexedEndpointUnmarshal
(t *testing.T)
metadata_coverage_test.go:105
FunctionTestMetadataExtensions
(t *testing.T)
metadata_extensions_test.go:35
FunctionTestMetadataExtensionsOmittedWhenUnset
(t *testing.T)
metadata_extensions_test.go:162
FunctionTestMetadataExtensionsRoundTripAllDescriptors
(t *testing.T)
metadata_extensions_test.go:98
FunctionTestMetadataKeepsHTTPPostSimpleSignLocations
(t *testing.T)
metadata_test.go:423
FunctionTestMetadataNameIDFormatsCanBeOverridden
TestMetadataNameIDFormatsCanBeOverridden checks that NameIDFormats set on the IdentityProvider after New are the ones advertised.
samlidp/nameid_formats_test.go:32
FunctionTestMetadataOptions
The metadata served by samlidp publishes Options.ExtraCertificates and Options.MetadataScopes, and its single logout endpoint with the bindings ServeS
samlidp/metadata_options_test.go:48
FunctionTestMetadataOptionsDefault
Without the options, the metadata publishes only Certificate and no scopes, as before.
samlidp/metadata_options_test.go:87
FunctionTestMetadataRoundTrip
TestMetadataRoundTrip checks that metadata survives being parsed and written out again, and that what is written follows the element order and attribu
metadata_roundtrip_test.go:31
FunctionTestMetadataSOAPSingleLogoutService
(t *testing.T)
service_provider_soap_logout_test.go:308
FunctionTestMetadataSignatureFromLargerDocumentDeclaresItsDefaultNamespace
(t *testing.T)
metadata_signature_test.go:165
FunctionTestMetadataSignatureFromLargerDocumentDeclaresItsPrefix
(t *testing.T)
metadata_signature_test.go:129
FunctionTestMetadataSignatureKeepsPrefixDeclaredOnAncestor
(t *testing.T)
metadata_signature_test.go:114
FunctionTestMetadataSignatureRoundTripsAtEveryLevel
(t *testing.T)
metadata_signature_test.go:46
FunctionTestMetadataValidatesUrlSchemeForProtocolBinding
(t *testing.T)
metadata_test.go:169
← previousnext →1,701–1,800 of 2,436, ranked by callers