Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewjam/saml
/ functions
Functions
2,436 in github.com/crewjam/saml
⨍
Functions
2,436
◇
Types & classes
281
↓ 1 callers
Method
verifyRedirectSignature
verifyRedirectSignature checks the query string signature of a request received with the HTTP-Redirect binding.
identity_provider_authn_signature.go:55
↓ 1 callers
Method
verifySignature
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 callers
Method
verifySignature
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 callers
Function
versionMismatchSecondLevel
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 callers
Function
withPaddingCount
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 callers
Function
withSHA1Digest
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 callers
Function
withSignature
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 callers
Function
wrapXHTML
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 callers
Method
writePostLogoutResponse
(w http.ResponseWriter, resp *LogoutResponse, signingContext *dsig.SigningContext)
identity_provider_logout.go:500
↓ 1 callers
Method
writeRedirectLogoutResponse
(w http.ResponseWriter, resp *LogoutResponse, signingContext *dsig.SigningContext)
identity_provider_logout.go:480
↓ 1 callers
Function
writeSOAPLogoutResponse
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 callers
Method
writeSOAPLogoutResponse
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 callers
Method
writeSimpleSignResponse
writeSimpleSignResponse writes the auto-submitting HTML form that sends the response with the HTTP-POST-SimpleSign binding.
simplesign_idp.go:168
Method
AddSessionParticipant
(_ *http.Request, session *Session, participant SessionParticipant)
identity_provider_logout_propagation_test.go:44
Method
AddSessionParticipant
(*http.Request, *Session, SessionParticipant)
partial_logout_untracked_test.go:19
Method
AddSessionParticipant
AddSessionParticipant implements saml.SessionParticipantTracker. It records participant for the session, unless it is already recorded. Each particip
samlidp/logout_propagation.go:50
Method
Algorithm
Algorithm returns the name of the algorithm
xmlenc/pubkey.go:34
Method
Algorithm
()
xmlenc/digest.go:18
Method
Algorithm
()
xmlenc/xmlenc.go:41
Method
Algorithm
Algorithm returns the name of the algorithm, as will be found in an xenc:EncryptionMethod element.
xmlenc/cbc.go:29
Method
Algorithm
Algorithm returns the name of the algorithm, as will be found in an xenc:EncryptionMethod element.
xmlenc/gcm.go:28
Function
BenchmarkValidate
(b *testing.B)
internal/xmlroundtrip/validate_test.go:95
Method
Consume
(string, time.Time)
replay_cache_test.go:31
Method
Consume
(key string, _ time.Time)
sp_review_artifact_bounds_test.go:56
Method
Consume
(id string, expiresAt time.Time)
simplesign_binding_test.go:481
Method
Consume
(id string, expiresAt time.Time)
samlsp/logout_replay_test.go:17
Method
CreateSession
(http.ResponseWriter, *http.Request, *saml.Assertion)
samlsp/middleware_coverage_test.go:37
Method
CreateSession
(http.ResponseWriter, *http.Request, *saml.Assertion)
samlsp/middleware_logout_test.go:333
Method
Decode
(string)
samlsp/session_cookie_secure_test.go:55
Method
Decode
Decode returns a Tracked request from an encoded string.
samlsp/request_tracker.go:45
Method
Decode
(value string)
samlsp/session_revocation_codec_test.go:36
Method
Decode
(value string)
samlsp/session_revocation_codec_test.go:52
Method
Decode
Decode returns a Tracked request from an encoded string.
samlsp/request_tracker_jwt.go:56
Method
Decrypt
Decrypt implements Decryptor. `key` must be an *rsa.PrivateKey.
xmlenc/pubkey.go:113
Method
Delete
(key string)
samlidp/samlidp_coverage_test.go:52
Method
DeleteSession
(http.ResponseWriter, *http.Request)
samlsp/middleware_coverage_test.go:41
Method
DeleteSession
(http.ResponseWriter, *http.Request)
samlsp/middleware_logout_test.go:336
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:520
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:542
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:971
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1070
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1084
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1381
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1407
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1463
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1538
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1660
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1672
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1766
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1808
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1836
Method
Encode
(Session)
samlsp/session_cookie_secure_test.go:54
Method
Encode
Encode returns an encoded string representing the TrackedRequest.
samlsp/request_tracker.go:42
Method
Encode
(s Session)
samlsp/session_revocation_codec_test.go:32
Method
Encode
Encode returns an encoded string representing the TrackedRequest.
samlsp/request_tracker_jwt.go:37
Method
Encrypt
Encrypt implements encrypter. certificate must be a []byte containing the ASN.1 bytes of certificate containing an RSA public key.
xmlenc/pubkey.go:40
Method
Error
Error implements error.
identity_provider_error_response.go:45
Method
Error
()
service_provider.go:1305
Method
Error
()
internal/xmlroundtrip/validate.go:30
Method
Error
()
internal/xmlroundtrip/validate.go:42
Method
Error
()
xmlenc/decrypt.go:20
Method
Error
()
xmlenc/decrypt.go:28
Method
Error
()
xmlenc/decrypt.go:40
Method
Error
()
xmlenc/decrypt.go:64
Function
Example_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
Function
Example_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
Method
Fatalln
Fatalln is equivalent to Println() followed by a call to os.Exit(1).
logger/logger.go:22
Function
FuzzDecrypt
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
Method
GetAttributes
GetAttributes implements SessionWithAttributes. It returns the SAMl attributes.
samlsp/session_jwt.go:232
Method
GetNameID
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
Method
GetNameID
()
samlsp/session_revocation_codec_test.go:19
Method
GetSAMLNameID
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
Method
GetServiceProvider
(r *http.Request, serviceProviderID string)
identity_provider_test.go:163
Method
GetServiceProvider
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
Method
GetSession
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
Method
GetSession
(http.ResponseWriter, *http.Request, *IdpAuthnRequest)
identity_provider_logout_propagation_test.go:33
Method
GetSession
(w http.ResponseWriter, r *http.Request, req *IdpAuthnRequest)
identity_provider_test.go:155
Method
GetSession
(_ *http.Request)
samlsp/middleware_test.go:582
Method
GetSession
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
Method
GetSession
(*http.Request)
samlsp/middleware_coverage_test.go:43
Method
GetSession
(*http.Request)
samlsp/middleware_logout_test.go:337
Method
GetSessionIssuedAt
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
Method
GetTrackedRequest
GetTrackedRequest returns a pending tracked request.
samlsp/request_tracker_cookie.go:169
Method
GetTrackedRequests
GetTrackedRequests returns all the pending tracked requests
samlsp/request_tracker_cookie.go:148
Method
HandleAssertion
(*saml.Assertion)
samlsp/middleware_coverage_test.go:29
Method
HandleAssertion
HandleAssertion is called and passed a SAML assertion. This implementation does nothing.
samlsp/basic_assertion_handler.go:13
Method
HandleDeleteService
HandleDeleteService handles the `DELETE /services/:id` request. The service provider stops being accepted, unless another stored service has the same
samlidp/service.go:230
Method
HandleDeleteSession
HandleDeleteSession handles the `DELETE /sessions/:id` request. It invalidates the specified session.
samlidp/session.go:377
Method
HandleDeleteShortcut
HandleDeleteShortcut handles the `DELETE /shortcuts/:id` request.
samlidp/shortcut.go:85
Method
HandleDeleteUser
HandleDeleteUser handles the `DELETE /users/:id` request.
samlidp/user.go:110
Method
HandleGetService
HandleGetService handles the `GET /services/:id` request and responds with the service metadata in XML format.
samlidp/service.go:153
Method
HandleGetSession
HandleGetSession handles the `GET /sessions/:id` request and responds with the session object in JSON format.
samlidp/session.go:362
Method
HandleGetShortcut
HandleGetShortcut handles the `GET /shortcuts/:id` request and responds with the shortcut object in JSON format.
samlidp/shortcut.go:53
Method
HandleGetUser
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
Method
HandleIDPInitiated
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
Method
HandleListServices
HandleListServices handles the `GET /services/` request and responds with a JSON formatted list of service names.
samlidp/service.go:134
Method
HandleListSessions
HandleListSessions handles the `GET /sessions/` request and responds with a JSON formatted list of session names.
samlidp/session.go:344
Method
HandleListShortcuts
HandleListShortcuts handles the `GET /shortcuts/` request and responds with a JSON formatted list of shortcut names.
samlidp/shortcut.go:35
Method
HandleListUsers
HandleListUsers handles the `GET /users/` request and responds with a JSON formatted list of user names.
samlidp/user.go:28
Method
HandleLogin
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
← previous
next →
1,101–1,200 of 2,436, ranked by callers