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
Revoke
Revoke records that the sessions with key issued at or before revokedAt are revoked. If key is already recorded, the later of the two times is kept. T
samlsp/session_revocation.go:119
↓ 2 callers
Method
RevokedAt
RevokedAt returns the time recorded for key, or the zero time if none is recorded (or its record has expired).
samlsp/session_revocation.go:123
↓ 2 callers
Method
RevokedAt
RevokedAt implements SessionRevocationStore.
samlsp/session_revocation.go:339
↓ 2 callers
Method
Sign
(rand io.Reader, digest []byte, opts crypto.SignerOpts)
samlsp/middleware_test.go:664
↓ 2 callers
Method
SignArtifactResolve
SignArtifactResolve adds the `Signature` element to the `ArtifactResolve`.
service_provider.go:1146
↓ 2 callers
Method
SignAttributeQuery
SignAttributeQuery adds an enveloped `Signature` element to the `AttributeQuery`, replacing any it already has. It signs with SignatureMethod or, when
service_provider_attribute_query.go:149
↓ 2 callers
Method
SignAuthnRequest
SignAuthnRequest adds the `Signature` element to the `AuthnRequest`.
service_provider.go:1164
↓ 2 callers
Method
SignedMetadata
SignedMetadata returns the IdP metadata as an XML element carrying an enveloped signature made with the IdP's key (saml-metadata-2.0-os §3). The sign
identity_provider.go:683
↓ 2 callers
Method
SimpleSignBinding
SimpleSignBinding creates the HTTP-POST-SimpleSign form information for this IdpAuthnRequest, which must have an ACS endpoint with that binding. If Re
simplesign_idp.go:106
↓ 2 callers
Method
StartLogout
StartLogout starts IdP-initiated single logout (saml-profiles-2.0-os §4.4.3.3) of session. Each service provider the session was used for (see Session
identity_provider_logout_propagation.go:194
↓ 2 callers
Method
Stop
()
samlidp/session_expiry.go:24
↓ 2 callers
Method
TakeForm
TakeForm returns and deletes the form saved under index. It reports false if there is no such form, or if it has expired.
samlsp/form_replay.go:52
↓ 2 callers
Method
UnmarshalText
UnmarshalText implements encoding.TextUnmarshaler
time.go:45
↓ 2 callers
Method
ValidateLogoutResponseRedirect
ValidateLogoutResponseRedirect returns a nil error if the logout response is valid. queryParameterData is the URL-decoded value of the SAMLResponse qu
service_provider.go:3463
↓ 2 callers
Method
WriteResponse
WriteResponse writes the `Response` to the http.ResponseWriter. If `Response` is not already set, it calls MakeResponse to produce it. If the ACS end
identity_provider.go:1826
↓ 2 callers
Function
WriteSOAPLogoutResponse
WriteSOAPLogoutResponse writes resp to w in a SOAP 1.1 envelope, as the answer to a LogoutRequest received with the SOAP binding.
service_provider_soap_logout.go:197
↓ 2 callers
Method
acceptsSOAPLogout
acceptsSOAPLogout reports whether ServeSLO accepts LogoutRequests with the SOAP binding: whether LogoutBindings, which the IdP metadata advertises, in
identity_provider_logout_soap_request.go:32
↓ 2 callers
Method
addHTTPSOAPParticipant
addHTTPSOAPParticipant is addSOAPParticipant with a plain http SOAP SingleLogoutService, which the IdP ignores unless AllowInsecureSOAPEndpoints is se
identity_provider_logout_soap_test.go:59
↓ 2 callers
Method
addSOAPParticipantAt
(p *soapParticipant, frontChannelBindings []string)
identity_provider_logout_soap_test.go:66
↓ 2 callers
Function
appendPadding
(buf []byte, blockSize int)
xmlenc/cbc.go:177
↓ 2 callers
Function
applyBindingOptions
applyBindingOptions sets the request, response and logout bindings of m from opts.Binding, opts.UseSimpleSignResponse and opts.LogoutBinding, and chec
samlsp/new.go:499
↓ 2 callers
Method
applyTo
applyTo sets entity's ValidUntil and CacheDuration to the earliest and shortest of its own and v's, so that the parent's policy takes precedence (saml
samlsp/fetch_metadata.go:247
↓ 2 callers
Function
assertCBCRefused
(t *testing.T, err error)
cbc_integrity_test.go:65
↓ 2 callers
Function
assertChildOrder
assertChildOrder checks the local names of the child elements of the root of buf.
logout_request_session_indexes_test.go:65
↓ 2 callers
Function
assertInvalidNameIDPolicy
(t *testing.T, err error)
samlidp/nameid_formats_test.go:80
↓ 2 callers
Function
assertSignatureFollowsIssuer
assertSignatureFollowsIssuer checks that the first two children of el are Issuer and the signature fixture, the order the SAML schema requires.
schema_signature_test.go:16
↓ 2 callers
Function
assertXHTMLDocument
assertXHTMLDocument checks that page is a well-formed XML document whose root is an XHTML html element holding a head with a title and a body, as saml
xhtml_forms_test.go:28
↓ 2 callers
Function
assertXHTMLDocument
assertXHTMLDocument checks that page is a well-formed XML document whose root is an XHTML html element holding a head with a title and a body (saml-bi
samlsp/xhtml_forms_test.go:24
↓ 2 callers
Function
assertXHTMLDocument
assertXHTMLDocument checks that page is a well-formed XML document whose root is an XHTML html element holding a head with a title and a body (saml-bi
samlidp/xhtml_forms_test.go:22
↓ 2 callers
Function
assertionEncrypter
assertionEncrypter returns the Encrypter for an assertion: configured, if it is set, and otherwise RSA-OAEP-MGF1P with a SHA-1 digest, which all imple
identity_provider.go:1737
↓ 2 callers
Function
assertionUID
assertionUID returns the value of the uid attribute DefaultAssertionMaker sets from Session.UserName.
simplesign_idp_test.go:42
↓ 2 callers
Function
attributeValueString
(t *testing.T, el *etree.Element)
attribute_value_test.go:20
↓ 2 callers
Function
audienceRestrictionContains
audienceRestrictionContains reports whether any audience of r is audience.
service_provider.go:2524
↓ 2 callers
Function
authnContextSatisfies
authnContextSatisfies reports whether the class achieved satisfies the requested classes under comparison, following saml-core §3.3.2.2.1 as amended b
identity_provider_authn_context.go:122
↓ 2 callers
Function
captureDefaultOnError
(t *testing.T, err error)
samlsp/error_test.go:19
↓ 2 callers
Method
cbcParse
(t *testing.T, sp *ServiceProvider, responseEl *etree.Element)
cbc_integrity_test.go:54
↓ 2 callers
Method
checkCBCIntegrity
checkCBCIntegrity implements RequireSignedResponseForCBC: it refuses encryptedEl, an EncryptedAssertion, if one of its EncryptedData children is encry
service_provider.go:1864
↓ 2 callers
Method
checkIDPMetadataNotExpired
checkIDPMetadataNotExpired returns an error matching ErrExpired if RejectExpiredIDPMetadata is set and the validUntil of the IDPMetadata EntityDescrip
service_provider.go:816
↓ 2 callers
Function
checkLogoutSuccess
checkLogoutSuccess checks that resp deletes the session cookie and posts the IdP a LogoutResponse with the status Success.
samlsp/front_channel_revocation_test.go:81
↓ 2 callers
Function
checkNamespaceDeclarations
checkNamespaceDeclarations makes the checks NSContext.SubContext makes of el's namespace declarations.
service_provider.go:3728
↓ 2 callers
Function
checkPlainSuccess
checkPlainSuccess checks that code is Success without a second-level status.
logout_response_status_test.go:46
↓ 2 callers
Method
checkRoleNotExpired
checkRoleNotExpired is checkIDPMetadataNotExpired for a role descriptor of the IDPMetadata, named kind.
service_provider.go:828
↓ 2 callers
Method
checkSendableACS
checkSendableACS returns an error matching errUnsupportedACSBinding if the default ResponseWriter is used and the assertion consumer service of the va
identity_provider_error_response.go:165
↓ 2 callers
Function
checkSessionDeletedOnce
checkSessionDeletedOnce checks that resp deletes the session cookie, and sets it no more times than DeleteSession does.
samlsp/soap_start_logout_test.go:176
↓ 2 callers
Function
checkSignatureReference
checkSignatureReference checks that the enveloped ds:Signature of el (its direct child) follows the reference profile of saml-core-2.0-os §5.4.2 and s
signature_reference.go:23
↓ 2 callers
Function
classifyCertificate
classifyCertificate reports whether a signature that failed to validate against roots was made with an untrusted certificate, or with a trusted one ou
errors.go:192
↓ 2 callers
Function
clockNow
clockNow returns the current time from clock or, if it is nil, from the deprecated package-level TimeNow.
util.go:40
↓ 2 callers
Function
conditionsUnknownAttributeQueryResponse
conditionsUnknownAttributeQueryResponse is the SOAP envelope of a signed attribute query Response whose Assertion element is changed by mutate.
conditions_unknown_test.go:138
↓ 2 callers
Function
conditionsWithAudiences
conditionsWithAudiences returns a Conditions element whose one AudienceRestriction lists audiences in order. An audience written "x|value" is put in a
audience_restriction_test.go:18
↓ 2 callers
Method
cookiePath
()
samlsp/request_tracker_cookie.go:38
↓ 2 callers
Function
covECDSACert
covECDSACert returns a self-signed certificate holding an ECDSA public key.
xmlenc/helpers_coverage_test.go:49
↓ 2 callers
Function
covSeeds
covSeeds returns the fuzzing corpus, past crashers and a set of malformed documents that reach each decrypter with hostile input.
xmlenc/fuzz_coverage_test.go:68
↓ 2 callers
Function
covServeFailWriter
covServeFailWriter runs a request through the server's mux with a response writer that fails all body writes, and returns the status code.
samlidp/handlers_coverage_test.go:30
↓ 2 callers
Function
covTestKeyDocument
covTestKeyDocument returns an EncryptedData document encrypted to covFuzzKey, the key the tests pass to Fuzz.
xmlenc/fuzz_coverage_test.go:32
↓ 2 callers
Function
currentAccount
currentAccount returns the SAML NameID of the signed-in user, which identifies the owner of a link. It is taken from the session samlsp established, n
example/service.go:63
↓ 2 callers
Function
customFormWriter
customFormWriter writes the form values as plain text, so tests can tell its output from the default HTML form.
identity_provider_response_writer_test.go:36
↓ 2 callers
Function
decodeEtreeElement
decodeEtreeElement builds an etree element from start and the tokens up to its end. xml.Decoder replaces prefixes with namespace URIs, so each prefix
etree_xml.go:133
↓ 2 callers
Function
decryptAES128CBC
decryptAES128CBC encrypts padded, which must be a whole number of blocks, with key in AES-128-CBC under a zero IV, and returns what Decrypt makes of i
xmlenc/cbc_padding_test.go:17
↓ 2 callers
Method
decryptElement
decryptElement decrypts encryptedEl, an element with an xenc:EncryptedData child such as saml:EncryptedID, with the IdP's Key, if it is an *rsa.Privat
encrypted_id.go:281
↓ 2 callers
Method
decryptEncryptedAttributes
decryptEncryptedAttributes decrypts each saml:EncryptedAttribute (saml-core §2.7.3.2) of the AttributeStatements of assertionEl with the SP's decrypti
service_provider.go:2081
↓ 2 callers
Method
decryptEncryptedIDs
decryptEncryptedIDs sets the NameID of subject, and of each of its SubjectConfirmations, that is given as an EncryptedID (saml-core §2.2.4) to the Nam
service_provider.go:2004
↓ 2 callers
Function
decryptNameID
decryptNameID decrypts encryptedID, a saml:EncryptedID element, with decrypt, which returns the root element of the plaintext, and returns the saml:Na
encrypted_id.go:23
↓ 2 callers
Function
decryptOAEP
decryptOAEP unwraps ciphertext with RSA-OAEP using dm as the OAEP digest and MGF1 with mgfHash. Earlier releases of this package always used the dige
xmlenc/oaep.go:89
↓ 2 callers
Function
decryptWithKeys
decryptWithKeys decrypts encryptedEl, an element with an xenc:EncryptedData child such as saml:EncryptedID or saml:EncryptedAssertion, with the first
encrypted_id.go:216
↓ 2 callers
Function
decryptionKeysPrivateErr
(t *testing.T, err error)
service_provider_decryption_keys_test.go:82
↓ 2 callers
Function
deflateForTest
(t *testing.T, data []byte)
flate_limit_test.go:13
↓ 2 callers
Method
dsigClock
dsigClock returns the clock to use for signature validation. It may be nil, in which case dsig uses the real clock.
identity_provider.go:521
↓ 2 callers
Function
dsigClockOrDefault
dsigClockOrDefault returns clock or, if it is nil, the deprecated package-level Clock (which may also be nil).
util.go:49
↓ 2 callers
Function
earliest
(a, b time.Time)
service_provider.go:2383
↓ 2 callers
Function
ecdsaDERToJWS
ecdsaDERToJWS converts an ASN.1 DER encoded ECDSA signature to the fixed-width R||S form used by JWS (RFC 7518 section 3.4).
samlsp/jwt_signer.go:135
↓ 2 callers
Function
elementCopyToBytes
(root *etree.Element)
service_provider.go:3856
↓ 2 callers
Function
elementWithNamespaces
elementWithNamespaces returns a copy of el that declares every namespace prefix it inherits from its ancestors.
service_provider.go:3832
↓ 2 callers
Function
encodeEtreeElement
encodeEtreeElement writes el to e with its prefixes intact. scope holds the prefixes declared by the ancestors already written ("" is the default name
etree_xml.go:38
↓ 2 callers
Method
encodeLogoutState
encodeLogoutState serializes state and signs it with the IdP's key.
identity_provider_logout_propagation.go:806
↓ 2 callers
Function
encryptIdentifier
encryptIdentifier returns a saml:EncryptedID holding identifier, a saml:NameID or saml:BaseID element, encrypted to cert with encrypter. identifier is
encrypted_id.go:96
↓ 2 callers
Function
encryptOAEP
encryptOAEP wraps plaintext with RSA-OAEP using dm as the OAEP digest and MGF1 with mgfHash. A digest method registered by the caller that this packa
xmlenc/oaep.go:67
↓ 2 callers
Method
encryptedIDLogoutRequest
(t *testing.T)
logout_request_session_indexes_test.go:142
↓ 2 callers
Function
encryptedKeyCandidates
encryptedKeyCandidates returns the xenc:EncryptedKey elements that may hold the content key of encryptedDataEl: those beside it in encryptedEl and tho
encrypted_id.go:263
↓ 2 callers
Function
entraSign
(kp tls.Certificate, el *etree.Element)
testdata/entra_id_gen/main.go:44
↓ 2 callers
Method
expireLegacyCookie
expireLegacyCookie expires the session cookie scoped to c.legacyDomain, if any.
samlsp/session_cookie.go:174
↓ 2 callers
Method
expiredCookie
expiredCookie returns a cookie that expires the session cookie scoped to domain and path. It has the same attributes as the cookie CreateSession sets:
samlsp/session_cookie.go:159
↓ 2 callers
Function
fetchMetadata
fetchMetadata returns the metadata server serves at /metadata.
samlidp/metadata_options_test.go:20
↓ 2 callers
Method
findACSEndpoint
findACSEndpoint returns copies of the first AssertionConsumerService endpoint in the service provider metadata for which match returns true and of its
identity_provider.go:1332
↓ 2 callers
Function
fingerprintFormat
(fp []byte)
service_provider.go:938
↓ 2 callers
Method
getCertBasedOnFingerprint
(el *etree.Element)
service_provider.go:876
↓ 2 callers
Method
getIDPEncryptionCert
getIDPEncryptionCert returns the IDP certificate to encrypt to, and the EncryptionMethods listed with it: the first one in the IDP SSO descriptors who
service_provider.go:2932
↓ 2 callers
Function
getService
getService sends GET /services/sp and returns the response.
samlidp/signed_service_store_test.go:25
↓ 2 callers
Function
hasSignature
hasSignature reports whether md, or one of its SPSSODescriptors, holds an XML signature.
samlidp/signed_service_store_test.go:68
↓ 2 callers
Function
idpcovAliceSession
(_ http.ResponseWriter, _ *http.Request, _ *IdpAuthnRequest)
idp_coverage_test.go:79
↓ 2 callers
Method
initializeServices
initializeServices reads all the stored services and initializes the underlying identity provider to accept them.
samlidp/service.go:311
↓ 2 callers
Method
invalidateSession
invalidateSession ends the IdP sessions the valid LogoutRequest req refers to with the SessionProvider's SessionInvalidator, and returns the status to
identity_provider_logout.go:661
↓ 2 callers
Function
isLocalRedirect
isLocalRedirect reports whether uri is an absolute path on this site, and so safe to redirect to. It refuses anything a browser could resolve to anoth
samlsp/middleware.go:420
↓ 2 callers
Method
isPastRetention
isPastRetention reports whether session expired more than expiredSessionRetention ago, and can be deleted.
samlidp/session.go:210
↓ 2 callers
Function
isSendableBinding
isSendableBinding reports whether the IdP can send a Response to an assertion consumer service with binding: HTTP-POST or HTTP-POST-SimpleSign. HTTP-R
identity_provider.go:1352
↓ 2 callers
Method
isSigned
isSigned reports whether the request carries a signature: an enveloped ds:Signature element, the SigAlg or Signature query parameter of the HTTP-Redir
identity_provider.go:1056
↓ 2 callers
Function
isTrue
isTrue reports whether an optional boolean attribute is present and true.
samlidp/session.go:267
↓ 2 callers
Function
keyInfo
(der []byte)
logout_request_identifiers_test.go:128
↓ 2 callers
Method
loginCookie
loginCookie creates a session for an assertion about nameID, as ServeACS does, and returns its cookie.
samlsp/middleware_attribute_query_test.go:229
↓ 2 callers
Function
logoutResponseLocation
logoutResponseLocation returns the location a LogoutResponse is sent to at endpoint: its ResponseLocation if set, otherwise its Location (saml-metadat
identity_provider_logout.go:387
↓ 2 callers
Function
logoutResponseStatus
logoutResponseStatus returns the status of the LogoutResponse in buf.
logout_response_status_test.go:27
← previous
next →
601–700 of 2,436, ranked by callers