MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions428 in github.com/crewjam/saml

↓ 77 callersMethodGet
Get fetches the data stored in `key` and unmarshals it into `value`.
samlidp/store.go:11
↓ 59 callersMethodError
()
service_provider.go:591
↓ 59 callersFunctionmustParseURL
(s string)
samlsp/samlsp_test.go:24
↓ 52 callersFunctionNewServiceProviderTest
(t *testing.T)
service_provider_test.go:55
↓ 40 callersMethodString
()
time.go:20
↓ 32 callersMethodParseResponse
ParseResponse extracts the SAML IDP response received in req, resolves artifacts when necessary, validates it, and returns the verified assertion.
service_provider.go:597
↓ 29 callersMethodServeHTTP
ServeHTTP implements http.Handler and serves the SAML-specific HTTP endpoints on the URIs specified by m.ServiceProvider.MetadataURL and m.ServiceProv
samlsp/middleware.go:53
↓ 28 callersMethodEncode
Encode returns a serialized version of the Session. Note: When implementing this function, it is reasonable to expect that Session is of the exact ty
samlsp/session.go:51
↓ 26 callersMethodNew
New creates a Session from the SAML assertion.
samlsp/session.go:45
↓ 23 callersFunctionNewMiddlewareTest
(t *testing.T)
samlsp/middleware_test.go:52
↓ 21 callersFunctionNewIdentifyProviderTest
(t *testing.T)
identity_provider_test.go:77
↓ 20 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:281
↓ 19 callersMethodBytes
Bytes returns a byte array representation of the LogoutRequest
schema.go:144
↓ 17 callersMethodDecode
Decode parses the serialized session that may have been returned by Encode and returns a Session.
samlsp/session.go:55
↓ 17 callersMethodValidate
Validate checks that the authentication request is valid and assigns the AuthnRequest and Metadata properties. Returns a non-nil error if the request
identity_provider.go:390
↓ 12 callersMethodMetadata
Metadata returns the service provider metadata
service_provider.go:144
↓ 12 callersMethodPrintf
Printf prints to the logger using the format.
logger/logger.go:11
↓ 11 callersMethodRequireAccount
RequireAccount is HTTP middleware that requires that each request be associated with a valid session. If the request is not associated with a valid se
samlsp/middleware.go:103
↓ 9 callersMethodClose
()
flate.go:29
↓ 9 callersFunctionParseRedirectRequest
ParseRedirectRequest returns the decoded SAML AuthnRequest from an HTTP-Redirect URL
testsaml/parse.go:13
↓ 9 callersMethodmakeTrackedRequest
(id string)
samlsp/middleware_test.go:112
↓ 8 callersMethodMakeAssertion
MakeAssertion constructs an assertion from session and the request and assigns it to req.Assertion.
identity_provider.go:80
↓ 7 callersFunctionDecrypt
Decrypt decrypts the encrypted data using the provided key. If the data are encrypted using AES or 3DEC, then the key should be a []byte. If the data
xmlenc/decrypt.go:57
↓ 7 callersMethodMakeRedirectAuthenticationRequest
MakeRedirectAuthenticationRequest creates a SAML authentication request using the HTTP-Redirect binding. It returns a URL that we will redirect the us
service_provider.go:239
↓ 7 callersFunctionNewServerTest
(t *testing.T)
samlidp/samlidp_test.go:80
↓ 6 callersFunctionFetchMetadata
FetchMetadata returns metadata from an IDP metadata URL.
samlsp/fetch_metadata.go:53
↓ 6 callersMethodPost
Post returns an HTML form suitable for using the HTTP-POST binding with the request
service_provider.go:511
↓ 6 callersMethodPut
Put marshals `value` and stores it in `key`.
samlidp/store.go:14
↓ 6 callersMethodRedirect
Redirect returns a URL suitable for using the redirect binding with the request
service_provider.go:248
↓ 6 callersFunctionfirstSet
(a, b string)
service_provider.go:1579
↓ 6 callersFunctionmustParsePrivateKey
(pemStr []byte)
samlsp/samlsp_test.go:32
↓ 6 callersFunctionrandomBytes
(n int)
util.go:24
↓ 5 callersMethodDelete
Delete removes `key`
samlidp/store.go:17
↓ 5 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:82
↓ 5 callersMethodGetSSOBindingLocation
GetSSOBindingLocation returns URL for the IDP's Single Sign On Service binding of the specified type (HTTPRedirectBinding or HTTPPostBinding)
service_provider.go:294
↓ 5 callersMethodList
List returns all the keys that start with `prefix`. The prefix is stripped from each returned value. So if keys are ["aa", "ab", "cd"] then List("a")
samlidp/store.go:22
↓ 5 callersMethodMakeAssertionEl
MakeAssertionEl sets `AssertionEl` to a signed, possibly encrypted, version of `Assertion`.
identity_provider.go:832
↓ 5 callersMethodMakeAuthenticationRequest
MakeAuthenticationRequest produces a new AuthnRequest object to send to the idpURL that uses the specified binding (HTTPRedirectBinding or HTTPPostBin
service_provider.go:400
↓ 5 callersMethodServeSSO
ServeSSO handles SAML auth requests. When it gets a request for a user that does not have a valid session, then it prompts the user via XXX. If the
identity_provider.go:222
↓ 5 callersFunctionmustParseCertificate
(pemStr []byte)
samlsp/samlsp_test.go:44
↓ 5 callersMethodresponseDom
()
service_provider_test.go:954
↓ 5 callersFunctionunmarshalElement
unmarshalElement serializes el into v by serializing el and then parsing it with xml.Unmarshal.
service_provider.go:1668
↓ 5 callersMethodvalidateSignature
validateSignature returns nil iff the Signature embedded in the element is valid
service_provider.go:1084
↓ 4 callersFunctionDefaultSessionProvider
DefaultSessionProvider returns the default SessionProvider for the provided options, a CookieSessionProvider configured to store sessions in a cookie.
samlsp/new.go:50
↓ 4 callersMethodElement
Element returns an XML element representation of n.
service_provider.go:33
↓ 4 callersMethodEncrypt
(key interface{}, plaintext []byte, nonce []byte)
xmlenc/xmlenc.go:21
↓ 4 callersMethodGetSLOBindingLocation
GetSLOBindingLocation returns URL for the IDP's Single Log Out Service binding of the specified type (HTTPRedirectBinding or HTTPPostBinding)
service_provider.go:320
↓ 4 callersMethodMakeArtifactResolveRequest
MakeArtifactResolveRequest produces a new ArtifactResolve object to send to the idp's Artifact resolver
service_provider.go:377
↓ 4 callersMethodMakeResponse
MakeResponse creates and assigns a new SAML response in ResponseEl. `Assertion` must be non-nil. If MakeAssertionEl() has not been called, this functi
identity_provider.go:1022
↓ 4 callersFunctionNew
New creates a new Middleware with the default providers for the given options. You can customize the behavior of the middleware in more detail by rep
samlsp/new.go:140
↓ 4 callersFunctionNewIdpAuthnRequest
NewIdpAuthnRequest returns a new IdpAuthnRequest for the given HTTP request to the authorization service.
identity_provider.go:352
↓ 4 callersFunctionRequireAttribute
RequireAttribute returns a middleware function that requires that the SAML attribute `name` be set to `value`. This can be used to require that a remo
samlsp/middleware.go:221
↓ 4 callersMethodServeIDPInitiated
ServeIDPInitiated handes an IDP-initiated authorization request. Requests of this type require us to know a registered service provider and (optionall
identity_provider.go:263
↓ 4 callersMethodreplaceDestination
(newDestination string)
service_provider_test.go:926
↓ 3 callersMethodAlgorithm
()
xmlenc/xmlenc.go:30
↓ 3 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.go:30
↓ 3 callersMethodGetSession
GetSession returns the current Session associated with the request, or ErrNoSession if there is no valid session.
samlsp/session.go:38
↓ 3 callersFunctionGetSigningContext
GetSigningContext returns a dsig.SigningContext initialized based on the Service Provider's configuration
service_provider.go:435
↓ 3 callersMethodHandler
Handler returns an http.Handler that serves the metadata and SSO URLs
identity_provider.go:191
↓ 3 callersMethodMetadata
Metadata returns the metadata structure for this identity provider.
identity_provider.go:113
↓ 3 callersFunctionOAEP
OAEP returns a version of RSA that implements RSA in OAEP-MGF1P mode. By default the block cipher used is AES-256 CBC and the digest method is SHA-256
xmlenc/pubkey.go:128
↓ 3 callersMethodParseXMLArtifactResponse
ParseXMLArtifactResponse validates the SAML Artifact resolver response and returns the verified assertion. This function handles verifying the digita
service_provider.go:681
↓ 3 callersMethodPrintln
Println prints new line.
logger/logger.go:15
↓ 3 callersMethodRead
(p []byte)
flate.go:20
↓ 3 callersFunctionRegisterDecrypter
RegisterDecrypter registers the specified decrypter to that it can be used with Decrypt().
xmlenc/xmlenc.go:47
↓ 3 callersFunctionSessionFromContext
SessionFromContext returns the session associated with ctx, or nil if no session are associated
samlsp/session.go:64
↓ 3 callersMethodWriteResponse
WriteResponse writes the `Response` to the http.ResponseWriter. If `Response` is not already set, it calls MakeResponse to produce it.
identity_provider.go:941
↓ 3 callersFunctionaddSignatureToDocument
(doc *etree.Document)
service_provider_test.go:960
↓ 3 callersFunctionelementToBytes
(el *etree.Element)
service_provider.go:1649
↓ 3 callersFunctionfindChildren
findChildren returns all the elements matching childNS/childTag that are direct children of parentEl.
service_provider.go:1587
↓ 3 callersFunctionfindOneChild
findOneChild finds the specified child element. Returns an error if the element doesn't exist.
service_provider.go:1618
↓ 3 callersFunctiongetCiphertext
(encryptedKey *etree.Element)
xmlenc/decrypt.go:70
↓ 3 callersFunctiongetSPMetadata
(r io.Reader)
samlidp/util.go:23
↓ 2 callersFunctionAttributeFromContext
AttributeFromContext is a convenience method that returns the named attribute from the session, if available.
samlsp/session.go:79
↓ 2 callersMethodDecrypt
(key interface{}, ciphertextEl *etree.Element)
xmlenc/xmlenc.go:31
↓ 2 callersFunctionDefaultSessionCodec
DefaultSessionCodec returns the default SessionCodec for the provided options, a JWTSessionCodec configured to issue signed tokens.
samlsp/new.go:38
↓ 2 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:181
↓ 2 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:336
↓ 2 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1082
↓ 2 callersMethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1267
↓ 2 callersMethodGetArtifactBindingLocation
GetArtifactBindingLocation returns URL for the IDP's Artifact binding of the specified type
service_provider.go:307
↓ 2 callersMethodGetAttributes
()
samlsp/session.go:18
↓ 2 callersMethodGetServiceProvider
GetServiceProvider returns the Service Provider metadata for the service provider ID, which is typically the service provider's metadata URL. If an ap
identity_provider.go:71
↓ 2 callersMethodMakeLogoutRequest
MakeLogoutRequest produces a new LogoutRequest object for idpURL.
service_provider.go:1187
↓ 2 callersMethodMakeLogoutResponse
MakeLogoutResponse produces a new LogoutResponse object for idpURL and logoutRequestID.
service_provider.go:1297
↓ 2 callersMethodMakePostAuthenticationRequest
MakePostAuthenticationRequest creates a SAML authentication request using the HTTP-POST binding. It returns HTML text representing an HTML form that c
service_provider.go:502
↓ 2 callersMethodMakeRedirectLogoutRequest
MakeRedirectLogoutRequest creates a SAML authentication request using the HTTP-Redirect binding. It returns a URL that we will redirect the user to in
service_provider.go:1216
↓ 2 callersMethodMarshalText
MarshalText implements encoding.TextMarshaler
time.go:12
↓ 2 callersFunctionNew
New returns a new Server
samlidp/samlidp.go:48
↓ 2 callersMethodParseXMLResponse
ParseXMLResponse parses and validates the SAML IDP response and returns the verified assertion. This function handles decrypting the message, verifyi
service_provider.go:791
↓ 2 callersMethodServeMetadata
ServeMetadata handles requests for the SAML metadata endpoint.
samlsp/middleware.go:68
↓ 2 callersMethodSoapRequest
SoapRequest returns a SOAP Envelope contining the ArtifactResolve request
schema.go:366
↓ 2 callersFunctionappendPadding
(buf []byte, blockSize int)
xmlenc/cbc.go:168
↓ 2 callersMethoddecryptElement
(encryptedEl *etree.Element)
service_provider.go:959
↓ 2 callersMethodnameIDFormat
()
service_provider.go:1443
↓ 2 callersFunctionnewSaferFlateReader
10MB
flate.go:11
↓ 2 callersMethodparseAssertion
(assertionEl *etree.Element, possibleRequestIDs []string, now time.Time, signatureRequirement signatureRequire
service_provider.go:991
↓ 2 callersMethodparseResponse
validateXMLResponse validates the SAML IDP response and returns the verified assertion. This function handles decrypting the message, verifying the d
service_provider.go:837
↓ 2 callersMethodvalidateAssertion
validateAssertion checks that the conditions specified in assertion match the requirements to accept. If validation fails, it returns an error describ
service_provider.go:1016
↓ 2 callersMethodvalidateLogoutResponse
validateLogoutResponse validates the LogoutResponse fields. Returns a nil error if the LogoutResponse is valid.
service_provider.go:1560
next →1–100 of 428, ranked by callers