MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions2,436 in github.com/crewjam/saml

↓ 3 callersFunctionidentifierEncrypter
identifierEncrypter returns the Encrypter for an EncryptedID: configured, if it is set, and otherwise RSA-OAEP-MGF1P (with a SHA-1 digest, which all i
encrypted_id.go:136
↓ 3 callersFunctioninnerSigOtherSigner
A signature that is present must be valid even when an enclosing message is signed (saml-core §2.3.3, saml-profiles §4.1.4.3): a signed Response does
inner_signature_test.go:27
↓ 3 callersFunctionisRegistered
(test *ServerTest, entityID string)
samlidp/service_registration_test.go:40
↓ 3 callersFunctionisSimpleSignRequest
isSimpleSignRequest reports whether the posted form of req carries a SigAlg or Signature control, which marks it as an HTTP-POST-SimpleSign message (s
simplesign_binding.go:102
↓ 3 callersFunctionissueDeadline
issueDeadline is the last moment validateAssertion accepts assertion by its IssueInstant.
service_provider.go:2313
↓ 3 callersFunctionissueInstantDeadline
issueInstantDeadline is the last moment a message issued at issueInstant is accepted: MaxIssueDelay later. MaxIssueDelay already allows for some clock
service_provider.go:2320
↓ 3 callersFunctionjwtPayload
jwtPayload returns the claims of the JWT token, as JSON object keys.
samlsp/middleware_attribute_query_test.go:42
↓ 3 callersFunctionlegacySessionParticipantsKey
legacySessionParticipantsKey is where participants were stored before each had its own key: one list per session. It is still read and deleted, so par
samlidp/logout_propagation.go:21
↓ 3 callersMethodlogoutResponse
(status string)
samlsp/middleware_logout_test.go:174
↓ 3 callersMethodlogoutStateSigner
logoutStateSigner returns the key the IdP signs with.
identity_provider_logout_propagation.go:795
↓ 3 callersMethodlookupSession
lookupSession returns the unexpired session named by the session cookie in r, or nil if there is no such cookie, no such session or the session has ex
samlidp/session.go:185
↓ 3 callersMethodmakeLogoutRequest
makeLogoutRequest returns an unsigned LogoutRequest, whose NameID is encrypted if sp.EncryptLogoutNameID is set.
service_provider.go:2895
↓ 3 callersFunctionmakeLogoutResponseWithStatus
makeLogoutResponseWithStatus returns the LogoutResponse to req after the logout was propagated: StatusSuccess, with the second-level status StatusPart
identity_provider_logout_propagation.go:591
↓ 3 callersFunctionmultiKeyEncrypt
multiKeyEncrypt encrypts plaintext with AES-128-CBC under a fresh content key, inside an element named tag, and wraps that key with RSA-OAEP-MGF1P in
encrypted_key_recipients_test.go:40
↓ 3 callersFunctionnameidPolicy
(format, spNameQualifier string)
idp_nameid_test.go:29
↓ 3 callersFunctionnewAQServer
(t *testing.T, e *spcovEnv)
service_provider_attribute_query_test.go:617
↓ 3 callersFunctionoaepDocument
oaepDocument builds an EncryptedData element whose AES-256-CBC key is wrapped with RSA-OAEP using the given options, the way another implementation wo
xmlenc/oaep_test.go:51
↓ 3 callersFunctionotherKey
otherKey returns a key that no test certificate trusts as the IDP's, and its certificate.
simplesign_binding_test.go:123
↓ 3 callersFunctionparseEl
(s string)
testdata/entra_id_gen/main.go:109
↓ 3 callersMethodparseResponse
validateXMLResponse validates the SAML IDP response and returns the verified assertion. This function handles decrypting the message, verifying the d
service_provider.go:1644
↓ 3 callersMethodpartial
partial reports whether some participant of the logout was not logged out.
identity_provider_logout_propagation.go:279
↓ 3 callersFunctionplainHTTPServer
plainHTTPServer serves handler over plain http, and counts the requests it gets.
service_provider_soap_https_test.go:15
↓ 3 callersMethodpushSessionExpiry
pushSessionExpiry adds entries to the heap and re-arms the timer if the earliest deadline changed.
samlidp/session_expiry.go:102
↓ 3 callersFunctionrandomBytes
(n int)
samlidp/util.go:28
↓ 3 callersFunctionreadLimited
readLimited reads r to the end, failing if it holds more than limit bytes.
soap.go:164
↓ 3 callersFunctionreceivedChildren
receivedChildren returns the childNS/childTag children of read, and the children of received they correspond to, one for one. read is received itself,
service_provider.go:3786
↓ 3 callersFunctionredirectSign
(t *testing.T, key crypto.Signer, sigAlg, content string)
redirect_binding_test.go:58
↓ 3 callersMethodreportBackChannelError
reportBackChannelError passes err to OnError, for logging, and discards what OnError writes: the request comes from the IDP, not a browser, and is ans
samlsp/middleware_soap_logout.go:59
↓ 3 callersFunctionreqSubjCheckSuccess
reqSubjCheckSuccess checks that the IdP answered with an assertion about alice@example.com that the SP accepts.
idp_request_subject_test.go:67
↓ 3 callersMethodrequests
requests returns the LogoutRequests the IdP received, after checking that each is signed by the SP.
samlsp/soap_start_logout_test.go:110
↓ 3 callersMethodresponseWriter
responseWriter returns idp.ResponseWriter, or DefaultResponseWriter if it is not set.
identity_provider.go:937
↓ 3 callersMethodselectACSEndpoint
selectACSEndpoint sets SPSSODescriptor and ACSEndpoint to the first AssertionConsumerService endpoint in the service provider metadata for which match
identity_provider.go:1314
↓ 3 callersMethodselectDefaultACSEndpoint
selectDefaultACSEndpoint selects the service provider's default AssertionConsumerService endpoint among those the IdP can send a Response to (see isSe
identity_provider.go:1301
↓ 3 callersFunctionselfSignedCert
(t *testing.T, key crypto.Signer)
crypto_signer_test.go:32
↓ 3 callersMethodsendLoginForm
sendLoginForm produces a form which requests a username and password. If the form is shown during an SP-initiated flow, it directs the user back to th
samlidp/session.go:290
↓ 3 callersFunctionserveService
(t *testing.T, test *ServerTest, method, id string, body []byte)
samlidp/service_registration_test.go:32
↓ 3 callersMethodsessionCookie
sessionCookie returns the session cookie with value and maxAge. The cookie is Secure when the IdP is served over https: when its configured URL (Opti
samlidp/logout.go:136
↓ 3 callersFunctionsessionDeleteAt
sessionDeleteAt returns when session is due to be deleted.
samlidp/session_expiry.go:60
↓ 3 callersFunctionsessionIndexRevocationKey
sessionIndexRevocationKey returns the revocation key of the sessions of the user whose NameID has the value nameID with the given SessionIndex.
samlsp/session_revocation.go:141
↓ 3 callersFunctionsessionKeyTestOptions
(t *testing.T, sessionKey crypto.Signer)
samlsp/session_key_test.go:19
↓ 3 callersMethodsessionParticipantsOf
sessionParticipantsOf is sessionParticipants, and also reports whether exclude may be a participant of the sessions match selects: false only when the
identity_provider_logout_propagation.go:113
↓ 3 callersFunctionsessionParticipantsPrefix
sessionParticipantsPrefix is the prefix of the keys of the participants recorded for a session.
samlidp/logout_propagation.go:27
↓ 3 callersFunctionsetWrongGlobalClock
setWrongGlobalClock points the deprecated package-level clocks at a time far from any Clock a test sets, to show that the Clock fields take precedence
samlsp/clock_test.go:20
↓ 3 callersFunctionsidBaseID
sidBaseID returns a standalone saml:BaseID element. BaseID is abstract: its content is defined by the xsi:type extension (saml-core §2.2.3).
subject_identifiers_test.go:18
↓ 3 callersFunctionsidEncrypt
sidEncrypt encrypts el to the certificate of e's SP (or to cert, if set) and wraps the xenc:EncryptedData in a new element named wrapper, such as saml
subject_identifiers_test.go:32
↓ 3 callersFunctionsignDetached
signDetached signs content with signingContext and returns the base64 encoded signature, the value of the Signature parameter of the HTTP-Redirect and
redirect_binding.go:247
↓ 3 callersFunctionsignMetadata
signMetadata returns ed as an XML element carrying an enveloped signature made with signingContext (saml-metadata-2.0-os §3). The signature reference
metadata.go:293
↓ 3 callersFunctionsignSimpleSign
signSimpleSign signs message (the raw XML of a protocol message sent in messageParam) and relayState with signingContext for the HTTP-POST-SimpleSign
simplesign_binding.go:315
↓ 3 callersFunctionsignWithMethod
signWithMethod returns el with an enveloped signature made by key with signatureMethod (which also sets the digest method), embedding cert.
sha1_policy_test.go:19
↓ 3 callersMethodsignedContent
signedContent returns the octet string m's signature covers.
simplesign_binding.go:94
↓ 3 callersFunctionsignedRedirectBindingURL
signedRedirectBindingURL returns destination with the HTTP-Redirect binding parameters for encodedMessage appended. If signingContext is not nil, the
redirect_binding.go:377
↓ 3 callersFunctionsigningCerts
signingCerts parses the certificates in keyDescriptors that may be used for signing, those whose "use" attribute is "signing" or missing. It returns n
service_provider.go:841
↓ 3 callersMethodsigningContext
signingContext returns a signing context for the IdP's key and certificate.
identity_provider.go:1933
↓ 3 callersMethodsimpleSignForm
simpleSignForm returns an auto-submitting HTML form that sends el to destination with the HTTP-POST-SimpleSign binding, in the messageParam (SAMLReque
simplesign_binding.go:343
↓ 3 callersFunctionsimpleSignFormFields
simpleSignFormFields returns the values of the hidden fields of the form in body.
samlsp/simplesign_logout_test.go:72
↓ 3 callersFunctionsimpleSignSignedContent
simpleSignSignedContent returns the octet string an HTTP-POST-SimpleSign signature covers (sstc-saml-binding-simplesign-cs-01 section 2.5). message is
simplesign_binding.go:79
↓ 3 callersFunctionskewedDeadline
skewedDeadline is a NotOnOrAfter time moved later by the allowed clock skew: the moment from which validateAssertion refuses it.
service_provider.go:2341
↓ 3 callersMethodsloBinding
sloBinding returns the binding to send logout messages to the IDP with through the browser: LogoutBinding if it is set, is not the SOAP binding, and t
samlsp/middleware_logout.go:218
↓ 3 callersFunctionsoapEnvelopeOf
soapEnvelopeOf returns el in a SOAP 1.1 envelope.
samlidp/logout_soap_test.go:113
↓ 3 callersFunctionsoapHTTPClient
soapHTTPClient returns the HTTP client to send a SOAP message with: defaultSOAPHTTPClient when client is nil, and otherwise a copy of client whose red
soap.go:53
↓ 3 callersMethodspForURL
spForURL returns the SP that serves u, or nil.
identity_provider_logout_propagation_test.go:140
↓ 3 callersFunctionspMetadataXML
spMetadataXML returns the metadata of a service provider with entity ID entityID.
samlidp/service_registration_test.go:18
↓ 3 callersFunctionspSendLogoutResponse
(t *testing.T, sp *ServiceProvider, resp *LogoutResponse, binding string)
identity_provider_logout_propagation_test.go:226
↓ 3 callersFunctionspcovInflate
(t *testing.T, buf []byte)
redirect_binding_test.go:493
↓ 3 callersFunctionspecIDPTest
specIDPTest returns an IdentityProviderTest whose session provider always returns a session, restoring the globals NewIdentityProviderTest changes.
spec_bindings_test.go:74
↓ 3 callersFunctionspecProtoSSORequest
specProtoSSORequest runs an SP-initiated AuthnRequest made by test.SP through the IdP's Validate, MakeAssertion and MakeResponse, for a session of ali
spec_core_protocols_test.go:26
↓ 3 callersFunctionspecSigCheckProfile
specSigCheckProfile asserts that el carries exactly one enveloped ds:Signature as a direct child, laid out as saml-core-2.0-os §5.4 asks: a single Ref
spec_signature_encryption_test.go:173
↓ 3 callersFunctionstatusError
statusError returns nil for a Success status, and otherwise an error that wraps an ErrBadStatus holding the top-level status code.
service_provider_attribute_query.go:400
↓ 3 callersFunctiontestMetadataSigner
(t *testing.T)
samlsp/verify_metadata_signature_test.go:51
↓ 3 callersFunctiontrimXMLWhitespace
trimXMLWhitespace removes leading and trailing XML whitespace (space, tab, CR and LF) from s. Attributes of type xs:anyURI have whiteSpace="collapse"
metadata.go:585
↓ 3 callersFunctionunmarshalEtreeHack
unmarshalEtreeHack parses `el` and sets values in the structure `v`. This is a hack -- it first serializes the element, then uses xml.Unmarshal.
identity_provider.go:1862
↓ 3 callersMethodvalidateAttributeQueryAssertion
validateAttributeQueryAssertion checks assertion, apart from its signature, as an answer to query. Unlike validateAssertion, it does not require a bea
service_provider_attribute_query.go:505
↓ 3 callersMethodvalidateAuthnContextClassRef
validateAuthnContextClassRef checks, if ValidateAuthnContextClassRef is set, that one of the assertion's AuthnStatements has an AuthnContextClassRef t
service_provider.go:2248
↓ 3 callersMethodvalidateRequestID
(response Response, possibleRequestIDs []string)
service_provider.go:1820
↓ 3 callersFunctionverifierFor
verifierFor returns a ServiceProvider that trusts sp's certificate as the IDP signing certificate, to check what sp sends.
redirect_binding_test.go:417
↓ 3 callersMethodverifyRedirectBindingSignature
verifyRedirectBindingSignature checks the query string signature of an HTTP-Redirect binding message against the IDP's signing certificates.
redirect_binding.go:178
↓ 3 callersFunctionverifySignedBySP
(t *testing.T, e *spcovEnv, el *etree.Element)
service_provider_soap_logout_test.go:117
↓ 3 callersMethodverifySimpleSignSignature
verifySimpleSignSignature checks the HTTP-POST-SimpleSign signature of the authentication request against the signing certificates in the service prov
simplesign_idp.go:22
↓ 3 callersFunctionwriteText
writeText writes a formatted line of the response. An error writing to the client cannot be reported back to it, so it is deliberately ignored.
example/service.go:179
↓ 2 callersFunctionCreateLink
CreateLink handles requests to create links. The target is the form value "t", for example: curl -d t=https://example.com/ ...
example/service.go:89
↓ 2 callersFunctionDefaultOnError
DefaultOnError is the default ErrorFunction implementation. It prints a message via the standard log package and returns a simple text "Forbidden" mes
samlsp/error.go:19
↓ 2 callersMethodElement
Element returns an etree.Element representing the object in XML form, in exclusive canonical form. It panics if the assertion cannot be canonicalized
schema.go:1181
↓ 2 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1286
↓ 2 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1708
↓ 2 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1788
↓ 2 callersMethodEncode
Encode returns a serialized version of the Session. The provided session must be a JWTSessionClaims, otherwise this function will panic.
samlsp/session_jwt.go:159
↓ 2 callersMethodError
()
service_provider.go:1295
↓ 2 callersFunctionFetchMetadataByEntityID
FetchMetadataByEntityID fetches metadata from metadataURL and returns the entity whose entityID is entityID. Use it to select an IDP from aggregate me
samlsp/fetch_metadata.go:276
↓ 2 callersFunctionFetchSignedMetadata
FetchSignedMetadata fetches metadata from metadataURL and parses it with ParseSignedMetadata: its root element must carry a valid signature made with
samlsp/fetch_metadata.go:287
↓ 2 callersMethodGet
Get returns the assertion attribute whose Name or FriendlyName matches name, or nil if no matching attribute is found. FriendlyName "MUST NOT be used
service_provider.go:1254
↓ 2 callersMethodGetAttributeServiceLocation
GetAttributeServiceLocation returns the URL of the IdP's AttributeService endpoint with the given binding, from the AttributeAuthorityDescriptors of t
service_provider_attribute_query.go:53
↓ 2 callersMethodInitializeHTTP
InitializeHTTP sets up the HTTP handler for the server. (This function is called automatically for you by New, but you may need to call it yourself if
samlidp/samlidp.go:220
↓ 2 callersMethodList
List returns all the keys that start with `prefix`. The prefix is stripped from each returned value. So if keys are ["aa", "ab", "cd"] then List("a")
samlidp/memory_store.go:55
↓ 2 callersFunctionListLinks
ListLinks returns a list of the current user's links
example/service.go:133
↓ 2 callersMethodMakeSimpleSignLogoutRequest
MakeSimpleSignLogoutRequest creates a SAML LogoutRequest for the IDP's HTTP-POST-SimpleSign single logout endpoint. It returns an auto-submitting HTML
simplesign_binding.go:419
↓ 2 callersMethodMakeSimpleSignLogoutResponseWithStatus
MakeSimpleSignLogoutResponseWithStatus is like MakeSimpleSignLogoutResponse, but the response carries status instead of Success (see MakeLogoutRespons
simplesign_binding.go:457
↓ 2 callersMethodMetadata
Metadata returns the metadata structure for this identity provider.
identity_provider.go:529
↓ 2 callersFunctionOAEP_SHA384
OAEP_SHA384 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:219
↓ 2 callersMethodPut
(key string, value interface{})
samlidp/samlidp_coverage_test.go:43
↓ 2 callersFunctionRegisterDigestMethod
RegisterDigestMethod registers the specified digest method so that it can be used with Decrypt(). It is safe to call concurrently with Decrypt.
xmlenc/xmlenc.go:84
← previousnext →501–600 of 2,436, ranked by callers