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
TestFormReplayEmptyBody
(t *testing.T)
samlsp/form_replay_test.go:297
Function
TestFormReplayOffByDefault
(t *testing.T)
samlsp/form_replay_test.go:61
Function
TestFormReplaySavesMatchingOriginHeader
(t *testing.T)
samlsp/form_replay_test.go:139
Function
TestFormReplaySavesSameOriginPost
(t *testing.T)
samlsp/form_replay_test.go:75
Function
TestFormReplayScriptNonce
(t *testing.T)
samlsp/form_replay_test.go:243
Function
TestFormReplayStoreLimits
(t *testing.T)
samlsp/form_replay_test.go:175
Function
TestFormReplayTakeFormError
(t *testing.T)
samlsp/form_replay_test.go:272
Function
TestFormReplayTooLarge
(t *testing.T)
samlsp/form_replay_test.go:154
Function
TestFormReplayURIMismatch
(t *testing.T)
samlsp/form_replay_test.go:258
Function
TestGCMEncryptGeneratedNonce
A nil nonce must make Encrypt generate one (and still round-trip), not panic.
xmlenc/gcm_roundtrip_test.go:30
Function
TestGCMEncryptRoundTrip
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
Function
TestGetArtifactBindingLocation
(t *testing.T)
service_provider_test.go:1898
Function
TestGetAttributeServiceLocation
(t *testing.T)
service_provider_attribute_query_test.go:716
Function
TestGetIDPEncryptionCertUnspecifiedUse
A certificate published with no use is used for encryption when there is none with use="encryption".
logout_request_identifiers_test.go:103
Function
TestGetSPMetadata
(t *testing.T)
samlidp/util_test.go:13
Function
TestGetSPMetadataRequiresSingleSPInAggregate
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
Function
TestGetSPMetadataStopsReadingAtMaxServiceMetadataSize
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
Function
TestGetSessionEmailNameIDFormat
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
Function
TestGetSessionIsPassiveShowsNoLoginForm
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
Function
TestGetSessionNoEmailKeepsDefaultNameIDFormat
TestGetSessionNoEmailKeepsDefaultNameIDFormat checks that a user with no email address keeps the default format.
samlidp/session_nameid_test.go:31
Function
TestGetSigningContextRejectsBadKeys
(t *testing.T)
crypto_signer_test.go:88
Function
TestGetSigningContextWithOpaqueSigner
(t *testing.T)
crypto_signer_test.go:47
Function
TestHTTPCanHandleMetadataRequest
(t *testing.T)
samlidp/samlidp_test.go:117
Function
TestHTTPCanSSORequest
(t *testing.T)
samlidp/samlidp_test.go:129
Function
TestHTTPLoginFormCompletesSSO
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
Function
TestHandleStartLogoutIDPWithoutSLO
(t *testing.T)
samlsp/middleware_logout_test.go:316
Function
TestHandleStartLogoutPostBinding
(t *testing.T)
samlsp/middleware_logout_test.go:266
Function
TestHandleStartLogoutPostBindingPreferred
An explicit LogoutBinding is preferred over the default HTTP-Redirect.
samlsp/simplesign_logout_test.go:158
Function
TestHandleStartLogoutRedirectBinding
(t *testing.T)
samlsp/middleware_logout_test.go:211
Function
TestHandleStartLogoutRequirePOST
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
Function
TestHandleStartLogoutRevokesSession
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
Function
TestHandleStartLogoutSOAP
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
Function
TestHandleStartLogoutSOAPFailure
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
Function
TestHandleStartLogoutSOAPNotSelected
The SOAP binding is used only when LogoutBinding selects it.
samlsp/soap_start_logout_test.go:315
Function
TestHandleStartLogoutSOAPNotSupportedByIDP
With LogoutBinding set to SOAP but no SOAP SingleLogoutService at the IdP, HandleStartLogout uses the front channel.
samlsp/soap_start_logout_test.go:329
Function
TestHandleStartLogoutSOAPSessionWithoutFullNameID
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
Function
TestHandleStartLogoutSessionWithoutNameID
(t *testing.T)
samlsp/middleware_logout_test.go:341
Function
TestHandleStartLogoutSeveralSessionIndexes
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
Function
TestHandleStartLogoutSimpleSignBinding
(t *testing.T)
samlsp/simplesign_logout_test.go:113
Function
TestHandleStartLogoutSimpleSignBindingUnsupportedByIDP
When the IDP has no SimpleSign SLO endpoint, the default binding is used.
samlsp/simplesign_logout_test.go:145
Function
TestHandleStartLogoutWithoutSession
(t *testing.T)
samlsp/middleware_logout_test.go:305
Function
TestHandleStartLogoutWithoutTracker
(t *testing.T)
samlsp/middleware_logout_test.go:286
Function
TestIDPACSSelectionCustomResponseWriterGetsEndpoint
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
Function
TestIDPACSSelectionDefaultEndpoint
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
Function
TestIDPACSSelectionIdpInitiatedDefaultEndpoint
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
Function
TestIDPACSSelectionPrefersPostAtURL
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
Function
TestIDPACSSelectionProtocolBindingNotStrict
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
Function
TestIDPACSSelectionStrictACSBinding
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
Function
TestIDPACSSelectionUnsendableEndpointAtURL
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
Function
TestIDPACSSelectionUnsendableEndpointByIndex
An endpoint named by index with a binding the IdP cannot send gets UnsupportedBinding too.
idp_acs_selection_test.go:260
Function
TestIDPACSSelectionUnsupportedBindingUnknownSP
A request from an unknown service provider gets HTTP 400, not a Response.
idp_acs_selection_test.go:371
Function
TestIDPACSSelectionUnsupportedBindingWithoutDefault
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
Function
TestIDPACSSelectionValidateUnsupportedBinding
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
Function
TestIDPAcceptsPartialLogoutFromParticipant
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
Function
TestIDPAcceptsSOAPLogoutResponses
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
Function
TestIDPAssertionNotBeforeIsNeverPostdated
(t *testing.T)
idp_review_issue_instant_test.go:36
Function
TestIDPAssertionUsesMetadataEntityID
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
Function
TestIDPCanAdvertiseCustomNameIDFormats
(t *testing.T)
identity_provider_test.go:274
Function
TestIDPCanHandlePostRequestWithExistingSession
(t *testing.T)
identity_provider_test.go:392
Function
TestIDPCanHandleRequestWithExistingSession
(t *testing.T)
identity_provider_test.go:366
Function
TestIDPCanHandleRequestWithNewSession
(t *testing.T)
identity_provider_test.go:339
Function
TestIDPCanHandleUnencryptedResponse
(t *testing.T)
identity_provider_test.go:1078
Function
TestIDPCanParse
(t *testing.T)
identity_provider_test.go:443
Function
TestIDPCanProduceMetadata
(t *testing.T)
identity_provider_test.go:167
Function
TestIDPCanServeSignedMetadata
(t *testing.T)
identity_provider_test.go:295
Function
TestIDPCanValidate
(t *testing.T)
identity_provider_test.go:467
Function
TestIDPCheckRequestSubject
The reproduction from the issue: a handler driving the flow itself can use CheckRequestSubject.
idp_request_subject_test.go:220
Function
TestIDPClockIsScopedPerIdentityProvider
TestIDPClockIsScopedPerIdentityProvider checks that IdentityProvider.Clock, when set, is used instead of the deprecated package-level TimeNow and Cloc
idp_clock_test.go:16
Function
TestIDPCovGetACSEndpoint
(t *testing.T)
idp_coverage_test.go:268
Function
TestIDPCovGetSPEncryptionCert
(t *testing.T)
idp_coverage_test.go:393
Function
TestIDPCovMakeAssertionElErrors
(t *testing.T)
idp_coverage_test.go:356
Function
TestIDPCovMakeAssertionExtraAttributes
(t *testing.T)
idp_coverage_test.go:312
Function
TestIDPCovMakeResponseErrors
(t *testing.T)
idp_coverage_test.go:462
Function
TestIDPCovMetadataValidDurationAndLogout
(t *testing.T)
idp_coverage_test.go:134
Function
TestIDPCovNewIdpAuthnRequestBadPostForm
(t *testing.T)
idp_coverage_test.go:235
Function
TestIDPCovPostBindingUnsupportedBinding
(t *testing.T)
idp_coverage_test.go:428
Function
TestIDPCovServeIDPInitiatedErrors
(t *testing.T)
idp_coverage_test.go:177
Function
TestIDPCovServeMetadataWriteError
(t *testing.T)
idp_coverage_test.go:147
Function
TestIDPCovServeSSOMakeAssertionError
(t *testing.T)
idp_coverage_test.go:155
Function
TestIDPCovServeSSOWriteResponseError
(t *testing.T)
idp_coverage_test.go:167
Function
TestIDPCovSigningContextIntermediates
(t *testing.T)
idp_coverage_test.go:480
Function
TestIDPCovValidateErrors
(t *testing.T)
idp_coverage_test.go:243
Function
TestIDPCovWriteResponseErrors
(t *testing.T)
idp_coverage_test.go:437
Function
TestIDPDecryptionKeysRollover
While the IdP encryption key is rotated, an EncryptedID encrypted to the previous certificate is decrypted with DecryptionKeys.
logout_request_identifiers_test.go:166
Function
TestIDPDecryptionKeysWithSignerOnly
An IdP that signs with a Signer alone publishes EncryptionCertificate and decrypts with DecryptionKeys.
logout_request_identifiers_test.go:134
Function
TestIDPDefaultResponseWriter
TestIDPDefaultResponseWriter checks that setting DefaultResponseWriter explicitly produces the same output as leaving ResponseWriter nil, which TestID
identity_provider_response_writer_test.go:111
Function
TestIDPDefaultSignatureMethod
(t *testing.T)
idp_coverage_test.go:492
Function
TestIDPHTTPCanHandleMetadataRequest
(t *testing.T)
identity_provider_test.go:284
Function
TestIDPHTTPCanHandleSSORequest
(t *testing.T)
identity_provider_test.go:1335
Function
TestIDPHandlerServesSLO
(t *testing.T)
identity_provider_logout_test.go:517
Function
TestIDPIDPInitiatedBadServiceProvider
(t *testing.T)
identity_provider_test.go:991
Function
TestIDPIDPInitiatedExistingSession
(t *testing.T)
identity_provider_test.go:972
Function
TestIDPIDPInitiatedNewSession
(t *testing.T)
identity_provider_test.go:955
Function
TestIDPIDPInitiatedResolvesServiceProviderBeforeSession
(t *testing.T)
identity_provider_test.go:1008
Function
TestIDPIgnoresInsecureSOAPLogoutEndpoint
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
Function
TestIDPIgnoresNonHTTPACSLocations
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
Function
TestIDPInitiatedLogoutEncryptedNameID
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
Function
TestIDPInitiatedLogoutOnlySOAP
With only SOAP participants, the logout finishes without the browser leaving the IdP.
identity_provider_logout_soap_test.go:200
Function
TestIDPInitiatedLogoutOverSOAP
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
Function
TestIDPInitiatedLogoutOverSOAPEncryptedNameID
The NameID of a LogoutRequest sent over SOAP is encrypted too.
logout_nameid_encryption_test.go:159
← previous
next →
1,501–1,600 of 2,436, ranked by callers