Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewjam/saml
/ functions
Functions
2,436 in github.com/crewjam/saml
⨍
Functions
2,436
◇
Types & classes
281
Method
HandleLogout
HandleLogout handles `GET /logout` and `POST /logout`: IdP-initiated single logout of the browser's session. The session cookie is expired, the sessio
samlidp/logout_propagation.go:147
Method
HandlePutService
HandlePutService handles the `PUT /shortcuts/:id` request. It accepts the XML-formatted service metadata in the request body and stores it. If SPMeta
samlidp/service.go:182
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:68
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:67
Method
Hash
()
xmlenc/digest.go:22
Method
Header
()
idp_coverage_test.go:50
Method
InvalidateSession
(w http.ResponseWriter, _ *http.Request, req *IdpLogoutRequest)
identity_provider_logout_test.go:43
Method
InvalidateSession
(http.ResponseWriter, *http.Request, *IdpLogoutRequest)
identity_provider_logout_soap_request_test.go:211
Method
InvalidateSession
(_ http.ResponseWriter, _ *http.Request, req *IdpLogoutRequest)
identity_provider_logout_propagation_test.go:37
Method
InvalidateSession
InvalidateSession implements saml.SessionInvalidator. It is called by the IdP's ServeSLO for a valid LogoutRequest from a service provider and deletes
samlidp/logout.go:46
Method
Less
(i, j int)
samlidp/session_expiry.go:37
Method
List
(prefix string)
samlidp/samlidp_coverage_test.go:61
Method
MakeAssertion
MakeAssertion implements AssertionMaker. It produces a SAML assertion from the given request and assigns it to req.Assertion.
identity_provider.go:1381
Method
MakeAssertion
(req *IdpAuthnRequest, session *Session)
idp_coverage_test.go:75
Method
MarshalJSON
MarshalJSON implements json.Marshaler. A Service with RawMetadata is stored as its Name and RawMetadata only: the parsed Metadata can hold XML signatu
samlidp/service.go:33
Method
MarshalXML
MarshalXML implements xml.Marshaler.
schema.go:71
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:238
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:391
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:610
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:711
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:793
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:895
Method
MarshalXML
MarshalXML implements xml.Marshaler, writing Children as XML. encoding/xml cannot marshal an *etree.Element itself, so without this method the childr
schema.go:1096
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:1220
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:1304
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:1423
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:1484
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:1559
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:1632
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:1725
Method
MarshalXML
MarshalXML implements xml.Marshaler
schema.go:1973
Method
MarshalXML
MarshalXML implements xml.Marshaler
metadata.go:61
Method
MarshalXML
MarshalXML implements xml.Marshaler
metadata.go:198
Method
MarshalXML
MarshalXML implements xml.Marshaler
metadata.go:751
Method
MarshalXML
MarshalXML implements xml.Marshaler
metadata.go:828
Method
MarshalXML
MarshalXML implements xml.Marshaler
metadata.go:899
Method
MarshalXML
MarshalXML implements xml.Marshaler
metadata.go:946
Method
MarshalXML
MarshalXML implements xml.Marshaler
metadata.go:995
Method
MarshalXML
MarshalXML implements xml.Marshaler, writing Signature as XML, XSIType as xsi:type, and validUntil and cacheDuration as for the concrete descriptor ty
metadata.go:1053
Method
MarshalXML
MarshalXML implements xml.Marshaler, writing Signature as XML, cacheDuration as an xsd:duration and validUntil as a RelaxedTime. A zero ValidUntil or
metadata.go:1143
Method
MarshalXML
MarshalXML implements xml.Marshaler.
etree_xml.go:30
Method
New
(*saml.Assertion)
samlsp/session_cookie_secure_test.go:53
Method
New
(assertion *saml.Assertion)
samlsp/session_revocation_codec_test.go:28
Method
New
(*saml.Assertion)
samlsp/session_coverage_test.go:34
Method
Panic
Panic is equivalent to Print() followed by a call to panic().
logger/logger.go:24
Method
Panicf
Panicf is equivalent to Printf() followed by a call to panic().
logger/logger.go:26
Method
Panicln
Panicln is equivalent to Println() followed by a call to panic().
logger/logger.go:28
Method
Post
Post returns an HTML form suitable for using the HTTP-POST binding with the request
service_provider.go:3037
Method
Post
Post returns an HTML form suitable for using the HTTP-POST binding with the LogoutResponse.
service_provider.go:3206
Method
QueryAttributes
QueryAttributes asks the IdP's attribute authority for the attributes of the subject identified by nameID, and returns them once the response has been
service_provider_attribute_query.go:184
Method
Read
(p []byte)
sp_coverage_helpers_test.go:241
Method
Read
(p []byte)
service_provider_test.go:54
Method
Read
(p []byte)
internal/xmlroundtrip/validate.go:257
Method
Read
(p []byte)
samlsp/middleware_test.go:52
Method
Read
(p []byte)
samlsp/fetch_metadata_limit_test.go:62
Method
Read
([]byte)
samlsp/samlsp_coverage_test.go:59
Method
Read
(p []byte)
samlidp/sp_metadata_limits_test.go:14
Method
Read
(p []byte)
samlidp/samlidp_test.go:27
Method
Read
([]byte)
samlidp/samlidp_coverage_test.go:99
Method
Read
(p []byte)
samlidp/samlidp_coverage_test.go:104
Method
ReadByte
()
internal/xmlroundtrip/validate.go:248
Method
Redirect
Redirect returns a URL suitable for using the redirect binding with the request. The URL carries no query string signature; use ServiceProvider.MakeRe
service_provider.go:2992
Method
Redirect
Redirect returns a URL suitable for using the redirect binding with the LogoutResponse. The URL carries no query string signature; use ServiceProvider
service_provider.go:3157
Method
RevocableSessions
()
samlsp/session_revocation_codec_test.go:59
Method
RevocableSessions
RevocableSessions implements RevocableSessionCodec: the JWTSessionClaims it decodes are RevocableSessions, and the JWT signature covers what identifie
samlsp/session_revocation.go:98
Method
Revoke
(context.Context, string, time.Time, time.Time)
samlsp/middleware_soap_logout_test.go:416
Method
RevokedAt
(context.Context, string)
samlsp/middleware_soap_logout_test.go:420
Method
RoundTrip
(req *http.Request)
sp_coverage_helpers_test.go:232
Method
RoundTrip
(req *http.Request)
samlsp/samlsp_test.go:20
Method
SaveForm
(*http.Request, string)
samlsp/form_replay_test.go:289
Function
ServeLink
ServeLink handles requests to redirect to a link
example/service.go:121
Method
ServeMetadata
ServeMetadata is an http.HandlerFunc that serves the IDP metadata. If SignMetadata is set, the metadata is signed. If the metadata cannot be signed,
identity_provider.go:697
Method
ServeSLO
ServeSLO handles SAML LogoutRequests sent by service providers (SP-initiated single logout, saml-profiles-2.0-os §4.4) with the HTTP-Redirect, HTTP-PO
identity_provider_logout.go:594
Function
ServeWhoami
ServeWhoami serves the basic whoami endpoint
example/service.go:157
Method
SessionParticipants
(_ *http.Request, match func(*Session) bool)
identity_provider_logout_propagation_test.go:52
Method
SessionParticipants
(*http.Request, func(*Session) bool)
partial_logout_untracked_test.go:23
Method
SessionParticipants
SessionParticipants implements saml.SessionParticipantTracker. It returns the participants recorded for every stored session that match selects.
samlidp/logout_propagation.go:63
Method
Sign
(io.Reader, []byte, crypto.SignerOpts)
idp_coverage_test.go:68
Method
SimpleSign
SimpleSign returns an auto-submitting HTML form that sends the request to its Destination with the HTTP-POST-SimpleSign binding, signed with sp's Key
simplesign_binding.go:431
Method
SimpleSign
SimpleSign returns an auto-submitting HTML form that sends the response to its Destination with the HTTP-POST-SimpleSign binding, signed with sp's Key
simplesign_binding.go:467
Method
Stop
()
samlidp/session_expiry_test.go:58
Method
StopTrackingRequest
(w http.ResponseWriter, r *http.Request, index string)
samlsp/middleware_coverage_test.go:59
Method
StopTrackingRequest
StopTrackingRequest stops tracking the SAML request given by index, which is a string previously returned from TrackRequest
samlsp/request_tracker_cookie.go:129
Method
Swap
(i, j int)
samlidp/session_expiry.go:38
Method
TakeForm
(*http.Request, string)
samlsp/form_replay_test.go:293
Method
TerminateSessions
TerminateSessions implements SessionTerminator. It records the sessions that req names in Revocations, where GetSession finds them: every session of r
samlsp/session_revocation.go:164
Function
TestAcceptableUntil
The cache is told the moment after which the assertion is no longer acceptable: the earliest of the issue deadline and each NotOnOrAfter, with the clo
replay_cache_test.go:128
Function
TestAddSessionParticipantConcurrently
Service providers logging in on the same session at the same time are all recorded as participants.
samlidp/session_participants_race_test.go:16
Function
TestAddSessionParticipantTwice
Recording the same participant again stores it once.
samlidp/session_participants_race_test.go:40
Function
TestAdminEndpointsUnauthenticatedByDefault
(t *testing.T)
samlidp/admin_middleware_test.go:110
Function
TestAdminMiddlewareWrapsAdminEndpoints
(t *testing.T)
samlidp/admin_middleware_test.go:31
Function
TestAffiliationDescriptorDurationsRoundTrip
(t *testing.T)
metadata_test.go:335
Function
TestAffiliationDescriptorOmitsUnsetDurations
(t *testing.T)
metadata_test.go:378
Function
TestArtifactDecodingEndpointIndex
saml-bindings-2.0-os §3.6.4.1: the EndpointIndex of a type 0x0004 artifact identifies the artifact resolution endpoint the requester must use, and §3.
artifact_decoding_test.go:85
Function
TestArtifactDecodingReplay
saml-bindings-2.0-os §3.6.5.2: an artifact is resolved only once. With a ReplayCache, the SP refuses a second resolution of the same artifact before c
artifact_decoding_test.go:201
Function
TestArtifactDecodingStrictness
By default, artifacts that are not type 0x0004 artifacts of this IdP are still sent to the IdP unchanged, as before; with RequireStandardArtifacts the
artifact_decoding_test.go:135
Function
TestArtifactResolutionRequiresHTTPS
The service provider resolves artifacts only at an https ArtifactResolutionService, unless AllowInsecureSOAPEndpoints is set: the ArtifactResponse car
service_provider_soap_https_test.go:104
Function
TestArtifactResolveElement
(t *testing.T)
schema_test.go:162
Function
TestArtifactResolveSoapRequest
(t *testing.T)
schema_test.go:189
Function
TestArtifactResponseElement
(t *testing.T)
schema_test.go:206
← previous
next →
1,201–1,300 of 2,436, ranked by callers