MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions2,436 in github.com/crewjam/saml

↓ 5 callersMethodAddSessionParticipant
AddSessionParticipant records that an assertion for session was issued to participant. Recording the same participant twice should not make it appear
identity_provider_logout_propagation.go:66
↓ 5 callersFunctionDefaultTrackedRequestCodec
DefaultTrackedRequestCodec returns a new TrackedRequestCodec for the provided options, a JWTTrackedRequestCodec that uses a JWT to encode TrackedReque
samlsp/new.go:340
↓ 5 callersMethodDelete
Delete removes `key`
samlidp/store.go:17
↓ 5 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1945
↓ 5 callersFunctionIsSOAPRequest
IsSOAPRequest reports whether r is a message sent with the SAML SOAP binding: a POST whose Content-Type is text/xml (SOAP 1.1 over HTTP, saml-bindings
service_provider_soap_logout.go:29
↓ 5 callersMethodMakeAttributeQuery
MakeAttributeQuery returns an AttributeQuery for the attributes of the subject identified by nameID, addressed to the IdP's SOAP AttributeService (see
service_provider_attribute_query.go:90
↓ 5 callersMethodMakeLogoutResponse
MakeLogoutResponse returns an unsigned LogoutResponse to the request with the given top-level status code (for example StatusSuccess or StatusResponde
identity_provider_logout.go:428
↓ 5 callersMethodMakePostAuthenticationRequest
MakePostAuthenticationRequest creates a SAML authentication request using the HTTP-POST binding. It returns HTML text representing an HTML form that c
service_provider.go:1185
↓ 5 callersFunctionParseMetadataByEntityID
ParseMetadataByEntityID parses SAML metadata and returns the EntityDescriptor whose entityID is entityID. The metadata may be a single <EntityDescrip
samlsp/fetch_metadata.go:96
↓ 5 callersMethodPrintln
Println prints new line.
logger/logger.go:16
↓ 5 callersMethodSign
(r io.Reader, digest []byte, opts crypto.SignerOpts)
crypto_signer_test.go:28
↓ 5 callersMethodSimpleSignWithNonce
SimpleSignWithNonce is like SimpleSign, but if nonce is not empty it is set as the nonce attribute of the form's auto-submit <script> element, as Post
simplesign_binding.go:407
↓ 5 callersFunctionacceptableUntil
acceptableUntil returns the moment after which validateAssertion refuses assertion: the earliest of the deadlines its expiry checks apply. A NotOnOrAf
service_provider.go:2358
↓ 5 callersMethodacsRequest
acsRequest returns the POST of the test SAML response to the ACS URL, with a tracked request cookie for uri.
samlsp/form_replay_test.go:25
↓ 5 callersFunctionassertIsSigFixture
assertIsSigFixture checks that el is sigFixture, prefixes included.
metadata_signature_test.go:22
↓ 5 callersFunctionassertNoPassive
assertNoPassive checks that body posts an error Response to request with the status Responder and NoPassive, and shows no login form.
samlidp/force_authn_passive_test.go:128
↓ 5 callersFunctionassertStandalone
The serialized element must be well-formed XML on its own: every prefix it uses has to be declared, and the default namespace must be written as xmlns
element_to_bytes_test.go:24
↓ 5 callersFunctioncheckOnlyKind
(t *testing.T, err error, want error)
errors_test.go:94
↓ 5 callersFunctioncheckSigRefProfile
checkSigRefProfile asserts that err accepts or rejects c as the profile requires. privateErr returns the error carrying the message.
signature_reference_profile_test.go:57
↓ 5 callersMethodcookieName
cookieName returns the name of the cookie that tracks the request with the given index. An index is the RelayState sent to the IdP; the default one is
samlsp/request_tracker_cookie.go:56
↓ 5 callersFunctioncovECDSAKey
(t *testing.T, curve elliptic.Curve)
samlsp/samlsp_coverage_test.go:50
↓ 5 callersFunctiondecodeDetachedSignature
decodeDetachedSignature maps the SigAlg value of a binding that carries a detached signature (HTTP-Redirect or HTTP-POST-SimpleSign) to an x509 signat
redirect_binding.go:206
↓ 5 callersMethoddecodeLogoutState
decodeLogoutState checks the signature of value, made by encodeLogoutState, and returns the state it holds if it has not expired.
identity_provider_logout_propagation.go:839
↓ 5 callersMethoddsigClock
dsigClock returns the clock to use for signature validation. It may be nil, in which case dsig uses the real clock.
service_provider.go:535
↓ 5 callersFunctionencryptionKey
encryptionKey returns the certificate to encrypt to from the KeyDescriptors of an entity's metadata, and the EncryptionMethods listed with it: the fir
encrypted_id.go:161
↓ 5 callersMethodentityID
entityID returns the IdP's entity ID, the EntityID of its metadata, without building the whole metadata (which encodes every certificate).
identity_provider.go:660
↓ 5 callersMethodentityID
entityID is the entity ID of this service provider.
service_provider_attribute_query.go:581
↓ 5 callersMethodgetIDPSigningCerts
getIDPSigningCerts returns the certificates which we can use to verify things signed by the IDP in PEM format, or nil if no such certificate is found.
service_provider.go:790
↓ 5 callersFunctiongetSPMetadata
getSPMetadata reads service provider metadata from r: an EntityDescriptor, or an EntitiesDescriptor holding exactly one entity with an SPSSODescriptor
samlidp/util.go:44
↓ 5 callersMethodidpSOAPLogoutResponse
idpSOAPLogoutResponse returns a SOAP envelope with a LogoutResponse to req from the IdP, signed by it if sign is set, after mutate.
service_provider_soap_logout_test.go:355
↓ 5 callersMethodidpSignedSOAPLogoutRequest
idpSignedSOAPLogoutRequest returns req signed by the IdentityProvider and wrapped in a SOAP envelope, as a spec-conformant IdP sends it with the SOAP
service_provider_soap_logout_test.go:36
↓ 5 callersFunctionidpcovMadeAssertion
(t *testing.T, test *IdentityProviderTest)
idp_coverage_test.go:349
↓ 5 callersMethodkeepCookies
keepCookies stores the IdP cookies that w sets.
identity_provider_logout_propagation_test.go:160
↓ 5 callersMethodlogin
login logs alice in with POST /login and returns the session cookie.
samlidp/force_authn_passive_test.go:48
↓ 5 callersMethodlogoutRequest
(t *testing.T, nameID, sessionIndex string)
samlidp/logout_test.go:87
↓ 5 callersFunctionmustFindElement
(t *testing.T, xmlStr, path string)
element_to_bytes_test.go:12
↓ 5 callersFunctionmustParseURL
(s string)
samlidp/samlidp_test.go:35
↓ 5 callersFunctionnewExpiryServer
newExpiryServer returns a server whose timers are faked and whose clock is *clock.
samlidp/session_expiry_test.go:74
↓ 5 callersFunctionnewSOAPLogoutIDPServer
(t *testing.T, e *spcovEnv)
service_provider_soap_logout_test.go:329
↓ 5 callersFunctionnewSOAPStartLogoutTest
newSOAPStartLogoutTest returns a logoutTest whose IdP supports single logout with the given front-channel bindings and with the SOAP binding at a fake
samlsp/soap_start_logout_test.go:41
↓ 5 callersFunctionnewTestECDSAKeyAndCert
(t *testing.T)
service_provider_encryption_key_test.go:21
↓ 5 callersFunctionputSessionExpiringAt
(t *testing.T, s *Server, id string, expire time.Time)
samlidp/session_expiry_test.go:16
↓ 5 callersFunctionracAssertedClass
racAssertedClass returns the top-level status code of the Response posted in w and, for a Success, the AuthnContextClassRef of the assertion as test.S
idp_requested_authn_context_test.go:43
↓ 5 callersFunctionracServeSSO
racServeSSO sends an AuthnRequest from test.SP carrying requested to ServeSSO, with a session authenticated with achieved, and returns the recorded HT
idp_requested_authn_context_test.go:24
↓ 5 callersFunctionreqSubjNameID
(value string)
idp_request_subject_test.go:85
↓ 5 callersMethodrun
run follows the logout from the IdP's response w through every SP until the browser leaves the SPs' SingleLogoutServices, and returns the last respons
identity_provider_logout_propagation_test.go:243
↓ 5 callersMethodserve
(r *http.Request)
samlidp/logout_propagation_test.go:39
↓ 5 callersFunctionsetReplayCacheTestNow
setReplayCacheTestNow makes saml.TimeNow return *now for the rest of the test.
samlsp/replay_cache_test.go:26
↓ 5 callersFunctionsidParse
sidParse parses a Response signed by e's IdP whose assertion is a, after mutate edits the Assertion element.
subject_identifiers_test.go:55
↓ 5 callersFunctionsigRefProfileCases
()
signature_reference_profile_test.go:31
↓ 5 callersFunctionsignToken
signToken signs token with signer. Concrete in-memory keys (*rsa.PrivateKey, *ecdsa.PrivateKey and ed25519.PrivateKey) are handed to the jwt library
samlsp/jwt_signer.go:26
↓ 5 callersMethodsigningContext
signingContext will create a signing context for the request.
identity_provider.go:1928
↓ 5 callersFunctionsoapPost
(target string, body []byte)
service_provider_soap_logout_test.go:45
↓ 5 callersFunctionspecMetadataSP
Tests in this file pin behavior required by the OASIS SAML V2.0 Metadata specification (saml-metadata-2.0-os) and the "Use of Metadata" sections of th
spec_metadata_test.go:24
↓ 5 callersFunctionspecMiddlewareTest
specMiddlewareTest is NewMiddlewareTest, restoring the package globals it changes when the test ends.
samlsp/spec_bindings_test.go:26
↓ 5 callersFunctionspecProfServeSPMetadata
specProfServeSPMetadata makes the IdP of test see md as the metadata of test.SP.
spec_profiles_test.go:84
↓ 5 callersFunctionstartAuthFlow
(test *MiddlewareTest, req *http.Request)
samlsp/form_replay_test.go:52
↓ 5 callersFunctionsuccessStatus
successStatus returns the Status of a request that succeeded.
service_provider.go:3123
↓ 5 callersMethodvalues
(t *testing.T)
simplesign_binding_test.go:41
↓ 5 callersFunctionverifiedEnvelopedElement
verifiedEnvelopedElement checks the enveloped XML signature of el, which must be a direct child of el and reference it as saml-core-2.0-os §5.4.2 asks
identity_provider_logout.go:682
↓ 5 callersMethodwritePostForm
writePostForm writes an HTML page holding form, the auto-submitting form of the HTTP-POST binding whose script has the hash scriptHash.
samlsp/middleware.go:334
↓ 4 callersMethodAllAudiences
AllAudiences returns every audience in the restriction: Audience followed by AdditionalAudiences.
schema.go:1612
↓ 4 callersMethodConsume
Consume atomically records assertionID as used until expiresAt, after which the ServiceProvider no longer accepts the assertion; then the record may b
service_provider.go:521
↓ 4 callersFunctionContextWithSession
ContextWithSession returns a new context with session associated
samlsp/session.go:86
↓ 4 callersMethodDefaultOnError
DefaultOnError is how ServeSSO, ServeIDPInitiated and ServeMetadata report an error when OnError is nil: it logs err to Logger and responds with statu
identity_provider.go:727
↓ 4 callersFunctionDefaultRequestTracker
DefaultRequestTracker returns a new RequestTracker for the provided options, a CookieRequestTracker which uses cookies to track pending requests.
samlsp/new.go:354
↓ 4 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:332
↓ 4 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:852
↓ 4 callersMethodEncryptLogoutRequestNameID
EncryptLogoutRequestNameID replaces the NameID of req with a saml:EncryptedID holding it (saml-core-2.0-os §2.2.4), encrypted to the IDP's encryption
service_provider.go:2912
↓ 4 callersMethodGetArtifactBindingLocation
GetArtifactBindingLocation returns URL for the IDP's Artifact binding of the specified type, or "" if there is none or IDPMetadata is nil.
service_provider.go:744
↓ 4 callersMethodGetTrackedRequest
GetTrackedRequest returns a pending tracked request.
samlsp/request_tracker.go:29
↓ 4 callersMethodHandleStartAuthFlow
HandleStartAuthFlow is called to start the SAML authentication process.
samlsp/middleware.go:229
↓ 4 callersMethodHandler
Handler returns an http.Handler that serves the metadata and SSO URLs, and the single logout URL (see ServeSLO) if LogoutURL is set and its path diffe
identity_provider.go:667
↓ 4 callersMethodMakeLogoutResponseWithStatus
MakeLogoutResponseWithStatus is like MakeLogoutResponse, but the response carries status instead of Success. For example, a service provider that ende
service_provider.go:3096
↓ 4 callersMethodMakePostLogoutRequest
MakePostLogoutRequest creates a SAML authentication request using the HTTP-POST binding. It returns HTML text representing an HTML form that can be se
service_provider.go:3025
↓ 4 callersMethodMakePostLogoutResponse
MakePostLogoutResponse creates a SAML LogoutResponse using the HTTP-POST binding. It returns HTML text representing an HTML form that can be sent pres
service_provider.go:3190
↓ 4 callersMethodMakeRedirectLogoutResponseWithStatus
MakeRedirectLogoutResponseWithStatus is like MakeRedirectLogoutResponse, but the response carries status instead of Success (see MakeLogoutResponseWit
service_provider.go:3143
↓ 4 callersMethodMakeSimpleSignAuthenticationRequest
MakeSimpleSignAuthenticationRequest creates a SAML authentication request for the IDP's HTTP-POST-SimpleSign single sign-on endpoint. It returns an au
simplesign_binding.go:388
↓ 4 callersFunctionParseRedirectResponse
ParseRedirectResponse returns the decoded SAML LogoutResponse from an HTTP-Redirect URL
testsaml/parse.go:30
↓ 4 callersMethodRead
Read reads at most one byte past the limit, and fails if it gets it, so a message of exactly flateUncompressLimit bytes is read in full whatever the s
flate.go:29
↓ 4 callersFunctionRequireAttribute
RequireAttribute returns a middleware function that requires that the SAML attribute `name` be set to `value`. This can be used to require that a remo
samlsp/middleware.go:443
↓ 4 callersMethodRevoke
Revoke implements SessionRevocationStore.
samlsp/session_revocation.go:309
↓ 4 callersMethodSendErrorResponse
SendErrorResponse makes the error Response statusErr describes for req with req.MakeErrorResponse and writes it with the ResponseWriter, as ServeSSO d
identity_provider_error_response.go:124
↓ 4 callersMethodSoapRequest
SoapRequest returns a SOAP 1.1 Envelope containing the AttributeQuery, as the SAML SOAP binding sends it (saml-bindings §3.2).
schema.go:706
↓ 4 callersMethodTakeForm
TakeForm implements FormReplayStore.
samlsp/form_replay.go:168
↓ 4 callersMethodTerminateSessions
TerminateSessions ends the sessions that req, a LogoutRequest from the IdP that has been validated, names (saml-core §3.7.1): those of its NameID with
samlsp/session_revocation.go:35
↓ 4 callersMethodValidateLogoutRequestForm
ValidateLogoutRequestForm validates a LogoutRequest received via the HTTP-POST binding. postFormData is the value of the SAMLRequest form field. It re
service_provider.go:3578
↓ 4 callersMethodValidateLogoutResponseForm
ValidateLogoutResponseForm returns a nil error if the logout response is valid. It does not check the response's InResponseTo; see ParseLogoutRespons
service_provider.go:3396
↓ 4 callersFunctionVerifyMetadataSignature
VerifyMetadataSignature checks that the root element of the SAML metadata in data, an EntityDescriptor or an EntitiesDescriptor, carries a valid envel
metadata_verify.go:31
↓ 4 callersFunctionWriteSOAPFault
WriteSOAPFault writes a SOAP 1.1 Fault with the faultcode Client and faultString to w, with HTTP status 500 (SOAP 1.1 §4.4 and §6.2). Use it to refuse
service_provider_soap_logout.go:206
↓ 4 callersFunctionaddSignatureToDocument
(doc *etree.Document)
service_provider_test.go:1110
↓ 4 callersMethodartifactHandler
spcovArtifactHandler acts as the IDP's artifact resolution service.
sp_coverage_parse_test.go:309
↓ 4 callersFunctionattributeValueParse
(t *testing.T, s string)
attribute_value_test.go:12
↓ 4 callersFunctionblockCipherOf
blockCipherOf returns the algorithm of the EncryptedData in encryptedID.
logout_nameid_encryption_test.go:16
↓ 4 callersFunctioncheckEnvelopedSignatureNotSHA1
checkEnvelopedSignatureNotSHA1 returns an error if reject is set and the enveloped XML signature of el, its ds:Signature child, uses a SHA-1 based alg
sha1_policy.go:61
↓ 4 callersFunctioncheckRedirectBindingSignature
checkRedirectBindingSignature checks the query string signature of an HTTP-Redirect binding message against the certificates returned by getCerts. Unl
redirect_binding.go:189
↓ 4 callersFunctioncovCapturingOnError
covCapturingOnError records the error passed to OnError.
samlsp/middleware_coverage_test.go:67
↓ 4 callersFunctioncovCookieSessionProvider
--- session_cookie.go ---
samlsp/session_coverage_test.go:170
↓ 4 callersFunctioncovFixTime
covFixTime pins saml.TimeNow and saml.RandReader for the duration of the test.
samlidp/samlidp_coverage_test.go:114
↓ 4 callersFunctioncryptoHashOf
(dm DigestMethod)
xmlenc/oaep.go:36
← previousnext →301–400 of 2,436, ranked by callers