MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions2,436 in github.com/crewjam/saml

↓ 4 callersMethoddecryptElement
(encryptedEl *etree.Element)
service_provider.go:1895
↓ 4 callersFunctiondefaultSignatureMethod
defaultSignatureMethod returns the signature method used when none is configured: SHA-256 with ECDSA for an ECDSA key, and with RSA otherwise. SHA-1 b
metadata.go:325
↓ 4 callersMethoddeleteDueSessions
deleteDueSessions deletes the sessions whose deadline has passed. Each one is read again from the Store first: one deleted meanwhile is skipped, and o
samlidp/session_expiry.go:143
↓ 4 callersFunctioneidNameIDEl
eidNameIDEl returns nameID as a standalone saml:NameID element.
encrypted_id_test.go:41
↓ 4 callersFunctionfetchMetadataBytes
(ctx context.Context, httpClient *http.Client, metadataURL url.URL)
samlsp/fetch_metadata.go:317
↓ 4 callersFunctionfingerprint
(cert *x509.Certificate, fingerprintAlgorithm string)
service_provider.go:925
↓ 4 callersMethodfullNameIDCookie
fullNameIDCookie returns a session cookie for alice, as JWTSessionCodec makes it from an assertion, so that it records her full NameID, with the given
samlsp/soap_start_logout_test.go:150
↓ 4 callersMethodhandleArtifactRequest
(ctx context.Context, artifactID string, possibleRequestIDs []string)
service_provider.go:1330
↓ 4 callersFunctionidpcovCertKeyDescriptor
(use string, data string)
idp_coverage_test.go:110
↓ 4 callersMethodlast
last returns the delay of the timer armed last.
samlidp/session_expiry_test.go:66
↓ 4 callersFunctionloadTestKeyPair
(t *testing.T)
xmlenc/encrypted_key_algorithm_test.go:16
↓ 4 callersMethodlogoutResponseStatus
logoutResponseStatus checks that body is a SOAP envelope holding a LogoutResponse to the request of soapLogoutRequest, signed by the SP, and returns i
samlsp/middleware_soap_logout_test.go:151
↓ 4 callersFunctionnameIDRevocationKey
nameIDRevocationKey returns the revocation key of every session of the user whose NameID has the value nameID. Sessions are matched by the NameID val
samlsp/session_revocation.go:134
↓ 4 callersFunctionnameidMake
(t *testing.T, req *IdpAuthnRequest, session *Session)
idp_nameid_test.go:40
↓ 4 callersFunctionnameidRequest
nameidRequest returns a request for MakeAssertion whose AuthnRequest has the given NameIDPolicy (nil for none).
idp_nameid_test.go:22
↓ 4 callersFunctionnewSimpleSignLogoutTest
newSimpleSignLogoutTest returns a logoutTest whose middleware signs requests and prefers the HTTP-POST-SimpleSign binding for logout.
samlsp/simplesign_logout_test.go:62
↓ 4 callersFunctionoaep11
()
xmlenc/pubkey.go:242
↓ 4 callersMethodonError
(w http.ResponseWriter, r *http.Request, status int, err error)
identity_provider.go:732
↓ 4 callersFunctiononeloginSP
oneloginSP returns a function that parses the signed OneLogin response in testdata, at the moment it was issued, with a service provider using cache.
replay_cache_test.go:37
↓ 4 callersMethodparse
parse parses the fixture's response at an SP whose Key, EncryptionKey and DecryptionKeys are set by configure.
service_provider_decryption_keys_test.go:59
↓ 4 callersFunctionpastDeadline
pastDeadline reports whether now is at or after notOnOrAfter, allowing for clock skew. NotOnOrAfter is exclusive: it is "the time instant at which the
service_provider.go:2349
↓ 4 callersMethodredirectBindingURL
redirectBindingURL returns destination with the HTTP-Redirect binding parameters for encodedMessage appended. If signatureMethod is set the query is s
redirect_binding.go:362
↓ 4 callersMethodreplaceDestination
(newDestination string)
service_provider_test.go:1075
↓ 4 callersFunctionrequestAs
(method, body, account string)
example/service_test.go:16
↓ 4 callersFunctionrequestWithCookie
(c *http.Cookie)
samlsp/middleware_soap_logout_test.go:201
↓ 4 callersFunctionresetLinks
(t *testing.T)
example/service_test.go:29
↓ 4 callersFunctionschemacovPtr
(v T)
schema_coverage_test.go:53
↓ 4 callersFunctionschemacovWrap
schemacovWrap wraps a fragment that uses the saml/samlp prefixes in a root element that declares them, so encoding/xml resolves namespaces correctly.
schema_coverage_test.go:44
↓ 4 callersMethodscriptNonce
scriptNonce returns the nonce for the auto-submit script of a form, or "" if ScriptNonce is not set.
samlsp/middleware.go:315
↓ 4 callersFunctionsetNoCacheHeaders
setNoCacheHeaders sets the headers the SAML bindings ask of an HTTP response that carries a SAML message, so that neither the browser nor a proxy keep
samlsp/middleware.go:327
↓ 4 callersMethodsign
sign returns doc with an enveloped signature on its root element, after mutate (if not nil) has changed the signed element.
samlsp/verify_metadata_signature_test.go:76
↓ 4 callersFunctionsignedSPMetadata
signedSPMetadata returns the metadata of sp, signed with its key and certificate, serialized as a consumer receives it.
samlidp/signed_sp_metadata_test.go:29
↓ 4 callersFunctionspLogoutResponse
spLogoutResponse returns the browser's request carrying a LogoutResponse from sp to the IdP, signed as the binding requires.
identity_provider_logout_propagation_test.go:219
↓ 4 callersFunctionspecParseForm
specParseForm extracts the method, action and hidden controls of the first HTML form in body, unescaping HTML entities.
spec_bindings_test.go:36
↓ 4 callersFunctionspecProtoSLOTest
specProtoSLOTest is newSLOTest, restoring the package globals it changes.
spec_core_protocols_test.go:41
↓ 4 callersFunctionstoreAndSchedule
storeAndSchedule stores a session expiring at expire and schedules its deletion, as a login does.
samlidp/session_expiry_test.go:86
↓ 4 callersFunctionstrPtr
(s string)
simplesign_binding_test.go:39
↓ 4 callersFunctiontestRSAKey
(t *testing.T, name string)
service_provider_decryption_keys_test.go:89
↓ 4 callersFunctiontrackedRequestMaxAge
trackedRequestMaxAge returns the lifetime of tracked requests for opts.
samlsp/new.go:331
↓ 4 callersMethodunmarshalAndValidateLogoutRequest
(root *etree.Element, retErr *InvalidResponseError)
service_provider.go:3629
↓ 4 callersFunctionunsignedSPMetadata
(t *testing.T, sp saml.ServiceProvider)
samlidp/signed_sp_metadata_test.go:40
↓ 4 callersMethodvalidateLogoutRequest
validateLogoutRequest validates the LogoutRequest fields. Returns a nil error if the LogoutRequest is valid.
service_provider.go:3647
↓ 4 callersFunctionvalidateSignedMetadata
validateSignedMetadata serializes el, parses it again, as a consumer would, and validates its signature against cert. It returns the parsed root eleme
sp_signed_metadata_test.go:24
↓ 3 callersFunctionAttributeFromContext
AttributeFromContext is a convenience method that returns the named attribute from the session, if available.
samlsp/session.go:92
↓ 3 callersMethodCreateSession
CreateSession is called when we have received a valid SAML assertion and should create a new session and modify the http response accordingly, e.g. by
samlsp/session_cookie.go:76
↓ 3 callersMethodCreateSessionFromAssertion
CreateSessionFromAssertion is invoked by ServeHTTP when we have a new, valid SAML assertion.
samlsp/middleware.go:355
↓ 3 callersFunctionDefaultAuthnContextClassStrengths
DefaultAuthnContextClassStrengths returns the ranking of authentication context classes the IdP uses for the "minimum", "maximum" and "better" Compari
identity_provider_authn_context.go:37
↓ 3 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:54
↓ 3 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:566
↓ 3 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:761
↓ 3 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1902
↓ 3 callersMethodHash
()
xmlenc/xmlenc.go:42
↓ 3 callersMethodMakePostLogoutResponseWithStatus
MakePostLogoutResponseWithStatus is like MakePostLogoutResponse, but the response carries status instead of Success (see MakeLogoutResponseWithStatus)
service_provider.go:3197
↓ 3 callersMethodMakeSOAPLogoutResponse
MakeSOAPLogoutResponse returns a LogoutResponse to the LogoutRequest logoutRequestID with the given status, to send back to the IdP with the SOAP bind
service_provider_soap_logout.go:152
↓ 3 callersMethodMakeSimpleSignLogoutResponse
MakeSimpleSignLogoutResponse creates a SAML LogoutResponse for the IDP's HTTP-POST-SimpleSign single logout endpoint. It returns an auto-submitting HT
simplesign_binding.go:449
↓ 3 callersMethodMarshalText
MarshalText implements encoding.TextMarshaler
time.go:32
↓ 3 callersFunctionOAEP_SHA256
OAEP_SHA256 returns a version of RSA that implements RSA in OAEP mode (XML Encryption 1.1). By default the block cipher used is AES-256 CBC and the di
xmlenc/pubkey.go:202
↓ 3 callersFunctionOAEP_SHA512
OAEP_SHA512 returns a version of RSA that implements RSA in OAEP mode (XML Encryption 1.1). By default the block cipher used is AES-256 CBC and the di
xmlenc/pubkey.go:236
↓ 3 callersFunctionParseSignedMetadata
ParseSignedMetadata is ParseMetadata for metadata whose root element must carry a valid enveloped XML signature made with one of certs, the IDP's (or
samlsp/fetch_metadata.go:146
↓ 3 callersFunctionParseSignedMetadataByEntityID
ParseSignedMetadataByEntityID is ParseMetadataByEntityID for metadata whose root element must carry a valid enveloped XML signature made with one of c
samlsp/fetch_metadata.go:157
↓ 3 callersMethodRead
(p []byte)
xmlenc/helpers_coverage_test.go:26
↓ 3 callersMethodServeACS
ServeACS handles requests for the SAML ACS endpoint.
samlsp/middleware.go:163
↓ 3 callersFunctionUnregisterDecrypter
UnregisterDecrypter removes the decrypter registered for algorithm, an EncryptionMethod URI, so that Decrypt returns ErrAlgorithmNotImplemented for do
xmlenc/xmlenc.go:76
↓ 3 callersFunctionacsLocations
(md *saml.EntityDescriptor)
samlidp/signed_sp_metadata_test.go:88
↓ 3 callersFunctionacsselCheckSuccess
acsselCheckSuccess checks that w holds a Response with an assertion, posted to location.
idp_acs_selection_test.go:97
↓ 3 callersFunctionacsselCheckUnsupportedBinding
acsselCheckUnsupportedBinding checks that w holds an error Response with the status Requester / UnsupportedBinding, posted to location, and that the u
idp_acs_selection_test.go:75
↓ 3 callersFunctionaqTestAssertion
(nameID saml.NameID)
samlsp/middleware_attribute_query_test.go:37
↓ 3 callersFunctionaqVerify
aqVerify verifies the enveloped signature of el with the SP certificate.
service_provider_attribute_query_test.go:125
↓ 3 callersFunctionartifactdecIDPSourceID
()
artifact_decoding_test.go:32
↓ 3 callersFunctionartifactdecMake
artifactdecMake returns a base64 type 0x0004 artifact (saml-bindings-2.0-os §3.6.4.1) with the given EndpointIndex, SourceID and a MessageHandle fille
artifact_decoding_test.go:23
↓ 3 callersFunctionartifactdecSetup
(t *testing.T)
artifact_decoding_test.go:44
↓ 3 callersFunctionassertRegisteredAfterRestart
assertRegisteredAfterRestart checks that initializeServices registers the stored service.
samlidp/signed_service_store_test.go:57
↓ 3 callersFunctionassertStoredAsReceived
assertStoredAsReceived checks that the service PUT with metadata was stored as it was received: the store holds the exact bytes, GET services/sp retur
samlidp/signed_service_store_test.go:37
↓ 3 callersMethodassertion
assertion checks that body posts a successful Response to request and returns its assertion.
samlidp/force_authn_passive_test.go:112
↓ 3 callersFunctionbaseIDElement
baseIDElement returns a saml:BaseID element for alice.
logout_request_identifiers_test.go:225
↓ 3 callersMethodcbcGarbage
cbcGarbage returns a CBC EncryptedAssertion whose ciphertext and wrapped key are garbage, so that any attempt to decrypt it fails, and whose Encryptio
cbc_integrity_test.go:41
↓ 3 callersMethodcbcSignedEncrypted
cbcSignedEncrypted returns the IdP-signed assertion of e, encrypted with AES-128-CBC.
cbc_integrity_test.go:33
↓ 3 callersFunctioncheckDetachedSignature
checkDetachedSignature returns nil if signature is a valid signature over signedContent, made with algorithm by the key of one of certs. Unless ignore
redirect_binding.go:223
↓ 3 callersFunctioncheckSPSimpleSignSignature
checkSPSimpleSignSignature checks the HTTP-POST-SimpleSign signature of m, a message from the service provider whose metadata is metadata, against the
simplesign_idp.go:35
↓ 3 callersFunctioncheckSimpleSignForm
checkSimpleSignForm checks that resp holds an auto-submitting HTTP-POST-SimpleSign form of messageParam (SAMLRequest or SAMLResponse), posted to the I
samlsp/simplesign_logout_test.go:85
↓ 3 callersFunctioncheckXMLSignatureNotSHA1
checkXMLSignatureNotSHA1 returns an error if reject is set and the XML signature sigEl (a ds:Signature element) uses a SHA-1 based SignatureMethod or
sha1_policy.go:41
↓ 3 callersFunctionconditionsUnknownMutate
(t *testing.T, mutate func(*etree.Element))
conditions_unknown_test.go:53
↓ 3 callersMethodconsumeAssertion
consumeAssertion records assertion in the ReplayCache, if one is set, refusing it if it was recorded before.
service_provider.go:2392
↓ 3 callersFunctionconsumeLogoutRequest
consumeLogoutRequest records the ID of req in cache, if cache is not nil, refusing req if it was recorded before. req must already be validated.
service_provider.go:2424
↓ 3 callersMethodcontinueLogout
continueLogout sends a LogoutRequest to the next participant of state that can be sent one, and finishes the logout when there is none left.
identity_provider_logout_propagation.go:285
↓ 3 callersFunctioncovSaveGlobals
covSaveGlobals records the package globals mutated by NewMiddlewareTest and restores them when the test finishes.
samlsp/samlsp_coverage_test.go:30
↓ 3 callersFunctioncovSetRandReader
covSetRandReader replaces RandReader for the duration of the test.
xmlenc/helpers_coverage_test.go:35
↓ 3 callersFunctioncreateLink
(t *testing.T, target, account string)
example/service_test.go:36
↓ 3 callersFunctiondecryptForFuzzing
decryptForFuzzing parses data as XML and decrypts its root element with key. It is what the fuzz tests exercise.
xmlenc/fuzz_coverage_test.go:122
↓ 3 callersFunctiondecryptIdentifier
decryptIdentifier decrypts encryptedID, a saml:EncryptedID element, with decrypt, which returns the root element of the plaintext. It returns the saml
encrypted_id.go:32
↓ 3 callersFunctiondefaultSigningMethodForKey
defaultSigningMethodForKey returns the signature method used for signed requests when Options.SignRequest is set. SHA-1 based methods are deprecated f
samlsp/new.go:464
↓ 3 callersMethodeidAssertion
eidAssertion is e.assertion() with its Subject NameID encrypted.
encrypted_id_test.go:106
↓ 3 callersFunctioneidEncrypt
eidEncrypt encrypts el, serialized on its own, to cert and wraps it in a saml:EncryptedID, as an IdP does (saml-core §2.2.4).
encrypted_id_test.go:26
↓ 3 callersFunctionelementToString
(el *etree.Element)
service_provider.go:3890
↓ 3 callersFunctionencryptOAEPMGF
encryptOAEPMGF encrypts msg with RSA-OAEP as RFC 8017 section 7.1.1 describes, using opts.Hash for the label digest and opts.MGFHash for MGF1. It is
xmlenc/oaep_mgf.go:18
↓ 3 callersFunctionencryptedAssertionAlgorithm
encryptedAssertionAlgorithm makes and encrypts an assertion for a validated request from the test SP, after edit has adjusted the request, and returns
identity_provider_assertion_encrypter_test.go:69
↓ 3 callersMethodexpireSessionCookie
expireSessionCookie tells the browser to delete the session cookie. It has the attributes of the session cookie itself (see sessionCookie), so that br
samlidp/logout.go:118
↓ 3 callersMethodfrontChannelLogout
frontChannelLogout sends the IdP's LogoutRequest for alice, with the given SessionIndexes, to the SLO endpoint through the browser that holds cookie,
samlsp/front_channel_revocation_test.go:62
↓ 3 callersFunctiongetDefaultSigningMethod
(signer crypto.Signer)
samlsp/new.go:242
↓ 3 callersMethodgetSPEncryptionCert
getSPEncryptionCert returns the certificate which we can use to encrypt things to the SP, or os.ErrNotExist if no such certificate is found.
identity_provider.go:1854
← previousnext →401–500 of 2,436, ranked by callers