Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewjam/saml
/ functions
Functions
428 in github.com/crewjam/saml
⨍
Functions
428
◇
Types & classes
124
↓ 1 callers
Function
ContextWithSession
ContextWithSession returns a new context with session associated
samlsp/session.go:73
↓ 1 callers
Method
CreateSession
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 callers
Method
CreateSessionFromAssertion
CreateSessionFromAssertion is invoked by ServeHTTP when we have a new, valid SAML assertion.
samlsp/middleware.go:185
↓ 1 callers
Function
DefaultRequestTracker
DefaultRequestTracker returns a new RequestTracker for the provided options, a CookieRequestTracker which uses cookies to track pending requests.
samlsp/new.go:80
↓ 1 callers
Function
DefaultServiceProvider
DefaultServiceProvider returns the default saml.ServiceProvider for the provided options.
samlsp/new.go:93
↓ 1 callers
Function
DefaultTrackedRequestCodec
DefaultTrackedRequestCodec returns a new TrackedRequestCodec for the provided options, a JWTTrackedRequestCodec that uses a JWT to encode TrackedReque
samlsp/new.go:68
↓ 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.go:34
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:23
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:310
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:419
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:502
↓ 1 callers
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1211
↓ 1 callers
Method
Error
()
xmlenc/decrypt.go:49
↓ 1 callers
Method
Fatal
Fatal is equivalent to Print() followed by a call to os.Exit(1).
logger/logger.go:17
↓ 1 callers
Method
Fatalf
Fatalf is equivalent to Printf() followed by a call to os.Exit(1).
logger/logger.go:19
↓ 1 callers
Function
Fuzz
Fuzz is the go-fuzz fuzzing function
xmlenc/fuzz.go:36
↓ 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:36
↓ 1 callers
Method
GetTrackedRequest
GetTrackedRequest returns a pending tracked request.
samlsp/request_tracker.go:29
↓ 1 callers
Method
GetTrackedRequests
GetTrackedRequests returns all the pending tracked requests
samlsp/request_tracker.go:26
↓ 1 callers
Method
HandleStartAuthFlow
HandleStartAuthFlow is called to start the SAML authentication process.
samlsp/middleware.go:122
↓ 1 callers
Method
Hash
()
xmlenc/xmlenc.go:37
↓ 1 callers
Method
InitializeHTTP
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 callers
Method
KeySize
()
xmlenc/xmlenc.go:61
↓ 1 callers
Method
KeySize
KeySize returns the length of the key required.
xmlenc/cbc.go:22
↓ 1 callers
Method
KeySize
KeySize returns the length of the key required.
xmlenc/gcm.go:22
↓ 1 callers
Method
MakePostLogoutRequest
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 callers
Method
MakePostLogoutResponse
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 callers
Method
MakeRedirectLogoutResponse
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 callers
Function
PKCS1v15
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 callers
Function
ParseMetadata
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 callers
Function
ParseRedirectResponse
ParseRedirectResponse returns the decoded SAML LogoutResponse from an HTTP-Redirect URL
testsaml/parse.go:26
↓ 1 callers
Method
PostBinding
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 callers
Method
Read
(p []byte)
samlidp/samlidp_test.go:29
↓ 1 callers
Function
RegisterDigestMethod
RegisterDigestMethod registers the specified digest method to that it can be used with Decrypt().
xmlenc/xmlenc.go:53
↓ 1 callers
Method
ServeACS
ServeACS handles requests for the SAML ACS endpoint.
samlsp/middleware.go:76
↓ 1 callers
Method
SignArtifactResolve
SignArtifactResolve adds the `Signature` element to the `ArtifactResolve`.
service_provider.go:463
↓ 1 callers
Method
SignAuthnRequest
SignAuthnRequest adds the `Signature` element to the `AuthnRequest`.
service_provider.go:481
↓ 1 callers
Method
SignLogoutRequest
SignLogoutRequest adds the `Signature` element to the `LogoutRequest`.
service_provider.go:1150
↓ 1 callers
Method
SignLogoutResponse
SignLogoutResponse adds the `Signature` element to the `LogoutResponse`.
service_provider.go:1407
↓ 1 callers
Method
StopTrackingRequest
StopTrackingRequest stops tracking the SAML request given by index, which is a string previously returned from TrackRequest
samlsp/request_tracker.go:23
↓ 1 callers
Method
TrackRequest
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 callers
Method
UnmarshalText
UnmarshalText implements encoding.TextUnmarshaler
time.go:25
↓ 1 callers
Method
UnmarshalText
UnmarshalText implements the encoding.TextUnmarshaler interface.
duration.go:60
↓ 1 callers
Method
ValidateLogoutResponseForm
ValidateLogoutResponseForm returns a nil error if the logout response is valid.
service_provider.go:1472
↓ 1 callers
Method
ValidateLogoutResponseRedirect
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 callers
Method
VerifySignature
(validationContext *dsig.ValidationContext, el *etree.Element)
service_provider.go:52
↓ 1 callers
Function
elementToString
(el *etree.Element)
service_provider.go:1676
↓ 1 callers
Function
findChild
findChild finds the specified child element. Returns (nil, nil) of the element doesn't exist.
service_provider.go:1634
↓ 1 callers
Method
getACSEndpoint
()
identity_provider.go:457
↓ 1 callers
Method
getIDPSigningCerts
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 callers
Method
getSPEncryptionCert
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 callers
Method
handleArtifactRequest
(ctx context.Context, artifactID string, possibleRequestIDs []string)
service_provider.go:604
↓ 1 callers
Method
initializeServices
initializeServices reads all the stored services and initializes the underlying identity provider to accept them.
samlidp/service.go:119
↓ 1 callers
Function
mustParseCertificate
(pemStr []byte)
identity_provider_test.go:65
↓ 1 callers
Function
mustParseCertificate
(pemStr []byte)
samlidp/samlidp_test.go:57
↓ 1 callers
Function
mustParsePrivateKey
(pemStr []byte)
identity_provider_test.go:53
↓ 1 callers
Function
mustParsePrivateKey
(pemStr []byte)
samlidp/samlidp_test.go:45
↓ 1 callers
Function
mustParseURL
(s string)
identity_provider_test.go:45
↓ 1 callers
Function
mustParseURL
(s string)
samlidp/samlidp_test.go:37
↓ 1 callers
Method
parseArtifactResponse
(artifactResponseEl *etree.Element, possibleRequestIDs []string, artifactRequestID string, now time.Time)
service_provider.go:724
↓ 1 callers
Method
parseEncryptedAssertion
(encryptedAssertionEl *etree.Element, possibleRequestIDs []string, now time.Time, signatureRequirement signatu
service_provider.go:951
↓ 1 callers
Method
parseResponseHTTP
(req *http.Request, possibleRequestIDs []string)
service_provider.go:653
↓ 1 callers
Function
randomBytes
(n int)
samlsp/util.go:9
↓ 1 callers
Function
randomBytes
(n int)
samlidp/util.go:15
↓ 1 callers
Function
removeDestinationFromDocument
(doc *etree.Document)
service_provider_test.go:968
↓ 1 callers
Method
sendLoginForm
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 callers
Function
stripPadding
(buf []byte)
xmlenc/cbc.go:175
↓ 1 callers
Function
unmarshalEtreeHack
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 callers
Function
validateRSAKeyIfPresent
(key interface{}, encryptedKey *etree.Element)
xmlenc/decrypt.go:82
Method
Algorithm
Algorithm returns the name of the algorithm
xmlenc/pubkey.go:26
Method
Algorithm
()
xmlenc/digest.go:17
Method
Algorithm
()
xmlenc/xmlenc.go:36
Method
Algorithm
Algorithm returns the name of the algorithm, as will be found in an xenc:EncryptionMethod element.
xmlenc/cbc.go:28
Method
Algorithm
Algorithm returns the name of the algorithm, as will be found in an xenc:EncryptionMethod element.
xmlenc/gcm.go:28
Function
CreateLink
CreateLink handles requests to create links
example/service.go:35
Method
Decode
Decode returns a Tracked request from an encoded string.
samlsp/request_tracker.go:45
Method
Decode
Decode parses the serialized session that may have been returned by Encode and returns a Session.
samlsp/session_jwt.go:91
Method
Decode
Decode returns a Tracked request from an encoded string.
samlsp/request_tracker_jwt.go:53
Method
Decrypt
Decrypt implements Decryptor. `key` must be an *rsa.PrivateKey.
xmlenc/pubkey.go:96
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:84
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:89
Function
DefaultOnError
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
Method
Deflate
Deflate returns a compressed byte array of the LogoutRequest
schema.go:157
Method
Delete
Delete removes `key`
samlidp/memory_store.go:45
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:61
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:584
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:606
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:703
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:717
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:745
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:802
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:825
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:853
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:874
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:898
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:959
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1020
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1034
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1046
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1059
← previous
next →
101–200 of 428, ranked by callers