MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions2,436 in github.com/crewjam/saml

FunctionTestFormReplayEmptyBody
(t *testing.T)
samlsp/form_replay_test.go:297
FunctionTestFormReplayOffByDefault
(t *testing.T)
samlsp/form_replay_test.go:61
FunctionTestFormReplaySavesMatchingOriginHeader
(t *testing.T)
samlsp/form_replay_test.go:139
FunctionTestFormReplaySavesSameOriginPost
(t *testing.T)
samlsp/form_replay_test.go:75
FunctionTestFormReplayScriptNonce
(t *testing.T)
samlsp/form_replay_test.go:243
FunctionTestFormReplayStoreLimits
(t *testing.T)
samlsp/form_replay_test.go:175
FunctionTestFormReplayTakeFormError
(t *testing.T)
samlsp/form_replay_test.go:272
FunctionTestFormReplayTooLarge
(t *testing.T)
samlsp/form_replay_test.go:154
FunctionTestFormReplayURIMismatch
(t *testing.T)
samlsp/form_replay_test.go:258
FunctionTestGCMEncryptGeneratedNonce
A nil nonce must make Encrypt generate one (and still round-trip), not panic.
xmlenc/gcm_roundtrip_test.go:30
FunctionTestGCMEncryptRoundTrip
GCM.Encrypt must actually encrypt the plaintext and produce ciphertext that GCM.Decrypt can recover. Before the fix it sealed a zero buffer and never
xmlenc/gcm_roundtrip_test.go:11
FunctionTestGetArtifactBindingLocation
(t *testing.T)
service_provider_test.go:1898
FunctionTestGetAttributeServiceLocation
(t *testing.T)
service_provider_attribute_query_test.go:716
FunctionTestGetIDPEncryptionCertUnspecifiedUse
A certificate published with no use is used for encryption when there is none with use="encryption".
logout_request_identifiers_test.go:103
FunctionTestGetSPMetadata
(t *testing.T)
samlidp/util_test.go:13
FunctionTestGetSPMetadataRequiresSingleSPInAggregate
With several service providers in an aggregate, the first one is not necessarily the one meant, so none is registered.
samlidp/sp_metadata_limits_test.go:36
FunctionTestGetSPMetadataStopsReadingAtMaxServiceMetadataSize
The service endpoints read the request body as metadata; they must stop at MaxServiceMetadataSize rather than hold whatever the client sends.
samlidp/sp_metadata_limits_test.go:24
FunctionTestGetSessionEmailNameIDFormat
TestGetSessionEmailNameIDFormat checks that a session whose NameID is the user's email address says so, instead of letting the assertion claim the tra
samlidp/session_nameid_test.go:17
FunctionTestGetSessionIsPassiveShowsNoLoginForm
TestGetSessionIsPassiveShowsNoLoginForm calls GetSession directly, as in the issue's reproduction: a passive request it cannot answer with a SAML Resp
samlidp/force_authn_passive_test.go:271
FunctionTestGetSessionNoEmailKeepsDefaultNameIDFormat
TestGetSessionNoEmailKeepsDefaultNameIDFormat checks that a user with no email address keeps the default format.
samlidp/session_nameid_test.go:31
FunctionTestGetSigningContextRejectsBadKeys
(t *testing.T)
crypto_signer_test.go:88
FunctionTestGetSigningContextWithOpaqueSigner
(t *testing.T)
crypto_signer_test.go:47
FunctionTestHTTPCanHandleMetadataRequest
(t *testing.T)
samlidp/samlidp_test.go:117
FunctionTestHTTPCanSSORequest
(t *testing.T)
samlidp/samlidp_test.go:129
FunctionTestHTTPLoginFormCompletesSSO
TestHTTPLoginFormCompletesSSO drives an SP-initiated flow through the login form: the form shown by /sso must post back to /sso along with the origina
samlidp/login_form_test.go:26
FunctionTestHandleStartLogoutIDPWithoutSLO
(t *testing.T)
samlsp/middleware_logout_test.go:316
FunctionTestHandleStartLogoutPostBinding
(t *testing.T)
samlsp/middleware_logout_test.go:266
FunctionTestHandleStartLogoutPostBindingPreferred
An explicit LogoutBinding is preferred over the default HTTP-Redirect.
samlsp/simplesign_logout_test.go:158
FunctionTestHandleStartLogoutRedirectBinding
(t *testing.T)
samlsp/middleware_logout_test.go:211
FunctionTestHandleStartLogoutRequirePOST
With RequirePOSTToStartLogout, a GET (such as a cross-site link or image) does not log the user out; a POST does.
samlsp/start_logout_revocation_test.go:55
FunctionTestHandleStartLogoutRevokesSession
HandleStartLogout ends the session on the server as well as deleting the cookie, so a copy of the session token is refused afterwards. Sessions of the
samlsp/start_logout_revocation_test.go:19
FunctionTestHandleStartLogoutSOAP
With LogoutBinding set to SOAP, HandleStartLogout sends the IdP a signed LogoutRequest from the server, with the full NameID and every SessionIndex of
samlsp/soap_start_logout_test.go:203
FunctionTestHandleStartLogoutSOAPFailure
When the SOAP logout fails, the error is passed to OnError and the local session is deleted all the same. If the IdP has a front-channel SingleLogoutS
samlsp/soap_start_logout_test.go:233
FunctionTestHandleStartLogoutSOAPNotSelected
The SOAP binding is used only when LogoutBinding selects it.
samlsp/soap_start_logout_test.go:315
FunctionTestHandleStartLogoutSOAPNotSupportedByIDP
With LogoutBinding set to SOAP but no SOAP SingleLogoutService at the IdP, HandleStartLogout uses the front channel.
samlsp/soap_start_logout_test.go:329
FunctionTestHandleStartLogoutSOAPSessionWithoutFullNameID
A session that does not record the full NameID, made before samlsp recorded it, is logged out through the browser, as before.
samlsp/soap_start_logout_test.go:301
FunctionTestHandleStartLogoutSessionWithoutNameID
(t *testing.T)
samlsp/middleware_logout_test.go:341
FunctionTestHandleStartLogoutSeveralSessionIndexes
A session made from an assertion with several AuthnStatements keeps the SessionIndex of each, and the LogoutRequest lists them all.
samlsp/middleware_logout_test.go:247
FunctionTestHandleStartLogoutSimpleSignBinding
(t *testing.T)
samlsp/simplesign_logout_test.go:113
FunctionTestHandleStartLogoutSimpleSignBindingUnsupportedByIDP
When the IDP has no SimpleSign SLO endpoint, the default binding is used.
samlsp/simplesign_logout_test.go:145
FunctionTestHandleStartLogoutWithoutSession
(t *testing.T)
samlsp/middleware_logout_test.go:305
FunctionTestHandleStartLogoutWithoutTracker
(t *testing.T)
samlsp/middleware_logout_test.go:286
FunctionTestIDPACSSelectionCustomResponseWriterGetsEndpoint
A custom ResponseWriter may support other bindings, so without StrictACSBinding the endpoint the request names is passed on to it.
idp_acs_selection_test.go:386
FunctionTestIDPACSSelectionDefaultEndpoint
saml-core §3.4.1 (errata): without an ACS index or URL the IdP "MUST return the <Response> message to the default location associated with the request
idp_acs_selection_test.go:183
FunctionTestIDPACSSelectionIdpInitiatedDefaultEndpoint
saml-profiles §4.1.5: an unsolicited Response "SHOULD be delivered to the <md:AssertionConsumerService> endpoint of the service provider designated as
idp_acs_selection_test.go:201
FunctionTestIDPACSSelectionPrefersPostAtURL
An HTTP-POST endpoint at the requested URL is used even when an HTTP-Artifact one at the same URL is listed first.
idp_acs_selection_test.go:274
FunctionTestIDPACSSelectionProtocolBindingNotStrict
Without StrictACSBinding, an endpoint is matched on Location as before, so a request for HTTP-Artifact at a URL that also has an HTTP-POST endpoint st
idp_acs_selection_test.go:287
FunctionTestIDPACSSelectionStrictACSBinding
saml-core §3.4.1: ProtocolBinding "identifies a SAML protocol binding to be used when returning the <Response> message". With StrictACSBinding the end
idp_acs_selection_test.go:300
FunctionTestIDPACSSelectionUnsendableEndpointAtURL
With only an HTTP-Artifact endpoint at the requested URL, the IdP cannot send the Response there: it answers with UnsupportedBinding, sent to the defa
idp_acs_selection_test.go:221
FunctionTestIDPACSSelectionUnsendableEndpointByIndex
An endpoint named by index with a binding the IdP cannot send gets UnsupportedBinding too.
idp_acs_selection_test.go:260
FunctionTestIDPACSSelectionUnsupportedBindingUnknownSP
A request from an unknown service provider gets HTTP 400, not a Response.
idp_acs_selection_test.go:371
FunctionTestIDPACSSelectionUnsupportedBindingWithoutDefault
The error Response is only sent to an endpoint from the metadata that the IdP can send to; without one the request gets HTTP 400.
idp_acs_selection_test.go:359
FunctionTestIDPACSSelectionValidateUnsupportedBinding
Validate still resolves an endpoint with a binding the IdP cannot send, for callers that send the Response themselves; ServeSSO refuses it with the de
idp_acs_selection_test.go:239
FunctionTestIDPAcceptsPartialLogoutFromParticipant
The IdP accepts a LogoutResponse with Success and the second-level status PartialLogout, made by the status-taking builders, from a participant it pro
logout_response_status_test.go:163
FunctionTestIDPAcceptsSOAPLogoutResponses
Responses the IdP accepts over SOAP: Destination may be absent or name the IdP, and SHA-1 signatures are accepted unless RejectSHA1Signatures is set.
identity_provider_logout_soap_test.go:367
FunctionTestIDPAssertionNotBeforeIsNeverPostdated
(t *testing.T)
idp_review_issue_instant_test.go:36
FunctionTestIDPAssertionUsesMetadataEntityID
The assertion's Issuer and the NameID's NameQualifier are the IdP's entity ID, as its metadata publishes it, though making an assertion no longer buil
idp_review_entity_id_test.go:13
FunctionTestIDPCanAdvertiseCustomNameIDFormats
(t *testing.T)
identity_provider_test.go:274
FunctionTestIDPCanHandlePostRequestWithExistingSession
(t *testing.T)
identity_provider_test.go:392
FunctionTestIDPCanHandleRequestWithExistingSession
(t *testing.T)
identity_provider_test.go:366
FunctionTestIDPCanHandleRequestWithNewSession
(t *testing.T)
identity_provider_test.go:339
FunctionTestIDPCanHandleUnencryptedResponse
(t *testing.T)
identity_provider_test.go:1078
FunctionTestIDPCanParse
(t *testing.T)
identity_provider_test.go:443
FunctionTestIDPCanProduceMetadata
(t *testing.T)
identity_provider_test.go:167
FunctionTestIDPCanServeSignedMetadata
(t *testing.T)
identity_provider_test.go:295
FunctionTestIDPCanValidate
(t *testing.T)
identity_provider_test.go:467
FunctionTestIDPCheckRequestSubject
The reproduction from the issue: a handler driving the flow itself can use CheckRequestSubject.
idp_request_subject_test.go:220
FunctionTestIDPClockIsScopedPerIdentityProvider
TestIDPClockIsScopedPerIdentityProvider checks that IdentityProvider.Clock, when set, is used instead of the deprecated package-level TimeNow and Cloc
idp_clock_test.go:16
FunctionTestIDPCovGetACSEndpoint
(t *testing.T)
idp_coverage_test.go:268
FunctionTestIDPCovGetSPEncryptionCert
(t *testing.T)
idp_coverage_test.go:393
FunctionTestIDPCovMakeAssertionElErrors
(t *testing.T)
idp_coverage_test.go:356
FunctionTestIDPCovMakeAssertionExtraAttributes
(t *testing.T)
idp_coverage_test.go:312
FunctionTestIDPCovMakeResponseErrors
(t *testing.T)
idp_coverage_test.go:462
FunctionTestIDPCovMetadataValidDurationAndLogout
(t *testing.T)
idp_coverage_test.go:134
FunctionTestIDPCovNewIdpAuthnRequestBadPostForm
(t *testing.T)
idp_coverage_test.go:235
FunctionTestIDPCovPostBindingUnsupportedBinding
(t *testing.T)
idp_coverage_test.go:428
FunctionTestIDPCovServeIDPInitiatedErrors
(t *testing.T)
idp_coverage_test.go:177
FunctionTestIDPCovServeMetadataWriteError
(t *testing.T)
idp_coverage_test.go:147
FunctionTestIDPCovServeSSOMakeAssertionError
(t *testing.T)
idp_coverage_test.go:155
FunctionTestIDPCovServeSSOWriteResponseError
(t *testing.T)
idp_coverage_test.go:167
FunctionTestIDPCovSigningContextIntermediates
(t *testing.T)
idp_coverage_test.go:480
FunctionTestIDPCovValidateErrors
(t *testing.T)
idp_coverage_test.go:243
FunctionTestIDPCovWriteResponseErrors
(t *testing.T)
idp_coverage_test.go:437
FunctionTestIDPDecryptionKeysRollover
While the IdP encryption key is rotated, an EncryptedID encrypted to the previous certificate is decrypted with DecryptionKeys.
logout_request_identifiers_test.go:166
FunctionTestIDPDecryptionKeysWithSignerOnly
An IdP that signs with a Signer alone publishes EncryptionCertificate and decrypts with DecryptionKeys.
logout_request_identifiers_test.go:134
FunctionTestIDPDefaultResponseWriter
TestIDPDefaultResponseWriter checks that setting DefaultResponseWriter explicitly produces the same output as leaving ResponseWriter nil, which TestID
identity_provider_response_writer_test.go:111
FunctionTestIDPDefaultSignatureMethod
(t *testing.T)
idp_coverage_test.go:492
FunctionTestIDPHTTPCanHandleMetadataRequest
(t *testing.T)
identity_provider_test.go:284
FunctionTestIDPHTTPCanHandleSSORequest
(t *testing.T)
identity_provider_test.go:1335
FunctionTestIDPHandlerServesSLO
(t *testing.T)
identity_provider_logout_test.go:517
FunctionTestIDPIDPInitiatedBadServiceProvider
(t *testing.T)
identity_provider_test.go:991
FunctionTestIDPIDPInitiatedExistingSession
(t *testing.T)
identity_provider_test.go:972
FunctionTestIDPIDPInitiatedNewSession
(t *testing.T)
identity_provider_test.go:955
FunctionTestIDPIDPInitiatedResolvesServiceProviderBeforeSession
(t *testing.T)
identity_provider_test.go:1008
FunctionTestIDPIgnoresInsecureSOAPLogoutEndpoint
A SOAP SingleLogoutService that is not https is ignored, so that the LogoutRequest with the user's NameID does not cross the network in the clear: the
identity_provider_logout_soap_test.go:456
FunctionTestIDPIgnoresNonHTTPACSLocations
An assertion consumer service whose Location is not an http or https URL, in metadata built in Go rather than parsed, is never used.
idp_review_acs_scheme_test.go:14
FunctionTestIDPInitiatedLogoutEncryptedNameID
The IdP encrypts the NameID of the LogoutRequests it sends to service providers that publish an encryption certificate, and sends it in the clear to t
logout_nameid_encryption_test.go:97
FunctionTestIDPInitiatedLogoutOnlySOAP
With only SOAP participants, the logout finishes without the browser leaving the IdP.
identity_provider_logout_soap_test.go:200
FunctionTestIDPInitiatedLogoutOverSOAP
IdP-initiated logout logs a participant with a SOAP SingleLogoutService out over the back channel, and the browser only visits the others.
identity_provider_logout_soap_test.go:175
FunctionTestIDPInitiatedLogoutOverSOAPEncryptedNameID
The NameID of a LogoutRequest sent over SOAP is encrypted too.
logout_nameid_encryption_test.go:159
← previousnext →1,501–1,600 of 2,436, ranked by callers