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
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1140
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1162
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1178
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1192
Method
Element
Element returns an etree.Element representing the object in XML form.
schema.go:1238
Method
Encode
Encode returns an encoded string representing the TrackedRequest.
samlsp/request_tracker.go:42
Method
Encode
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
Method
Encode
Encode returns an encoded string representing the TrackedRequest.
samlsp/request_tracker_jwt.go:34
Method
Encrypt
Encrypt implements encrypter. certificate must be a []byte containing the ASN.1 bytes of certificate containing an RSA public key.
xmlenc/pubkey.go:32
Method
Encrypt
Encrypt encrypts plaintext with key, which should be a []byte of length KeySize(). It returns an xenc:EncryptedData element.
xmlenc/cbc.go:34
Method
Encrypt
Encrypt encrypts plaintext with key and nonce
xmlenc/gcm.go:33
Method
Error
()
service_provider.go:581
Method
Error
()
xmlenc/decrypt.go:22
Method
Error
()
xmlenc/decrypt.go:30
Method
Error
()
xmlenc/decrypt.go:42
Method
Fatalln
Fatalln is equivalent to Println() followed by a call to os.Exit(1).
logger/logger.go:21
Method
Get
Get returns the assertion attribute whose Name or FriendlyName matches name, or nil if no matching attribute is found.
service_provider.go:551
Method
Get
Get returns the first attribute named `key` or an empty string if no such attributes is present.
samlsp/session_jwt.go:134
Method
Get
Get fetches the data stored in `key` and unmarshals it into `value`.
samlidp/memory_store.go:17
Method
GetAttributes
GetAttributes implements SessionWithAttributes. It returns the SAMl attributes.
samlsp/session_jwt.go:125
Method
GetServiceProvider
(r *http.Request, serviceProviderID string)
identity_provider_test.go:138
Method
GetServiceProvider
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
Method
GetSession
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
Method
GetSession
(w http.ResponseWriter, r *http.Request, req *IdpAuthnRequest)
identity_provider_test.go:130
Method
GetSession
GetSession returns the current Session associated with the request, or ErrNoSession if there is no valid session.
samlsp/session_cookie.go:86
Method
GetTrackedRequest
GetTrackedRequest returns a pending tracked request.
samlsp/request_tracker_cookie.go:97
Method
GetTrackedRequests
GetTrackedRequests returns all the pending tracked requests
samlsp/request_tracker_cookie.go:75
Method
HandleDeleteService
HandleDeleteService handles the `DELETE /services/:id` request.
samlidp/service.go:95
Method
HandleDeleteSession
HandleDeleteSession handles the `DELETE /sessions/:id` request. It invalidates the specified session.
samlidp/session.go:178
Method
HandleDeleteShortcut
HandleDeleteShortcut handles the `DELETE /shortcuts/:id` request.
samlidp/shortcut.go:77
Method
HandleDeleteUser
HandleDeleteUser handles the `DELETE /users/:id` request.
samlidp/user.go:102
Method
HandleGetService
HandleGetService handles the `GET /services/:id` request and responds with the service metadata in XML format.
samlidp/service.go:55
Method
HandleGetSession
HandleGetSession handles the `GET /sessions/:id` request and responds with the session object in JSON format.
samlidp/session.go:166
Method
HandleGetShortcut
HandleGetShortcut handles the `GET /shortcuts/:id` request and responds with the shortcut object in JSON format.
samlidp/shortcut.go:48
Method
HandleGetUser
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
Method
HandleIDPInitiated
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
Method
HandleListServices
HandleListServices handles the `GET /services/` request and responds with a JSON formatted list of service names.
samlidp/service.go:40
Method
HandleListSessions
HandleListSessions handles the `GET /sessions/` request and responds with a JSON formatted list of session names.
samlidp/session.go:152
Method
HandleListShortcuts
HandleListShortcuts handles the `GET /shortcuts/` request and responds with a JSON formatted list of shortcut names.
samlidp/shortcut.go:34
Method
HandleListUsers
HandleListUsers handles the `GET /users/` request and responds with a JSON formatted list of user names.
samlidp/user.go:28
Method
HandleLogin
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
Method
HandlePutService
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
Method
HandlePutShortcut
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
Method
HandlePutUser
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
Method
Hash
()
xmlenc/digest.go:21
Method
List
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
Function
ListLinks
ListLinks returns a list of the current user's links
example/service.go:60
Method
MakeAssertion
MakeAssertion implements AssertionMaker. It produces a SAML assertion from the given request and assigns it to req.Assertion.
identity_provider.go:554
Method
MarshalText
MarshalText implements the encoding.TextMarshaler interface.
duration.go:16
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:111
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:240
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:377
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:451
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:545
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:919
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:980
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:1099
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:1295
Method
MarshalXML
MarshalXML implements xml.Marshaler
metadata.go:68
Method
New
New creates a Session from the SAML assertion. The returned Session is a JWTSessionClaims.
samlsp/session_jwt.go:34
Method
Panic
Panic is equivalent to Print() followed by a call to panic().
logger/logger.go:23
Method
Panicf
Panicf is equivalent to Printf() followed by a call to panic().
logger/logger.go:25
Method
Panicln
Panicln is equivalent to Println() followed by a call to panic().
logger/logger.go:27
Method
Post
Post returns an HTML form suitable for using the HTTP-POST binding with the request
service_provider.go:1261
Method
Post
Post returns an HTML form suitable for using the HTTP-POST binding with the LogoutResponse.
service_provider.go:1371
Method
Print
Print prints to the logger.
logger/logger.go:13
Method
Put
Put marshals `value` and stores it in `key`.
samlidp/memory_store.go:29
Method
Read
(p []byte)
service_provider_test.go:47
Method
Read
(p []byte)
samlsp/middleware_test.go:44
Method
Redirect
Redirect returns a URL suitable for using the redirect binding with the request
service_provider.go:1225
Method
Redirect
Redirect returns a URL suitable for using the redirect binding with the LogoutResponse.
service_provider.go:1335
Method
RoundTrip
(req *http.Request)
samlsp/samlsp_test.go:20
Function
ServeLink
ServeLink handles requests to redirect to a link
example/service.go:49
Method
ServeMetadata
ServeMetadata is an http.HandlerFunc that serves the IDP metadata
identity_provider.go:199
Method
StopTrackingRequest
StopTrackingRequest stops tracking the SAML request given by index, which is a string previously returned from TrackRequest
samlsp/request_tracker_cookie.go:62
Function
TestArtifactResolveElement
(t *testing.T)
schema_test.go:111
Function
TestArtifactResolveSoapRequest
(t *testing.T)
schema_test.go:138
Function
TestArtifactResponseElement
(t *testing.T)
schema_test.go:155
Function
TestAttributeXMLRoundTrip
(t *testing.T)
schema_test.go:13
Function
TestAuthnStatementMarshalWithoutSessionNotOnOrAfter
(t *testing.T)
schema_test.go:77
Function
TestAuthnStatementXMLRoundTrip
(t *testing.T)
schema_test.go:50
Function
TestCanDecrypt
(t *testing.T)
xmlenc/decrypt_test.go:15
Function
TestCanDecryptWithoutCertificate
(t *testing.T)
xmlenc/decrypt_test.go:58
Function
TestCanEncryptOAEP
(t *testing.T)
xmlenc/encrypt_test.go:14
Function
TestCanParseMetadata
(t *testing.T)
metadata_test.go:13
Function
TestCanParseTestshibMetadata
(t *testing.T)
samlsp/samlsp_test.go:56
Function
TestCanProduceMetadataEntityID
(t *testing.T)
service_provider_test.go:165
Function
TestCanProduceMetadataNoCerts
(t *testing.T)
service_provider_test.go:148
Function
TestCanProduceSPMetadata
(t *testing.T)
metadata_test.go:90
Function
TestCookieSameSite
(t *testing.T)
samlsp/session_cookie_test.go:14
Function
TestDataAES128
(t *testing.T)
xmlenc/xmlenc_test.go:13
Function
TestDuration
(t *testing.T)
duration_test.go:27
Function
TestDurationUnmarshal
(t *testing.T)
duration_test.go:72
Function
TestFetchMetadata
(t *testing.T)
samlsp/fetch_metadata_test.go:15
Function
TestFetchMetadataRejectsInvalid
(t *testing.T)
samlsp/fetch_metadata_go117_test.go:19
Function
TestFetchMetadataRejectsInvalid
(t *testing.T)
samlsp/fetch_metadata_go116_test.go:19
Function
TestGetArtifactBindingLocation
(t *testing.T)
service_provider_test.go:1593
Function
TestGetSPMetadata
(t *testing.T)
samlidp/util_go117_test.go:14
Function
TestGetSPMetadata
(t *testing.T)
samlidp/util_go116_test.go:14
Function
TestHTTPCanHandleMetadataRequest
(t *testing.T)
samlidp/samlidp_test.go:120
← previous
next →
201–300 of 428, ranked by callers