MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions2,436 in github.com/crewjam/saml

FunctionTestCovHandleLoginNoCredentials
(t *testing.T)
samlidp/session_coverage_test.go:40
FunctionTestCovHandleStartAuthFlow
(t *testing.T)
samlsp/middleware_coverage_test.go:133
FunctionTestCovIDPInitiatedRelayState
(t *testing.T)
samlidp/session_coverage_test.go:180
FunctionTestCovJWTSessionCodecDecode
(t *testing.T)
samlsp/session_coverage_test.go:85
FunctionTestCovJWTSessionCodecEncodeError
(t *testing.T)
samlsp/session_coverage_test.go:78
FunctionTestCovJWTSessionCodecNew
--- session_jwt.go ---
samlsp/session_coverage_test.go:54
FunctionTestCovJWTTrackedRequestCodecDecode
--- request_tracker_jwt.go ---
samlsp/session_coverage_test.go:298
FunctionTestCovKeyTransports
(t *testing.T)
xmlenc/pubkey_coverage_test.go:38
FunctionTestCovListHandlersStoreErrors
(t *testing.T)
samlidp/handlers_coverage_test.go:42
FunctionTestCovListHandlersWriteErrors
(t *testing.T)
samlidp/handlers_coverage_test.go:51
FunctionTestCovMemoryStoreConcurrentAccess
(t *testing.T)
samlidp/samlidp_coverage_test.go:203
FunctionTestCovMemoryStorePutMarshalError
(t *testing.T)
samlidp/samlidp_coverage_test.go:194
FunctionTestCovNew
(t *testing.T)
samlsp/samlsp_coverage_test.go:260
FunctionTestCovNewAssertionConsumerServiceBindings
(t *testing.T)
samlsp/samlsp_coverage_test.go:237
FunctionTestCovNewDefaultsAndTrailingSlash
(t *testing.T)
samlidp/samlidp_coverage_test.go:141
FunctionTestCovNewInitializeServicesGetError
(t *testing.T)
samlidp/samlidp_coverage_test.go:165
FunctionTestCovNewInitializeServicesListError
(t *testing.T)
samlidp/samlidp_coverage_test.go:155
FunctionTestCovNewInitializeServicesLoadsStoredServices
(t *testing.T)
samlidp/samlidp_coverage_test.go:178
FunctionTestCovOAEPDefaultsToSHA1
Without a DigestMethod element, RSA-OAEP-MGF1P defaults to SHA-1.
xmlenc/pubkey_coverage_test.go:67
FunctionTestCovParseMetadata
--- fetch_metadata.go ---
samlsp/samlsp_coverage_test.go:85
FunctionTestCovPutHandlersBadRequest
(t *testing.T)
samlidp/handlers_coverage_test.go:110
FunctionTestCovPutHandlersStoreErrors
(t *testing.T)
samlidp/handlers_coverage_test.go:95
FunctionTestCovPutServiceViaPOST
(t *testing.T)
samlidp/handlers_coverage_test.go:126
FunctionTestCovPutUserPasswordHandling
(t *testing.T)
samlidp/handlers_coverage_test.go:135
FunctionTestCovRSADecryptErrors
(t *testing.T)
xmlenc/pubkey_coverage_test.go:129
FunctionTestCovRSAEncryptErrors
(t *testing.T)
xmlenc/pubkey_coverage_test.go:81
FunctionTestCovRandomBytesFillsBufferOnShortReads
(t *testing.T)
samlidp/samlidp_coverage_test.go:238
FunctionTestCovRandomBytesPanics
--- util.go ---
samlsp/samlsp_coverage_test.go:278
FunctionTestCovRandomBytesPanicsOnReadError
(t *testing.T)
samlidp/samlidp_coverage_test.go:222
FunctionTestCovRequireAccountSessionError
(t *testing.T)
samlsp/middleware_coverage_test.go:119
FunctionTestCovSendLoginFormCustomTemplate
(t *testing.T)
samlidp/session_coverage_test.go:154
FunctionTestCovSendLoginFormTemplateErrorPanics
(t *testing.T)
samlidp/session_coverage_test.go:167
FunctionTestCovServeACSAssertionHandlerError
(t *testing.T)
samlsp/middleware_coverage_test.go:104
FunctionTestCovServeACSParseFormError
(t *testing.T)
samlsp/middleware_coverage_test.go:92
FunctionTestCovServeMetadataWriteError
(t *testing.T)
samlsp/middleware_coverage_test.go:85
FunctionTestCovSessionWithECDSAKeys
TestCovSessionWithECDSAKeys checks that sessions can be created and read back with every supported ECDSA curve. Before the fix, ES256 was used for eve
samlsp/samlsp_coverage_test.go:172
FunctionTestCovStripPadding
(t *testing.T)
xmlenc/cbc_coverage_test.go:133
FunctionTestCovValidateRSAKeyIfPresent
(t *testing.T)
xmlenc/decrypt_coverage_test.go:53
FunctionTestCreateLinkRejectsBadRequests
(t *testing.T)
example/service_test.go:85
FunctionTestCreateLinkStoresTargetAndOwner
(t *testing.T)
example/service_test.go:46
FunctionTestDataAES128
(t *testing.T)
xmlenc/xmlenc_test.go:13
FunctionTestDecryptAES256GCMWithOAEPSHA256
TestDecryptAES256GCMWithOAEPSHA256 decrypts a document shaped the way interoperating identity providers emit it by default: the data encrypted with AE
xmlenc/algorithms_test.go:52
FunctionTestDecryptRejectsMalformedCiphertextLength
Ciphertext too short or of the wrong length is refused with an error rather than a panic.
xmlenc/short_ciphertext_test.go:28
FunctionTestDecryptWithKeysBoundsEncryptedKeyCandidates
An encrypted element may arrive in an unsigned Response, and each xenc:EncryptedKey costs a private-key operation per decryption key, so only the firs
sp_review_encrypted_key_limit_test.go:15
FunctionTestDecryptionErrorsIndistinguishable
A sender of modified CBC ciphertexts must not learn from the error whether one failed on its padding or on the XML it decrypted to.
decryption_errors_test.go:29
FunctionTestDeeplyNestedResponseRefused
(t *testing.T)
xml_structure_budget_test.go:68
FunctionTestDefaultAssertionMakerRequestedAttributeNames
Requested attribute names in the basic or unspecified format, or with no NameFormat (which means unspecified, saml-core §2.7.3.1), are matched with pu
idp_review_requested_attributes_test.go:13
FunctionTestDefaultLoggerIsSet
(t *testing.T)
logger/logger_test.go:12
FunctionTestDefaultOnErrorLogsInvalidResponseError
(t *testing.T)
samlsp/error_test.go:32
FunctionTestDefaultOnErrorLogsOtherErrors
(t *testing.T)
samlsp/error_test.go:54
FunctionTestDefaultRequestTrackerSameSite
The default options, which leave CookieSameSite unset, issue a tracking cookie that the browser will send with the IDP's cross-site POST.
samlsp/request_tracker_cookie_samesite_test.go:58
FunctionTestDefaultServiceProviderAcsIndex
(t *testing.T)
samlsp/new_test.go:83
FunctionTestDefaultSessionProviderCookieDomain
(t *testing.T)
samlsp/session_cookie_test.go:52
FunctionTestDefaultSessionProviderRevocations
(t *testing.T)
samlsp/middleware_soap_logout_test.go:519
FunctionTestDeleteExpiredSessions
Sessions that expired more than expiredSessionRetention ago are deleted with their participants; live and recently expired ones are kept.
samlidp/session_expiry_test.go:32
FunctionTestDeleteServiceKeepsEntityRegisteredElsewhere
Deleting one of two services with the same entity ID keeps the entity accepted with the other one's metadata.
samlidp/service_registration_test.go:64
FunctionTestDeleteSessionCookieAttributes
DeleteSession expires the session cookie with the same Secure, HttpOnly and SameSite attributes as the cookie CreateSession sets, not with the attribu
samlsp/delete_session_cookie_test.go:16
FunctionTestDeleteSessionDeletesParticipants
(t *testing.T)
samlidp/logout_propagation_test.go:177
FunctionTestDestinationMatchesAcsUrlButNotCurrentUrlWithSignaturePresent
(t *testing.T)
service_provider_test.go:1176
FunctionTestDestinationMatchesCurrentUrlButNotAcsUrlWithSignaturePresent
(t *testing.T)
service_provider_test.go:1152
FunctionTestDummyPasswordHashIsValid
(t *testing.T)
samlidp/session_timing_test.go:15
FunctionTestDuration
(t *testing.T)
duration_test.go:27
FunctionTestDurationExtremesRoundTrip
TestDurationExtremesRoundTrip checks that the largest and smallest durations are written in a form that reads back as the same value.
schema_review_duration_test.go:46
FunctionTestDurationUnmarshal
(t *testing.T)
duration_test.go:72
FunctionTestDurationUnmarshalCollapsesWhitespace
TestDurationUnmarshalCollapsesWhitespace checks that surrounding XML whitespace is ignored, as xsd:duration's whiteSpace="collapse" requires.
schema_review_duration_test.go:61
FunctionTestDurationUnmarshalExactSeconds
TestDurationUnmarshalExactSeconds checks that fractional seconds are read exactly rather than through a float.
schema_review_duration_test.go:34
FunctionTestDurationUnmarshalOutOfRange
TestDurationUnmarshalOutOfRange checks that a duration too large for a time.Duration is refused rather than wrapped around to a small or negative valu
schema_review_duration_test.go:15
FunctionTestEcdsaDERToJWS
(t *testing.T)
samlsp/jwt_signer_test.go:55
FunctionTestElementToBytesArtifactResponseInSOAPEnvelope
In the artifact binding the SAML prefixes are often declared on the SOAP envelope. The assertion nested in the ArtifactResponse must still bind.
element_to_bytes_test.go:74
FunctionTestElementToBytesAzureOwnDefaultNamespaces
Azure AD sends the Assertion and its Signature unprefixed, each declaring its own default namespace. The serialized assertion must keep both namespace
element_to_bytes_test.go:109
FunctionTestElementToBytesInheritedDefaultNamespace
An assertion in the default namespace, declared on the enclosing Response (as FusionAuth sends it), must keep that namespace when serialized alone.
element_to_bytes_test.go:41
FunctionTestElementToBytesInheritedForeignPrefix
A prefix declared on an ancestor that differs from the element's own prefix (here ds:, declared only on the Response) must still be declared.
element_to_bytes_test.go:57
FunctionTestElementToBytesNearestDeclarationWins
The nearest declaration of a prefix wins over one further out, and a declaration on the element itself is never overridden.
element_to_bytes_test.go:92
FunctionTestEncryptFillsRandomBuffersFromShortReads
TestEncryptFillsRandomBuffersFromShortReads checks that the session key, the CBC IV and the element IDs are filled completely when RandReader returns
xmlenc/rand_reader_test.go:15
FunctionTestEncryptLogoutRequestNameIDErrors
(t *testing.T)
logout_request_identifiers_test.go:74
FunctionTestEncryptOAEPMGF
encryptOAEPMGF produces ciphertexts that crypto/rsa decrypts, whichever OAEP digest and MGF1 hash are combined, with and without a label, up to the la
xmlenc/oaep_mgf_test.go:19
FunctionTestEncryptOAEPMGFErrors
(t *testing.T)
xmlenc/oaep_mgf_test.go:45
FunctionTestEncryptedKeyRecipients_CandidateOrder
(t *testing.T)
encrypted_key_recipients_test.go:147
FunctionTestEncryptedKeyRecipients_IdPEncryptedID
(t *testing.T)
encrypted_key_recipients_test.go:166
FunctionTestEncryptedKeyRecipients_SP
(t *testing.T)
encrypted_key_recipients_test.go:90
FunctionTestEncryptedKeyRefusesBlockCipher
TestEncryptedKeyRefusesBlockCipher checks that an EncryptedKey naming a block cipher is refused, so that a captured content key cannot be nested insid
xmlenc/encrypted_key_algorithm_test.go:31
FunctionTestEndpointLocationWhitespace
TestEndpointLocationWhitespace checks that whitespace around an endpoint's Binding and Location, which xs:anyURI's whiteSpace="collapse" allows, is re
schema_review_metadata_test.go:43
FunctionTestEnforceNameIDPolicyWithEmail
TestEnforceNameIDPolicyWithEmail checks that, with EnforceNameIDPolicy, a samlidp IdP gives a user with an email address an emailAddress NameID when t
samlidp/nameid_formats_test.go:93
FunctionTestEnforceNameIDPolicyWithoutEmail
TestEnforceNameIDPolicyWithoutEmail checks that, with EnforceNameIDPolicy, a user without an email address gets a transient NameID when the service pr
samlidp/nameid_formats_test.go:114
FunctionTestEntityDescriptorOmitsUnsetValidUntil
(t *testing.T)
metadata_test.go:177
FunctionTestExpireSessionCookieMatchesSessionCookie
The cookie that deletes the session cookie has the session cookie's attributes, so that browsers replace it.
samlidp/session_cookie_test.go:14
FunctionTestFetchMetadata
(t *testing.T)
samlsp/fetch_metadata_test.go:17
FunctionTestFetchMetadataByEntityID
(t *testing.T)
samlsp/fetch_metadata_test.go:126
FunctionTestFetchMetadataNilClient
FetchMetadata uses a default client when httpClient is nil, instead of panicking.
samlsp/fetch_metadata_status_test.go:17
FunctionTestFetchMetadataReadsMetadataUpToMaxMetadataSize
(t *testing.T)
samlsp/fetch_metadata_limit_test.go:37
FunctionTestFetchMetadataRejectsInvalid
(t *testing.T)
samlsp/fetch_metadata_test.go:33
FunctionTestFetchMetadataRejectsNon2xx
Only a 2xx response is taken as metadata: the body of a redirect the client does not follow is refused even if it looks like metadata.
samlsp/fetch_metadata_status_test.go:34
FunctionTestFetchMetadataStopsReadingAtMaxMetadataSize
A metadata endpoint can send any amount of data; FetchMetadata must stop reading at MaxMetadataSize rather than hold all of it in memory.
samlsp/fetch_metadata_limit_test.go:24
FunctionTestFetchSignedMetadata
(t *testing.T)
samlsp/verify_metadata_signature_test.go:188
FunctionTestFindChildrenCostIndependentOfNamespaceDeclarations
Looking for the Signature among an element's children built the namespace context of every matching child from scratch, copying every declaration in s
find_children_test.go:56
FunctionTestForceAuthnAndIsPassiveSendsNoPassive
TestForceAuthnAndIsPassiveSendsNoPassive checks that a request with both ForceAuthn and IsPassive set gets NoPassive, with or without a session, since
samlidp/force_authn_passive_test.go:231
FunctionTestForceAuthnFalseReusesSession
TestForceAuthnFalseReusesSession checks that an existing session is still used when ForceAuthn is absent or "false".
samlidp/force_authn_passive_test.go:173
FunctionTestForceAuthnIgnoresExistingSession
TestForceAuthnIgnoresExistingSession checks that ForceAuthn="true" makes the user log in again although they have a session, and that the assertion ca
samlidp/force_authn_passive_test.go:153
FunctionTestFormReplayAfterLogin
(t *testing.T)
samlsp/form_replay_test.go:203
FunctionTestFormReplayDoesNotSave
(t *testing.T)
samlsp/form_replay_test.go:95
← previousnext →1,401–1,500 of 2,436, ranked by callers