MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions428 in github.com/crewjam/saml

↓ 1 callersFunctionContextWithSession
ContextWithSession returns a new context with session associated
samlsp/session.go:73
↓ 1 callersMethodCreateSession
CreateSession is called when we have received a valid SAML assertion and should create a new session and modify the http response accordingly, e.g. by
samlsp/session_cookie.go:30
↓ 1 callersMethodCreateSessionFromAssertion
CreateSessionFromAssertion is invoked by ServeHTTP when we have a new, valid SAML assertion.
samlsp/middleware.go:185
↓ 1 callersFunctionDefaultRequestTracker
DefaultRequestTracker returns a new RequestTracker for the provided options, a CookieRequestTracker which uses cookies to track pending requests.
samlsp/new.go:80
↓ 1 callersFunctionDefaultServiceProvider
DefaultServiceProvider returns the default saml.ServiceProvider for the provided options.
samlsp/new.go:93
↓ 1 callersFunctionDefaultTrackedRequestCodec
DefaultTrackedRequestCodec returns a new TrackedRequestCodec for the provided options, a JWTTrackedRequestCodec that uses a JWT to encode TrackedReque
samlsp/new.go:68
↓ 1 callersMethodDeleteSession
DeleteSession is called to modify the response such that it removed the current session, e.g. by deleting a cookie.
samlsp/session.go:34
↓ 1 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:23
↓ 1 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:310
↓ 1 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:419
↓ 1 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:502
↓ 1 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1211
↓ 1 callersMethodError
()
xmlenc/decrypt.go:49
↓ 1 callersMethodFatal
Fatal is equivalent to Print() followed by a call to os.Exit(1).
logger/logger.go:17
↓ 1 callersMethodFatalf
Fatalf is equivalent to Printf() followed by a call to os.Exit(1).
logger/logger.go:19
↓ 1 callersFunctionFuzz
Fuzz is the go-fuzz fuzzing function
xmlenc/fuzz.go:36
↓ 1 callersMethodGetSession
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:36
↓ 1 callersMethodGetTrackedRequest
GetTrackedRequest returns a pending tracked request.
samlsp/request_tracker.go:29
↓ 1 callersMethodGetTrackedRequests
GetTrackedRequests returns all the pending tracked requests
samlsp/request_tracker.go:26
↓ 1 callersMethodHandleStartAuthFlow
HandleStartAuthFlow is called to start the SAML authentication process.
samlsp/middleware.go:122
↓ 1 callersMethodHash
()
xmlenc/xmlenc.go:37
↓ 1 callersMethodInitializeHTTP
InitializeHTTP sets up the HTTP handler for the server. (This function is called automatically for you by New, but you may need to call it yourself if
samlidp/samlidp.go:84
↓ 1 callersMethodKeySize
()
xmlenc/xmlenc.go:61
↓ 1 callersMethodKeySize
KeySize returns the length of the key required.
xmlenc/cbc.go:22
↓ 1 callersMethodKeySize
KeySize returns the length of the key required.
xmlenc/gcm.go:22
↓ 1 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:1252
↓ 1 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:1362
↓ 1 callersMethodMakeRedirectLogoutResponse
MakeRedirectLogoutResponse creates a SAML LogoutResponse using the HTTP-Redirect binding. It returns a URL that we will redirect the user to for Logou
service_provider.go:1326
↓ 1 callersFunctionPKCS1v15
PKCS1v15 returns a version of RSA that implements RSA in PKCS1v15 mode. By default the block cipher used is AES-256 CBC. The DigestMethod field is ign
xmlenc/pubkey.go:145
↓ 1 callersFunctionParseMetadata
ParseMetadata parses arbitrary SAML IDP metadata. Note: this is needed because IDP metadata is sometimes wrapped in an <EntitiesDescriptor>, and some
samlsp/fetch_metadata.go:23
↓ 1 callersFunctionParseRedirectResponse
ParseRedirectResponse returns the decoded SAML LogoutResponse from an HTTP-Redirect URL
testsaml/parse.go:26
↓ 1 callersMethodPostBinding
PostBinding creates the HTTP POST form information for this `IdpAuthnRequest`. If `Response` is not already set, it calls MakeResponse to produce it.
identity_provider.go:910
↓ 1 callersMethodRead
(p []byte)
samlidp/samlidp_test.go:29
↓ 1 callersFunctionRegisterDigestMethod
RegisterDigestMethod registers the specified digest method to that it can be used with Decrypt().
xmlenc/xmlenc.go:53
↓ 1 callersMethodServeACS
ServeACS handles requests for the SAML ACS endpoint.
samlsp/middleware.go:76
↓ 1 callersMethodSignArtifactResolve
SignArtifactResolve adds the `Signature` element to the `ArtifactResolve`.
service_provider.go:463
↓ 1 callersMethodSignAuthnRequest
SignAuthnRequest adds the `Signature` element to the `AuthnRequest`.
service_provider.go:481
↓ 1 callersMethodSignLogoutRequest
SignLogoutRequest adds the `Signature` element to the `LogoutRequest`.
service_provider.go:1150
↓ 1 callersMethodSignLogoutResponse
SignLogoutResponse adds the `Signature` element to the `LogoutResponse`.
service_provider.go:1407
↓ 1 callersMethodStopTrackingRequest
StopTrackingRequest stops tracking the SAML request given by index, which is a string previously returned from TrackRequest
samlsp/request_tracker.go:23
↓ 1 callersMethodTrackRequest
TrackRequest starts tracking the SAML request with the given ID. It returns an `index` that should be used as the RelayState in the SAMl request flow.
samlsp/request_tracker.go:19
↓ 1 callersMethodUnmarshalText
UnmarshalText implements encoding.TextUnmarshaler
time.go:25
↓ 1 callersMethodUnmarshalText
UnmarshalText implements the encoding.TextUnmarshaler interface.
duration.go:60
↓ 1 callersMethodValidateLogoutResponseForm
ValidateLogoutResponseForm returns a nil error if the logout response is valid.
service_provider.go:1472
↓ 1 callersMethodValidateLogoutResponseRedirect
ValidateLogoutResponseRedirect returns a nil error if the logout response is valid. URL Binding appears to be gzip / flate encoded See https://www.oa
service_provider.go:1515
↓ 1 callersMethodVerifySignature
(validationContext *dsig.ValidationContext, el *etree.Element)
service_provider.go:52
↓ 1 callersFunctionelementToString
(el *etree.Element)
service_provider.go:1676
↓ 1 callersFunctionfindChild
findChild finds the specified child element. Returns (nil, nil) of the element doesn't exist.
service_provider.go:1634
↓ 1 callersMethodgetACSEndpoint
()
identity_provider.go:457
↓ 1 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:333
↓ 1 callersMethodgetSPEncryptionCert
getSPEncryptionCert returns the certificate which we can use to encrypt things to the SP in PEM format, or nil if no such certificate is found.
identity_provider.go:969
↓ 1 callersMethodhandleArtifactRequest
(ctx context.Context, artifactID string, possibleRequestIDs []string)
service_provider.go:604
↓ 1 callersMethodinitializeServices
initializeServices reads all the stored services and initializes the underlying identity provider to accept them.
samlidp/service.go:119
↓ 1 callersFunctionmustParseCertificate
(pemStr []byte)
identity_provider_test.go:65
↓ 1 callersFunctionmustParseCertificate
(pemStr []byte)
samlidp/samlidp_test.go:57
↓ 1 callersFunctionmustParsePrivateKey
(pemStr []byte)
identity_provider_test.go:53
↓ 1 callersFunctionmustParsePrivateKey
(pemStr []byte)
samlidp/samlidp_test.go:45
↓ 1 callersFunctionmustParseURL
(s string)
identity_provider_test.go:45
↓ 1 callersFunctionmustParseURL
(s string)
samlidp/samlidp_test.go:37
↓ 1 callersMethodparseArtifactResponse
(artifactResponseEl *etree.Element, possibleRequestIDs []string, artifactRequestID string, now time.Time)
service_provider.go:724
↓ 1 callersMethodparseEncryptedAssertion
(encryptedAssertionEl *etree.Element, possibleRequestIDs []string, now time.Time, signatureRequirement signatu
service_provider.go:951
↓ 1 callersMethodparseResponseHTTP
(req *http.Request, possibleRequestIDs []string)
service_provider.go:653
↓ 1 callersFunctionrandomBytes
(n int)
samlsp/util.go:9
↓ 1 callersFunctionrandomBytes
(n int)
samlidp/util.go:15
↓ 1 callersFunctionremoveDestinationFromDocument
(doc *etree.Document)
service_provider_test.go:968
↓ 1 callersMethodsendLoginForm
sendLoginForm produces a form which requests a username and password and directs the user back to the IDP authorize URL to restart the SAML login flow
samlidp/session.go:105
↓ 1 callersFunctionstripPadding
(buf []byte)
xmlenc/cbc.go:175
↓ 1 callersFunctionunmarshalEtreeHack
unmarshalEtreeHack parses `el` and sets values in the structure `v`. This is a hack -- it first serializes the element, then uses xml.Unmarshal.
identity_provider.go:1009
↓ 1 callersFunctionvalidateRSAKeyIfPresent
(key interface{}, encryptedKey *etree.Element)
xmlenc/decrypt.go:82
MethodAlgorithm
Algorithm returns the name of the algorithm
xmlenc/pubkey.go:26
MethodAlgorithm
()
xmlenc/digest.go:17
MethodAlgorithm
()
xmlenc/xmlenc.go:36
MethodAlgorithm
Algorithm returns the name of the algorithm, as will be found in an xenc:EncryptionMethod element.
xmlenc/cbc.go:28
MethodAlgorithm
Algorithm returns the name of the algorithm, as will be found in an xenc:EncryptionMethod element.
xmlenc/gcm.go:28
FunctionCreateLink
CreateLink handles requests to create links
example/service.go:35
MethodDecode
Decode returns a Tracked request from an encoded string.
samlsp/request_tracker.go:45
MethodDecode
Decode parses the serialized session that may have been returned by Encode and returns a Session.
samlsp/session_jwt.go:91
MethodDecode
Decode returns a Tracked request from an encoded string.
samlsp/request_tracker_jwt.go:53
MethodDecrypt
Decrypt implements Decryptor. `key` must be an *rsa.PrivateKey.
xmlenc/pubkey.go:96
MethodDecrypt
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:84
MethodDecrypt
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:89
FunctionDefaultOnError
DefaultOnError is the default ErrorFunction implementation. It prints an message via the standard log package and returns a simple text "Forbidden" me
samlsp/error.go:17
MethodDeflate
Deflate returns a compressed byte array of the LogoutRequest
schema.go:157
MethodDelete
Delete removes `key`
samlidp/memory_store.go:45
MethodDeleteSession
DeleteSession is called to modify the response such that it removed the current session, e.g. by deleting a cookie.
samlsp/session_cookie.go:61
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:584
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:606
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:703
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:717
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:745
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:802
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:825
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:853
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:874
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:898
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:959
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1020
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1034
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1046
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1059
← previousnext →101–200 of 428, ranked by callers