MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions2,436 in github.com/crewjam/saml

↓ 1 callersMethodverifyRedirectSignature
verifyRedirectSignature checks the query string signature of a request received with the HTTP-Redirect binding.
identity_provider_authn_signature.go:55
↓ 1 callersMethodverifySignature
verifySignature checks the signature of the request against the signing certificates of the service provider that issued it. For an enveloped XML sig
identity_provider_logout.go:272
↓ 1 callersMethodverifySignature
verifySignature checks the signature of the request, whichever binding carried it, against the signing certificates in the service provider's metadata
identity_provider_authn_signature.go:23
↓ 1 callersFunctionversionMismatchSecondLevel
versionMismatchSecondLevel returns RequestVersionTooHigh or RequestVersionTooLow for a request whose major version is above or below 2, or "" if the v
identity_provider_error_response.go:250
↓ 1 callersFunctionwithPaddingCount
withPaddingCount sets the padding count, the last byte of the plaintext of the CBC encrypted assertion el, to 0 (which is never valid). from is the co
decryption_errors_test.go:17
↓ 1 callersFunctionwithSHA1Digest
withSHA1Digest changes the DigestMethod of the enveloped signature of el to SHA-1, leaving the SignatureMethod alone. The signature no longer verifies
sha1_policy_test.go:33
↓ 1 callersFunctionwithSignature
withSignature puts sig back into signed, the element a signature validation returned (which the enveloped-signature transform removed it from), at ind
service_provider.go:2760
↓ 1 callersFunctionwrapXHTML
wrapXHTML puts fragment, a form made by one of the PostWithNonce methods, in a page the way samlsp.Middleware does.
xhtml_forms_test.go:70
↓ 1 callersMethodwritePostLogoutResponse
(w http.ResponseWriter, resp *LogoutResponse, signingContext *dsig.SigningContext)
identity_provider_logout.go:500
↓ 1 callersMethodwriteRedirectLogoutResponse
(w http.ResponseWriter, resp *LogoutResponse, signingContext *dsig.SigningContext)
identity_provider_logout.go:480
↓ 1 callersFunctionwriteSOAPLogoutResponse
writeSOAPLogoutResponse writes resp, with an enveloped signature made with signingContext, in a SOAP envelope with HTTP status 200 (saml-bindings §3.2
identity_provider_logout_soap_request.go:200
↓ 1 callersMethodwriteSOAPLogoutResponse
writeSOAPLogoutResponse signs resp and writes it as the SOAP answer to req, or a SOAP Server fault if that fails.
identity_provider_logout_soap_request.go:190
↓ 1 callersMethodwriteSimpleSignResponse
writeSimpleSignResponse writes the auto-submitting HTML form that sends the response with the HTTP-POST-SimpleSign binding.
simplesign_idp.go:168
MethodAddSessionParticipant
(_ *http.Request, session *Session, participant SessionParticipant)
identity_provider_logout_propagation_test.go:44
MethodAddSessionParticipant
(*http.Request, *Session, SessionParticipant)
partial_logout_untracked_test.go:19
MethodAddSessionParticipant
AddSessionParticipant implements saml.SessionParticipantTracker. It records participant for the session, unless it is already recorded. Each particip
samlidp/logout_propagation.go:50
MethodAlgorithm
Algorithm returns the name of the algorithm
xmlenc/pubkey.go:34
MethodAlgorithm
()
xmlenc/digest.go:18
MethodAlgorithm
()
xmlenc/xmlenc.go:41
MethodAlgorithm
Algorithm returns the name of the algorithm, as will be found in an xenc:EncryptionMethod element.
xmlenc/cbc.go:29
MethodAlgorithm
Algorithm returns the name of the algorithm, as will be found in an xenc:EncryptionMethod element.
xmlenc/gcm.go:28
FunctionBenchmarkValidate
(b *testing.B)
internal/xmlroundtrip/validate_test.go:95
MethodConsume
(string, time.Time)
replay_cache_test.go:31
MethodConsume
(key string, _ time.Time)
sp_review_artifact_bounds_test.go:56
MethodConsume
(id string, expiresAt time.Time)
simplesign_binding_test.go:481
MethodConsume
(id string, expiresAt time.Time)
samlsp/logout_replay_test.go:17
MethodCreateSession
(http.ResponseWriter, *http.Request, *saml.Assertion)
samlsp/middleware_coverage_test.go:37
MethodCreateSession
(http.ResponseWriter, *http.Request, *saml.Assertion)
samlsp/middleware_logout_test.go:333
MethodDecode
(string)
samlsp/session_cookie_secure_test.go:55
MethodDecode
Decode returns a Tracked request from an encoded string.
samlsp/request_tracker.go:45
MethodDecode
(value string)
samlsp/session_revocation_codec_test.go:36
MethodDecode
(value string)
samlsp/session_revocation_codec_test.go:52
MethodDecode
Decode returns a Tracked request from an encoded string.
samlsp/request_tracker_jwt.go:56
MethodDecrypt
Decrypt implements Decryptor. `key` must be an *rsa.PrivateKey.
xmlenc/pubkey.go:113
MethodDelete
(key string)
samlidp/samlidp_coverage_test.go:52
MethodDeleteSession
(http.ResponseWriter, *http.Request)
samlsp/middleware_coverage_test.go:41
MethodDeleteSession
(http.ResponseWriter, *http.Request)
samlsp/middleware_logout_test.go:336
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:520
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:542
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:971
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1070
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1084
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1381
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1407
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1463
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1538
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1660
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1672
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1766
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1808
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1836
MethodEncode
(Session)
samlsp/session_cookie_secure_test.go:54
MethodEncode
Encode returns an encoded string representing the TrackedRequest.
samlsp/request_tracker.go:42
MethodEncode
(s Session)
samlsp/session_revocation_codec_test.go:32
MethodEncode
Encode returns an encoded string representing the TrackedRequest.
samlsp/request_tracker_jwt.go:37
MethodEncrypt
Encrypt implements encrypter. certificate must be a []byte containing the ASN.1 bytes of certificate containing an RSA public key.
xmlenc/pubkey.go:40
MethodError
Error implements error.
identity_provider_error_response.go:45
MethodError
()
service_provider.go:1305
MethodError
()
internal/xmlroundtrip/validate.go:30
MethodError
()
internal/xmlroundtrip/validate.go:42
MethodError
()
xmlenc/decrypt.go:20
MethodError
()
xmlenc/decrypt.go:28
MethodError
()
xmlenc/decrypt.go:40
MethodError
()
xmlenc/decrypt.go:64
FunctionExample_attributes
This example shows how a handler wrapped by Middleware.RequireAccount reads the user's identity from the SAML assertion. The default session (a JWTSe
samlsp/example_attributes_test.go:20
FunctionExample_sessionMaxAge
This example shows how to change how long a session lasts. It replaces the CookieMaxAge option that was removed from Options. The session lifetime is
samlsp/example_test.go:21
MethodFatalln
Fatalln is equivalent to Println() followed by a call to os.Exit(1).
logger/logger.go:22
FunctionFuzzDecrypt
FuzzDecrypt fuzzes Decrypt with hostile documents, seeded with the corpus and past crashers of the retired go-fuzz harness. Run it with go test -fuz
xmlenc/fuzz_coverage_test.go:138
MethodGetAttributes
GetAttributes implements SessionWithAttributes. It returns the SAMl attributes.
samlsp/session_jwt.go:232
MethodGetNameID
GetNameID implements SessionWithNameID. It returns the NameID of the assertion the session was made from, which JWTSessionCodec stores as the JWT subj
samlsp/middleware_logout.go:21
MethodGetNameID
()
samlsp/session_revocation_codec_test.go:19
MethodGetSAMLNameID
GetSAMLNameID implements SessionWithSAMLNameID. It returns the NameID of the assertion the session was made from, with its Format and qualifiers. It r
samlsp/session_jwt.go:217
MethodGetServiceProvider
(r *http.Request, serviceProviderID string)
identity_provider_test.go:163
MethodGetServiceProvider
GetServiceProvider returns the Service Provider metadata for the service provider ID, which is typically the service provider's metadata URL. If an ap
samlidp/service.go:122
MethodGetSession
GetSession returns the remote user session associated with the http.Request. If (and only if) the request is not associated with a session then GetSe
identity_provider.go:93
MethodGetSession
(http.ResponseWriter, *http.Request, *IdpAuthnRequest)
identity_provider_logout_propagation_test.go:33
MethodGetSession
(w http.ResponseWriter, r *http.Request, req *IdpAuthnRequest)
identity_provider_test.go:155
MethodGetSession
(_ *http.Request)
samlsp/middleware_test.go:582
MethodGetSession
GetSession returns the current Session associated with the request, or an error matching ErrNoSession (as determined by errors.Is) if there is no vali
samlsp/session_cookie.go:189
MethodGetSession
(*http.Request)
samlsp/middleware_coverage_test.go:43
MethodGetSession
(*http.Request)
samlsp/middleware_logout_test.go:337
MethodGetSessionIssuedAt
GetSessionIssuedAt implements RevocableSession. It returns the time of the JWT "iat" claim, which has a precision of one second, or the zero time if t
samlsp/session_revocation.go:65
MethodGetTrackedRequest
GetTrackedRequest returns a pending tracked request.
samlsp/request_tracker_cookie.go:169
MethodGetTrackedRequests
GetTrackedRequests returns all the pending tracked requests
samlsp/request_tracker_cookie.go:148
MethodHandleAssertion
(*saml.Assertion)
samlsp/middleware_coverage_test.go:29
MethodHandleAssertion
HandleAssertion is called and passed a SAML assertion. This implementation does nothing.
samlsp/basic_assertion_handler.go:13
MethodHandleDeleteService
HandleDeleteService handles the `DELETE /services/:id` request. The service provider stops being accepted, unless another stored service has the same
samlidp/service.go:230
MethodHandleDeleteSession
HandleDeleteSession handles the `DELETE /sessions/:id` request. It invalidates the specified session.
samlidp/session.go:377
MethodHandleDeleteShortcut
HandleDeleteShortcut handles the `DELETE /shortcuts/:id` request.
samlidp/shortcut.go:85
MethodHandleDeleteUser
HandleDeleteUser handles the `DELETE /users/:id` request.
samlidp/user.go:110
MethodHandleGetService
HandleGetService handles the `GET /services/:id` request and responds with the service metadata in XML format.
samlidp/service.go:153
MethodHandleGetSession
HandleGetSession handles the `GET /sessions/:id` request and responds with the session object in JSON format.
samlidp/session.go:362
MethodHandleGetShortcut
HandleGetShortcut handles the `GET /shortcuts/:id` request and responds with the shortcut object in JSON format.
samlidp/shortcut.go:53
MethodHandleGetUser
HandleGetUser handles the `GET /users/:id` request and responds with the user object in JSON format. The HashedPassword field is excluded.
samlidp/user.go:48
MethodHandleIDPInitiated
HandleIDPInitiated handles a request for an IDP initiated login flow. It looks up the specified shortcut, generates the appropriate SAML assertion and
samlidp/shortcut.go:97
MethodHandleListServices
HandleListServices handles the `GET /services/` request and responds with a JSON formatted list of service names.
samlidp/service.go:134
MethodHandleListSessions
HandleListSessions handles the `GET /sessions/` request and responds with a JSON formatted list of session names.
samlidp/session.go:344
MethodHandleListShortcuts
HandleListShortcuts handles the `GET /shortcuts/` request and responds with a JSON formatted list of shortcut names.
samlidp/shortcut.go:35
MethodHandleListUsers
HandleListUsers handles the `GET /users/` request and responds with a JSON formatted list of user names.
samlidp/user.go:28
MethodHandleLogin
HandleLogin handles the `POST /login` and `GET /login` forms. If credentials are present in the request body, then they are validated. For valid crede
samlidp/session.go:327
← previousnext →1,101–1,200 of 2,436, ranked by callers