MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions2,436 in github.com/crewjam/saml

FunctionTestSPDecryptsWithDecryptionKeys
An assertion encrypted to one of DecryptionKeys decrypts, whatever key comes first and wherever the EncryptedKey is.
service_provider_decryption_keys_test.go:96
FunctionTestSPDecryptsWithSeparateEncryptionKey
The SP decrypts assertions with EncryptionKey, even when Key is an ECDSA key that could not decrypt them.
service_provider_encryption_key_test.go:95
FunctionTestSPEmptyPossibleRequestIDNeedsAllowIDPInitiated
An empty string among possibleRequestIDs does not accept an unsolicited response or assertion unless AllowIDPInitiated is set.
sp_review_empty_request_id_test.go:12
FunctionTestSPEncryptLogoutNameID
The SP encrypts the NameID of the LogoutRequests it makes to the IdP's encryption certificate, and the IdP decrypts it and ends the session.
logout_request_identifiers_test.go:23
FunctionTestSPEncryptLogoutNameIDDefaultCipher
The SP encrypts the NameID of its LogoutRequests with the strongest block cipher the IdP metadata lists, which for this package's IdP is AES-256-GCM,
logout_nameid_encryption_test.go:69
FunctionTestSPFailToProduceSignedRequestWithBogusSignatureMethod
(t *testing.T)
service_provider_test.go:456
FunctionTestSPInitiatedLogoutOnlyParticipant
(t *testing.T)
identity_provider_logout_propagation_test.go:405
FunctionTestSPInitiatedLogoutParticipantLookupFails
(t *testing.T)
identity_provider_logout_propagation_test.go:420
FunctionTestSPInitiatedLogoutPropagates
(t *testing.T)
samlidp/logout_propagation_test.go:154
FunctionTestSPInitiatedLogoutPropagation
An SP-initiated LogoutRequest is propagated to the other participants before the initiating SP gets its LogoutResponse.
identity_provider_logout_propagation_test.go:359
FunctionTestSPInitiatedLogoutPropagationOverSOAP
SP-initiated logout is propagated over SOAP, and the initiator gets its LogoutResponse at once.
identity_provider_logout_soap_test.go:219
FunctionTestSPInitiatedLogoutRefusesNonParticipant
A service provider that the session was never used for cannot end it, or have the logout propagated to the SPs it was used for, by naming the user's N
idp_review_logout_participant_test.go:15
FunctionTestSPInitiatedLogoutRoundTrip
TestSPInitiatedLogoutRoundTrip starts logout, answers the LogoutRequest as the IDP would, and delivers the LogoutResponse with the cookies the browser
samlsp/middleware_logout_test.go:452
FunctionTestSPInitiatedLogoutWithoutRecordedParticipants
Without participants recorded for the session, nothing is known, and the request is honoured as before.
idp_review_logout_participant_test.go:37
FunctionTestSPInvalidAssertions
(t *testing.T)
service_provider_test.go:1320
FunctionTestSPInvalidResponses
(t *testing.T)
service_provider_test.go:2220
FunctionTestSPLogoutRequestUnspecifiedNameIDFormat
(t *testing.T)
service_provider_test.go:499
FunctionTestSPMetadataAdvertisesSeparateEncryptionCertificate
(t *testing.T)
service_provider_encryption_key_test.go:66
FunctionTestSPMetadataAssertionConsumerServiceBindings
(t *testing.T)
service_provider_test.go:281
FunctionTestSPMetadataCertificatesFlowFromOptions
(t *testing.T)
samlidp/signed_sp_metadata_test.go:98
FunctionTestSPMetadataNameIDFormat
(t *testing.T)
service_provider_test.go:148
FunctionTestSPMetadataOmitsEncryptionKeyForECDSACertificate
An ECDSA key cannot be used for XML encryption, so the metadata must not advertise it for encryption.
service_provider_encryption_key_test.go:50
FunctionTestSPMetadataPrefersAESGCM
The SP's metadata lists the content encryption algorithms it accepts in order of preference. IdPs that honour the list should pick AES-GCM, which is a
sp_metadata_encryption_test.go:15
FunctionTestSPMetadataPublishesSigningKeyWhenSigning
The SP metadata publishes the signing certificate whenever the SP signs messages the IdP has to verify with it, not only when AuthnRequests are signed
sp_review_metadata_signing_key_test.go:24
FunctionTestSPMismatchedDestinationsWithNoSignaturePresent
(t *testing.T)
service_provider_test.go:1247
FunctionTestSPMismatchedDestinationsWithSignaturePresent
(t *testing.T)
service_provider_test.go:1223
FunctionTestSPMissingDestinationWithSignaturePresent
(t *testing.T)
service_provider_test.go:1268
FunctionTestSPRealWorldAssertionSignedNotResponse
(t *testing.T)
service_provider_test.go:1765
FunctionTestSPRealWorldKeyInfoHasRSAPublicKeyNotX509Cert
(t *testing.T)
service_provider_test.go:1737
FunctionTestSPRedirectBindingInvalidXMLIsInvalidResponseError
Invalid XML in an HTTP-Redirect message to the SP is reported like every other failure of that path: as an *InvalidResponseError that matches ErrMalfo
idp_review_errors_test.go:51
FunctionTestSPRefusesFutureIssueInstant
A Response or Assertion dated further in the future than MaxClockSkew is refused, as LogoutRequests and LogoutResponses already were; otherwise its Is
sp_review_issue_instant_test.go:15
FunctionTestSPRejectSHA1DetachedSignatures
(t *testing.T)
sha1_policy_test.go:82
FunctionTestSPRejectSHA1XMLSignatures
(t *testing.T)
sha1_policy_test.go:38
FunctionTestSPRejectsBadEncryptedAttribute
An EncryptedAttribute that cannot be decrypted, or that does not hold an Attribute, makes the assertion refused rather than dropped.
subject_identifiers_test.go:198
FunctionTestSPRejectsBadSubjectEncryptedID
(t *testing.T)
encrypted_id_test.go:180
FunctionTestSPRejectsInjectedComment
(t *testing.T)
service_provider_test.go:867
FunctionTestSPRejectsInvalidResponseSignatureBeforeOtherChecks
(t *testing.T)
service_provider_test.go:1292
FunctionTestSPRejectsMalformedResponse
(t *testing.T)
service_provider_test.go:2176
FunctionTestSPResponseAndAssertionInResponseToMustAgree
An assertion issued for one pending request cannot be accepted inside a Response that answers another.
sp_review_in_response_to_test.go:12
FunctionTestSPResponseWithNoIssuer
(t *testing.T)
service_provider_test.go:1873
FunctionTestSPSignaturesIncludeIntermediates
(t *testing.T)
sp_signed_metadata_test.go:141
FunctionTestSPSignedMetadata
(t *testing.T)
sp_signed_metadata_test.go:51
FunctionTestSPSubjectEncryptedIDIsSigned
The signature covers the EncryptedID as sent: swapping it for another one breaks the signature.
encrypted_id_test.go:257
FunctionTestSPToIDPAcsIndexRoundTrip
The IdP resolves the index the SP sends to the matching endpoint in the SP metadata, including its binding.
acs_index_test.go:57
FunctionTestSPValidateAuthnContextClassRef
(t *testing.T)
service_provider_test.go:2358
FunctionTestSPValidateAuthnContextClassRefParseResponse
(t *testing.T)
service_provider_test.go:2602
FunctionTestSPValidateRequestIDWithAllowIDPInitiated
(t *testing.T)
service_provider_test.go:2344
FunctionTestSPValidateSignatureMultipleCertsWithoutX509Certificate
TestSPValidateSignatureMultipleCertsWithoutX509Certificate covers IdPs whose metadata lists several signing certificates and whose Signature KeyInfo c
service_provider_multicert_test.go:42
FunctionTestSPWithoutDecryptionKeysErrorUnchanged
Without DecryptionKeys the error is what it always was.
service_provider_decryption_keys_test.go:155
FunctionTestSaferFlateReaderReadsMessageAtLimit
The limit applies to the bytes inflated, not to the size of the buffer they are read into: io.ReadAll grows its buffer past the limit well before the
flate_limit_test.go:27
FunctionTestSaferFlateReaderRejectsMessageOverLimit
(t *testing.T)
flate_limit_test.go:34
FunctionTestSchemacovArtifactResolve
(t *testing.T)
schema_coverage_test.go:245
FunctionTestSchemacovArtifactResponse
(t *testing.T)
schema_coverage_test.go:306
FunctionTestSchemacovAssertionElement
(t *testing.T)
schema_coverage_test.go:406
FunctionTestSchemacovAssertionElementPanicsOnInvalidNamespace
(t *testing.T)
schema_coverage_test.go:484
FunctionTestSchemacovAttributeValueElement
(t *testing.T)
schema_coverage_test.go:520
FunctionTestSchemacovAuthnRequestElement
(t *testing.T)
schema_coverage_test.go:146
FunctionTestSchemacovConditionsElements
(t *testing.T)
schema_coverage_test.go:501
FunctionTestSchemacovIssuerAndNameIDElement
(t *testing.T)
schema_coverage_test.go:207
FunctionTestSchemacovLogoutRequest
(t *testing.T)
schema_coverage_test.go:87
FunctionTestSchemacovLogoutResponse
(t *testing.T)
schema_coverage_test.go:539
FunctionTestSchemacovResponse
(t *testing.T)
schema_coverage_test.go:352
FunctionTestSchemacovStatusElement
(t *testing.T)
schema_coverage_test.go:284
FunctionTestSchemacovUnmarshalXMLBadTime
TestSchemacovUnmarshalXMLBadTime feeds an unparseable time attribute to each UnmarshalXML implementation that converts RelaxedTime values, so the Deco
schema_coverage_test.go:58
FunctionTestScopingElement
(t *testing.T)
schema_test.go:407
FunctionTestScopingElementMinimal
(t *testing.T)
schema_test.go:451
FunctionTestSendSOAPLogoutRequest
(t *testing.T)
service_provider_soap_logout_test.go:375
FunctionTestSendSOAPLogoutRequestPartialLogout
(t *testing.T)
service_provider_soap_logout_test.go:402
FunctionTestSendSOAPLogoutRequestRejects
(t *testing.T)
service_provider_soap_logout_test.go:417
FunctionTestSendSOAPLogoutRequestTransport
(t *testing.T)
service_provider_soap_logout_test.go:474
FunctionTestServeSLOEmpty
(t *testing.T)
samlsp/middleware_logout_test.go:534
FunctionTestServeSLOFrontChannelPartialLogout
When the other copies of the session cannot be ended because the revocation store is full, the browser's session is still deleted, the failure is repo
samlsp/front_channel_partial_logout_test.go:72
FunctionTestServeSLOFrontChannelPlainSuccess
When the other copies were ended, or the session provider cannot end sessions on the server at all, the IdP is answered with a plain Success: the brow
samlsp/front_channel_partial_logout_test.go:103
FunctionTestServeSLOFrontChannelProviderCannotTerminate
When the session provider cannot end sessions on the server, a front-channel LogoutRequest still deletes the browser's session and is answered with Su
samlsp/front_channel_revocation_test.go:152
FunctionTestServeSLOFrontChannelRevokesOtherCopies
A LogoutRequest the IdP sends through the browser ends the named session in other browsers too: a copy of the session with the same SessionIndex is re
samlsp/front_channel_revocation_test.go:98
FunctionTestServeSLOFrontChannelWithoutSessionIndex
A front-channel LogoutRequest without a SessionIndex ends every session of its NameID issued before it, but not a later login or other users' sessions
samlsp/front_channel_revocation_test.go:127
FunctionTestServeSLOLogoutRequestPostBinding
(t *testing.T)
samlsp/middleware_logout_test.go:505
FunctionTestServeSLOLogoutRequestRedirectBinding
(t *testing.T)
samlsp/middleware_logout_test.go:482
FunctionTestServeSLOLogoutRequestReplay
With ServiceProvider.ReplayCache set, ServeSLO answers an IdP-initiated LogoutRequest once and refuses the same request again.
samlsp/logout_replay_test.go:27
FunctionTestServeSLOLogoutRequestSimpleSignResponse
(t *testing.T)
samlsp/simplesign_logout_test.go:172
FunctionTestServeSLOLogoutRequestUnsigned
(t *testing.T)
samlsp/middleware_logout_test.go:522
FunctionTestServeSLOLogoutRequestWithSOAPLogoutBinding
The LogoutResponse to IdP initiated front-channel logout is sent through the browser when LogoutBinding is SOAP.
samlsp/soap_start_logout_test.go:342
FunctionTestServeSLOLogoutResponse
(t *testing.T)
samlsp/middleware_logout_test.go:356
FunctionTestServeSLOReceivesSimpleSign
ServeSLO accepts logout messages sent with the HTTP-POST-SimpleSign binding, whatever LogoutBinding is.
samlsp/simplesign_logout_test.go:214
FunctionTestServeSLOSOAPLogoutRequestCodecWithoutRevocation
A CookieSessionProvider whose Codec does not declare that its sessions can be revoked answers a SOAP LogoutRequest with Responder rather than Success:
samlsp/session_revocation_codec_test.go:67
FunctionTestServeSLOSOAPLogoutRequestCookieTampering
A client cannot get a revoked session back by changing its cookie: the claims that identify the session are covered by the JWT signature.
samlsp/middleware_soap_logout_test.go:246
FunctionTestServeSLOSOAPLogoutRequestEndsSession
A LogoutRequest from the IdP over SOAP for one SessionIndex ends that session: the next request with its cookie has no session. The user's other sessi
samlsp/middleware_soap_logout_test.go:176
FunctionTestServeSLOSOAPLogoutRequestRejects
Invalid SOAP LogoutRequests are answered with a SOAP Fault, passed to OnError, and end no session.
samlsp/middleware_soap_logout_test.go:293
FunctionTestServeSLOSOAPLogoutRequestReplay
A replayed SOAP LogoutRequest is refused when a ReplayCache is set.
samlsp/middleware_soap_logout_test.go:352
FunctionTestServeSLOSOAPLogoutRequestResponder
When the session provider cannot end sessions on the server, the IdP is told so with the status Responder.
samlsp/middleware_soap_logout_test.go:378
FunctionTestServeSLOSOAPLogoutRequestSessionWithoutIndex
A session that has no SessionIndex cannot be told apart from the one a LogoutRequest names, so it is ended too.
samlsp/middleware_soap_logout_test.go:234
FunctionTestServeSLOSOAPLogoutRequestWithoutSessionIndex
A LogoutRequest without a SessionIndex ends every session of its NameID issued before it (saml-core §3.7.1), but not a later login.
samlsp/middleware_soap_logout_test.go:209
FunctionTestServeSLOSOAPNotSOAPContentType
A posted body that is not text/xml is not taken for a SOAP message.
samlsp/middleware_soap_logout_test.go:366
FunctionTestServiceProviderCanHandleSignedAssertionsResponse
(t *testing.T)
service_provider_test.go:1796
FunctionTestServiceProviderLogoutResponseWithStatus
The status-taking LogoutResponse builders put the status in the response of each binding, signed as the binding requires, so that the signature covers
logout_response_status_test.go:55
FunctionTestServiceProviderMismatchedDestinationsWithSignaturePresent
(t *testing.T)
service_provider_test.go:1131
FunctionTestServiceProviderMissingDestinationWithSignaturePresent
(t *testing.T)
service_provider_test.go:1200
FunctionTestServiceProviderRequestsAdvertisedNameIDFormat
TestServiceProviderRequestsAdvertisedNameIDFormat checks the documented way for a service provider to work with a samlidp IdP that enforces the NameID
samlidp/nameid_formats_test.go:133
FunctionTestServicesCrud
(t *testing.T)
samlidp/service_test.go:14
FunctionTestSessionCookieSecureFromTLS
A server-side request carries no scheme in r.URL, only r.TLS. The session cookie is Secure whenever the request arrived over TLS, both when it is set
samlsp/session_cookie_secure_test.go:18
← previousnext →2,001–2,100 of 2,436, ranked by callers