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
↓ 2 callers
Method
validateAudienceRestriction
(assertion *Assertion)
service_provider.go:2499
↓ 2 callers
Method
validateFields
validateFields checks the Destination, IssueInstant, Version and ID of the request.
identity_provider.go:1113
↓ 2 callers
Method
validateLogoutRequestFields
validateLogoutRequestFields validates the LogoutRequest fields other than Destination.
service_provider.go:3664
↓ 2 callers
Function
validateLogoutResponseAnswer
validateLogoutResponseAnswer checks the fields of an authenticated LogoutResponse, other than its Issuer and Destination, as an answer to the LogoutRe
identity_provider_logout_propagation.go:730
↓ 2 callers
Method
validateLogoutResponseRedirectQuery
validateLogoutResponseRedirectQuery validates a LogoutResponse received via the HTTP-Redirect binding. rawQuery is the URL's raw query string.
service_provider.go:3470
↓ 2 callers
Function
validateRSAKeyIfPresent
(key interface{}, encryptedKey *etree.Element)
xmlenc/decrypt.go:108
↓ 2 callers
Method
validateUnknownConditions
validateUnknownConditions decides an assertion whose Conditions has a child element this package does not understand. Its validity cannot be determine
service_provider.go:2225
↓ 2 callers
Function
validatedWithEachCert
validatedWithEachCert validates the signature on el against each of certs in turn, with a copy of base that trusts only that certificate, and returns
service_provider.go:2588
↓ 2 callers
Function
verifiedSPMetadata
verifiedSPMetadata parses the metadata document data as getVerifiedSPMetadata does.
samlidp/util.go:77
↓ 2 callers
Method
verifySimpleSignSignature
verifySimpleSignSignature checks the SimpleSign signature of m against the IDP's signing certificates, chosen as for HTTP-Redirect binding signatures
simplesign_binding.go:176
↓ 2 callers
Function
withRawQueryParam
withRawQueryParam returns a copy of r with the query parameter name replaced by value, keeping the order of the parameters.
identity_provider_logout_test.go:581
↓ 2 callers
Function
withoutValidityPeriod
withoutValidityPeriod returns copies of certs whose validity period covers all time, so that dsig accepts them regardless of the current time. Only th
service_provider.go:2537
↓ 2 callers
Function
writeSOAP
(w http.ResponseWriter, status int, envelope *etree.Element)
service_provider_soap_logout.go:213
↓ 2 callers
Function
writeSOAPFault
writeSOAPFault writes a SOAP 1.1 Fault with code (soapFaultClient or soapFaultServer) and message, with HTTP status 500 (SOAP 1.1 §6.2).
identity_provider_logout_soap_request.go:217
↓ 2 callers
Function
xmlnsAttrName
xmlnsAttrName returns the attribute name that declares prefix: "xmlns" for the default namespace (prefix ""), "xmlns:<prefix>" otherwise.
etree_xml.go:103
↓ 1 callers
Method
CanonicalElement
CanonicalElement is like Element, but returns an error instead of panicking if the assertion cannot be canonicalized.
schema.go:1191
↓ 1 callers
Method
CheckRequestSubject
CheckRequestSubject checks that the assertion the AssertionMaker put in req.Assertion is about the principal the AuthnRequest names in its <saml:Subje
identity_provider_request_subject.go:42
↓ 1 callers
Method
Close
()
sp_coverage_helpers_test.go:248
↓ 1 callers
Method
Consume
(assertionID string, expiresAt time.Time)
replay_cache_test.go:21
↓ 1 callers
Method
Decode
Decode parses the serialized session that may have been returned by Encode and returns a Session.
samlsp/session_jwt.go:168
↓ 1 callers
Method
Decrypt
Decrypt decrypts an encrypted element with key. If the ciphertext contains an EncryptedKey element, then the type of `key` is determined by the regist
xmlenc/cbc.go:85
↓ 1 callers
Method
Decrypt
Decrypt decrypts an encrypted element with key. If the ciphertext contains an EncryptedKey element, then the type of `key` is determined by the regist
xmlenc/gcm.go:100
↓ 1 callers
Function
DefaultAssertionHandler
DefaultAssertionHandler returns the default AssertionHandler for the provided options, a NopAssertionHandler configured to do nothing.
samlsp/new.go:541
↓ 1 callers
Function
DefaultLogoutRequestTracker
DefaultLogoutRequestTracker returns a new RequestTracker for the LogoutRequests of SP initiated single logout: a CookieRequestTracker whose cookies ar
samlsp/new.go:370
↓ 1 callers
Method
Deflate
Deflate returns a compressed byte array of the LogoutRequest
schema.go:308
↓ 1 callers
Method
Delete
Delete removes `key`
samlidp/memory_store.go:45
↓ 1 callers
Method
DeleteExpiredSessions
DeleteExpiredSessions deletes the stored sessions, and their recorded participants, that expired more than a day ago. Sessions stop logging anyone in
samlidp/session.go:223
↓ 1 callers
Method
DeleteSession
DeleteSession is called to modify the response such that it removed the current session, e.g. by deleting a cookie.
samlsp/session_cookie.go:132
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:469
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:496
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:676
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:949
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1353
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1617
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1685
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1822
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1855
↓ 1 callers
Method
Encrypt
Encrypt encrypts plaintext with key, which should be a []byte of length KeySize(). It returns an xenc:EncryptedData element.
xmlenc/cbc.go:35
↓ 1 callers
Method
Encrypt
Encrypt encrypts plaintext with key, which should be a []byte of length KeySize(), and returns an xenc:EncryptedData element. Pass a nil nonce, and E
xmlenc/gcm.go:40
↓ 1 callers
Method
Error
()
identity_provider_logout_soap_test.go:136
↓ 1 callers
Function
FetchSignedMetadataByEntityID
FetchSignedMetadataByEntityID fetches metadata from metadataURL and parses it with ParseSignedMetadataByEntityID.
samlsp/fetch_metadata.go:297
↓ 1 callers
Method
Get
Get returns the first attribute named `key` or an empty string if no such attributes is present.
samlsp/session_jwt.go:241
↓ 1 callers
Method
Get
(key string, value interface{})
samlidp/samlidp_coverage_test.go:34
↓ 1 callers
Method
Get
Get fetches the data stored in `key` and unmarshals it into `value`.
samlidp/memory_store.go:17
↓ 1 callers
Method
GetByName
GetByName returns the assertion attribute whose Name is name, or nil if there is none. Unlike Get, it never matches a FriendlyName.
service_provider.go:1268
↓ 1 callers
Method
GetSession
GetSession returns the *Session for this request. If the remote user has specified a username and password in the request then it is validated agains
samlidp/session.go:71
↓ 1 callers
Method
GetSessionIssuedAt
GetSessionIssuedAt returns when the session was issued.
samlsp/session_revocation.go:59
↓ 1 callers
Method
HandleAssertion
(assertion *saml.Assertion)
samlsp/saml_assertion_handler.go:8
↓ 1 callers
Method
InvalidateSession
(w http.ResponseWriter, r *http.Request, req *IdpLogoutRequest)
identity_provider_logout.go:47
↓ 1 callers
Method
KeySize
KeySize returns the length of the key required.
xmlenc/cbc.go:23
↓ 1 callers
Method
KeySize
KeySize returns the length of the key required.
xmlenc/gcm.go:22
↓ 1 callers
Method
MarshalText
MarshalText implements the encoding.TextMarshaler interface. The duration is written with hours, minutes and seconds only (never years, months or day
duration.go:21
↓ 1 callers
Method
New
New creates a Session from the SAML assertion. The returned Session is a JWTSessionClaims.
samlsp/session_jwt.go:53
↓ 1 callers
Method
ParseXMLSOAPLogoutRequest
ParseXMLSOAPLogoutRequest validates soapRequestXML, a SOAP 1.1 envelope whose Body holds a samlp:LogoutRequest from the IdP, and returns the request.
service_provider_soap_logout.go:86
↓ 1 callers
Method
ParseXMLSOAPLogoutResponse
ParseXMLSOAPLogoutResponse validates soapResponseXML, the SOAP envelope the IdP returned for req, and returns the LogoutResponse it holds. Use it to s
service_provider_soap_logout.go:323
↓ 1 callers
Method
Pop
()
samlidp/session_expiry.go:40
↓ 1 callers
Method
PostWithNonce
PostWithNonce is like Post, but if nonce is not empty it is set as the nonce attribute of the form's auto-submit <script> element, so that the form ca
service_provider.go:3045
↓ 1 callers
Method
PostWithNonce
PostWithNonce is like Post, but if nonce is not empty it is set as the nonce attribute of the form's auto-submit <script> element, so that the form ca
service_provider.go:3214
↓ 1 callers
Method
Print
Print prints to the logger.
logger/logger.go:14
↓ 1 callers
Method
Push
(x any)
samlidp/session_expiry.go:39
↓ 1 callers
Method
Read
(p []byte)
samlsp/fetch_metadata_limit_test.go:50
↓ 1 callers
Method
RevocableSessions
RevocableSessions reports whether every Session that Decode returns implements RevocableSession, with the NameID value and (as the "SessionIndex" attr
samlsp/session_revocation.go:92
↓ 1 callers
Method
RoundTrip
(r *http.Request)
identity_provider_logout_soap_test.go:449
↓ 1 callers
Method
SaveForm
SaveForm is called by HandleStartAuthFlow for a same-origin POST request r that has no session. index is the RelayState of the auth flow, as returned
samlsp/form_replay.go:48
↓ 1 callers
Method
SessionParticipants
SessionParticipants returns the participants recorded for every session for which match returns true. ServeSLO calls it before it ends the sessions (s
identity_provider_logout_propagation.go:73
↓ 1 callers
Method
SimpleSignWithNonce
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.
simplesign_binding.go:437
↓ 1 callers
Method
SimpleSignWithNonce
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.
simplesign_binding.go:473
↓ 1 callers
Method
SoapRequest
SoapRequest returns a SOAP Envelope contining the ArtifactResolve request
schema.go:599
↓ 1 callers
Method
Unwrap
()
errors.go:175
↓ 1 callers
Method
VerifySignature
(validationContext *dsig.ValidationContext, el *etree.Element)
service_provider.go:75
↓ 1 callers
Method
VerifySignedElement
(validationContext *dsig.ValidationContext, el *etree.Element)
service_provider.go:67
↓ 1 callers
Function
acsselBool
(b bool)
idp_acs_selection_test.go:23
↓ 1 callers
Function
acsselMetadata
acsselMetadata returns SP metadata whose only SPSSODescriptor has acs as its assertion consumer services.
idp_acs_selection_test.go:27
↓ 1 callers
Method
addSOAPSP
(t *testing.T)
samlidp/logout_soap_test.go:37
↓ 1 callers
Method
armSessionExpiryLocked
armSessionExpiryLocked arms the timer for the earliest deadline in the heap, unless it is already armed for it. s.expiry.mu must be held.
samlidp/session_expiry.go:113
↓ 1 callers
Method
artifactResolutionLocation
artifactResolutionLocation returns the location of the IdP's SOAP ArtifactResolutionService for artifact. When artifact is a decoded type 0x0004 artif
artifact.go:77
↓ 1 callers
Function
artifactSourceID
artifactSourceID returns the SourceID an IdP with entityID puts in its artifacts: the SHA-1 hash of its entity ID (saml-bindings-2.0-os §3.6.4.1).
artifact.go:67
↓ 1 callers
Function
assertNotRegistered
assertNotRegistered checks that the SP was neither stored nor registered.
samlidp/signed_sp_metadata_test.go:61
↓ 1 callers
Method
attributeAuthoritySigningCerts
attributeAuthoritySigningCerts returns the IdP certificates that may sign attribute query responses: those of its AttributeAuthorityDescriptors, or if
service_provider_attribute_query.go:336
↓ 1 callers
Method
attributeQueryAssertion
attributeQueryAssertion parses and validates assertionEl. receivedEl is the assertion as received (see receivedChildren), on which its signature is ch
service_provider_attribute_query.go:471
↓ 1 callers
Method
attributeQueryAssertions
attributeQueryAssertions returns the assertions of responseEl, decrypting the encrypted ones. Each must be valid for query; if signatureRequired, each
service_provider_attribute_query.go:419
↓ 1 callers
Method
attributeQueryResponse
attributeQueryResponse returns the SOAP response of the attribute authority to query: a Response signed by the IdP with an assertion about the queried
samlsp/middleware_attribute_query_test.go:184
↓ 1 callers
Method
attributeQuerySignature
attributeQuerySignature reports whether el carries a valid signature by the attribute authority and, if so, returns what the signature covers (see val
service_provider_attribute_query.go:361
↓ 1 callers
Function
attributeValueString
attributeValueString returns the string form of a SAML AttributeValue. Some attributes, such as eduPersonTargetedID, carry a <saml:NameID> element in
samlsp/session_jwt.go:148
↓ 1 callers
Method
authenticate
authenticate checks the username and password posted in r and, if they are valid, creates a session, sets the session cookie and returns the session.
samlidp/session.go:104
↓ 1 callers
Method
authnContextClassRef
authnContextClassRef returns the AuthnContextClassRef to assert for session: session.AuthnContextClassRef, or PasswordProtectedTransport if that is em
identity_provider_authn_context.go:60
↓ 1 callers
Method
authnContextClassStrengths
authnContextClassStrengths returns AuthnContextClassStrengths, or DefaultAuthnContextClassStrengths if it is nil.
identity_provider_authn_context.go:103
↓ 1 callers
Function
authnContextRankedMatch
authnContextRankedMatch reports whether achieved and at least one of the requested classes are ranked in strengths, and match holds for their strength
identity_provider_authn_context.go:142
↓ 1 callers
Function
bytesHex
(a [20]byte)
artifact_decoding_test.go:258
↓ 1 callers
Method
cbcGCMEncryptedAssertion
cbcGCMEncryptedAssertion is spcovEnv.encryptedAssertion with AES-128-GCM in place of AES-128-CBC.
cbc_integrity_test.go:17
↓ 1 callers
Method
check
check reports whether before decodes to the same token after encoding.
internal/xmlroundtrip/validate.go:162
↓ 1 callers
Method
checkArtifact
checkArtifact decodes the SAMLart value artifactID and checks it against the IdP metadata. It returns the decoded artifact, or nil when artifactID is
artifact.go:107
↓ 1 callers
Function
checkEntraIDAssertion
(t *testing.T, assertion *Assertion)
entra_id_test.go:97
↓ 1 callers
Method
checkLoginOrigin
checkLoginOrigin returns an error if r, which posts login credentials, was sent by a browser from a page of another origin. Without this check, a pag
samlidp/session.go:172
↓ 1 callers
Method
checkNameIDPolicy
checkNameIDPolicy checks the request's NameIDPolicy against a NameID of the given format, as saml-core §3.4.1.1 requires: a Format other than unspecif
identity_provider_nameid.go:69
↓ 1 callers
Function
checkNoMandatorySOAPHeader
checkNoMandatorySOAPHeader fails if the envelope that holds bodyChild has a header entry with mustUnderstand="1": the IdP understands none, so it must
identity_provider_logout_soap_request.go:57
↓ 1 callers
Function
checkPartialLogout
checkPartialLogout checks that code is Success with the second-level status PartialLogout.
logout_response_status_test.go:37
↓ 1 callers
Function
checkRequestedAttributesUnique
checkRequestedAttributesUnique returns an error if two of attributes have the same Name and NameFormat, which saml-core §3.3.2.3 forbids.
service_provider_attribute_query.go:130
↓ 1 callers
Method
checkRequestedAuthnContext
checkRequestedAuthnContext returns a *StatusError if the authentication context class achieved does not satisfy the request's RequestedAuthnContext. A
identity_provider_authn_context.go:79
↓ 1 callers
Method
checkResponseSignature
parseReceivedResponse is parseResponse, where receivedEl is responseEl as received: responseEl itself, or, inside a signed ArtifactResponse, its count
service_provider.go:1657
← previous
next →
801–900 of 2,436, ranked by callers