MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions428 in github.com/crewjam/saml

MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1140
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1162
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1178
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1192
MethodElement
Element returns an etree.Element representing the object in XML form.
schema.go:1238
MethodEncode
Encode returns an encoded string representing the TrackedRequest.
samlsp/request_tracker.go:42
MethodEncode
Encode returns a serialized version of the Session. The provided session must be a JWTSessionClaims, otherwise this function will panic.
samlsp/session_jwt.go:77
MethodEncode
Encode returns an encoded string representing the TrackedRequest.
samlsp/request_tracker_jwt.go:34
MethodEncrypt
Encrypt implements encrypter. certificate must be a []byte containing the ASN.1 bytes of certificate containing an RSA public key.
xmlenc/pubkey.go:32
MethodEncrypt
Encrypt encrypts plaintext with key, which should be a []byte of length KeySize(). It returns an xenc:EncryptedData element.
xmlenc/cbc.go:34
MethodEncrypt
Encrypt encrypts plaintext with key and nonce
xmlenc/gcm.go:33
MethodError
()
service_provider.go:581
MethodError
()
xmlenc/decrypt.go:22
MethodError
()
xmlenc/decrypt.go:30
MethodError
()
xmlenc/decrypt.go:42
MethodFatalln
Fatalln is equivalent to Println() followed by a call to os.Exit(1).
logger/logger.go:21
MethodGet
Get returns the assertion attribute whose Name or FriendlyName matches name, or nil if no matching attribute is found.
service_provider.go:551
MethodGet
Get returns the first attribute named `key` or an empty string if no such attributes is present.
samlsp/session_jwt.go:134
MethodGet
Get fetches the data stored in `key` and unmarshals it into `value`.
samlidp/memory_store.go:17
MethodGetAttributes
GetAttributes implements SessionWithAttributes. It returns the SAMl attributes.
samlsp/session_jwt.go:125
MethodGetServiceProvider
(r *http.Request, serviceProviderID string)
identity_provider_test.go:138
MethodGetServiceProvider
GetServiceProvider returns the Service Provider metadata for the service provider ID, which is typically the service provider's metadata URL. If an ap
samlidp/service.go:28
MethodGetSession
GetSession returns the remote user session associated with the http.Request. If (and only if) the request is not associated with a session then GetSe
identity_provider.go:61
MethodGetSession
(w http.ResponseWriter, r *http.Request, req *IdpAuthnRequest)
identity_provider_test.go:130
MethodGetSession
GetSession returns the current Session associated with the request, or ErrNoSession if there is no valid session.
samlsp/session_cookie.go:86
MethodGetTrackedRequest
GetTrackedRequest returns a pending tracked request.
samlsp/request_tracker_cookie.go:97
MethodGetTrackedRequests
GetTrackedRequests returns all the pending tracked requests
samlsp/request_tracker_cookie.go:75
MethodHandleDeleteService
HandleDeleteService handles the `DELETE /services/:id` request.
samlidp/service.go:95
MethodHandleDeleteSession
HandleDeleteSession handles the `DELETE /sessions/:id` request. It invalidates the specified session.
samlidp/session.go:178
MethodHandleDeleteShortcut
HandleDeleteShortcut handles the `DELETE /shortcuts/:id` request.
samlidp/shortcut.go:77
MethodHandleDeleteUser
HandleDeleteUser handles the `DELETE /users/:id` request.
samlidp/user.go:102
MethodHandleGetService
HandleGetService handles the `GET /services/:id` request and responds with the service metadata in XML format.
samlidp/service.go:55
MethodHandleGetSession
HandleGetSession handles the `GET /sessions/:id` request and responds with the session object in JSON format.
samlidp/session.go:166
MethodHandleGetShortcut
HandleGetShortcut handles the `GET /shortcuts/:id` request and responds with the shortcut object in JSON format.
samlidp/shortcut.go:48
MethodHandleGetUser
HandleGetUser handles the `GET /users/:id` request and responds with the user object in JSON format. The HashedPassword field is excluded.
samlidp/user.go:43
MethodHandleIDPInitiated
HandleIDPInitiated handles a request for an IDP initiated login flow. It looks up the specified shortcut, generates the appropriate SAML assertion and
samlidp/shortcut.go:89
MethodHandleListServices
HandleListServices handles the `GET /services/` request and responds with a JSON formatted list of service names.
samlidp/service.go:40
MethodHandleListSessions
HandleListSessions handles the `GET /sessions/` request and responds with a JSON formatted list of session names.
samlidp/session.go:152
MethodHandleListShortcuts
HandleListShortcuts handles the `GET /shortcuts/` request and responds with a JSON formatted list of shortcut names.
samlidp/shortcut.go:34
MethodHandleListUsers
HandleListUsers handles the `GET /users/` request and responds with a JSON formatted list of user names.
samlidp/user.go:28
MethodHandleLogin
HandleLogin handles the `POST /login` and `GET /login` forms. If credentials are present in the request body, then they are validated. For valid crede
samlidp/session.go:138
MethodHandlePutService
HandlePutService handles the `PUT /shortcuts/:id` request. It accepts the XML-formatted service metadata in the request body and stores it.
samlidp/service.go:68
MethodHandlePutShortcut
HandlePutShortcut handles the `PUT /shortcuts/:id` request. It accepts a JSON formatted shortcut object in the request body and stores it.
samlidp/shortcut.go:60
MethodHandlePutUser
HandlePutUser handles the `PUT /users/:id` request. It accepts a JSON formatted user object in the request body and stores it. If the PlaintextPasswor
samlidp/user.go:59
MethodHash
()
xmlenc/digest.go:21
MethodList
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/memory_store.go:55
FunctionListLinks
ListLinks returns a list of the current user's links
example/service.go:60
MethodMakeAssertion
MakeAssertion implements AssertionMaker. It produces a SAML assertion from the given request and assigns it to req.Assertion.
identity_provider.go:554
MethodMarshalText
MarshalText implements the encoding.TextMarshaler interface.
duration.go:16
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:111
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:240
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:377
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:451
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:545
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:919
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:980
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:1099
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:1295
MethodMarshalXML
MarshalXML implements xml.Marshaler
metadata.go:68
MethodNew
New creates a Session from the SAML assertion. The returned Session is a JWTSessionClaims.
samlsp/session_jwt.go:34
MethodPanic
Panic is equivalent to Print() followed by a call to panic().
logger/logger.go:23
MethodPanicf
Panicf is equivalent to Printf() followed by a call to panic().
logger/logger.go:25
MethodPanicln
Panicln is equivalent to Println() followed by a call to panic().
logger/logger.go:27
MethodPost
Post returns an HTML form suitable for using the HTTP-POST binding with the request
service_provider.go:1261
MethodPost
Post returns an HTML form suitable for using the HTTP-POST binding with the LogoutResponse.
service_provider.go:1371
MethodPrint
Print prints to the logger.
logger/logger.go:13
MethodPut
Put marshals `value` and stores it in `key`.
samlidp/memory_store.go:29
MethodRead
(p []byte)
service_provider_test.go:47
MethodRead
(p []byte)
samlsp/middleware_test.go:44
MethodRedirect
Redirect returns a URL suitable for using the redirect binding with the request
service_provider.go:1225
MethodRedirect
Redirect returns a URL suitable for using the redirect binding with the LogoutResponse.
service_provider.go:1335
MethodRoundTrip
(req *http.Request)
samlsp/samlsp_test.go:20
FunctionServeLink
ServeLink handles requests to redirect to a link
example/service.go:49
MethodServeMetadata
ServeMetadata is an http.HandlerFunc that serves the IDP metadata
identity_provider.go:199
MethodStopTrackingRequest
StopTrackingRequest stops tracking the SAML request given by index, which is a string previously returned from TrackRequest
samlsp/request_tracker_cookie.go:62
FunctionTestArtifactResolveElement
(t *testing.T)
schema_test.go:111
FunctionTestArtifactResolveSoapRequest
(t *testing.T)
schema_test.go:138
FunctionTestArtifactResponseElement
(t *testing.T)
schema_test.go:155
FunctionTestAttributeXMLRoundTrip
(t *testing.T)
schema_test.go:13
FunctionTestAuthnStatementMarshalWithoutSessionNotOnOrAfter
(t *testing.T)
schema_test.go:77
FunctionTestAuthnStatementXMLRoundTrip
(t *testing.T)
schema_test.go:50
FunctionTestCanDecrypt
(t *testing.T)
xmlenc/decrypt_test.go:15
FunctionTestCanDecryptWithoutCertificate
(t *testing.T)
xmlenc/decrypt_test.go:58
FunctionTestCanEncryptOAEP
(t *testing.T)
xmlenc/encrypt_test.go:14
FunctionTestCanParseMetadata
(t *testing.T)
metadata_test.go:13
FunctionTestCanParseTestshibMetadata
(t *testing.T)
samlsp/samlsp_test.go:56
FunctionTestCanProduceMetadataEntityID
(t *testing.T)
service_provider_test.go:165
FunctionTestCanProduceMetadataNoCerts
(t *testing.T)
service_provider_test.go:148
FunctionTestCanProduceSPMetadata
(t *testing.T)
metadata_test.go:90
FunctionTestCookieSameSite
(t *testing.T)
samlsp/session_cookie_test.go:14
FunctionTestDataAES128
(t *testing.T)
xmlenc/xmlenc_test.go:13
FunctionTestDuration
(t *testing.T)
duration_test.go:27
FunctionTestDurationUnmarshal
(t *testing.T)
duration_test.go:72
FunctionTestFetchMetadata
(t *testing.T)
samlsp/fetch_metadata_test.go:15
FunctionTestFetchMetadataRejectsInvalid
(t *testing.T)
samlsp/fetch_metadata_go117_test.go:19
FunctionTestFetchMetadataRejectsInvalid
(t *testing.T)
samlsp/fetch_metadata_go116_test.go:19
FunctionTestGetArtifactBindingLocation
(t *testing.T)
service_provider_test.go:1593
FunctionTestGetSPMetadata
(t *testing.T)
samlidp/util_go117_test.go:14
FunctionTestGetSPMetadata
(t *testing.T)
samlidp/util_go116_test.go:14
FunctionTestHTTPCanHandleMetadataRequest
(t *testing.T)
samlidp/samlidp_test.go:120
← previousnext →201–300 of 428, ranked by callers