MCPcopy Create free account

hub / github.com/crewjam/saml / functions

Functions2,436 in github.com/crewjam/saml

MethodHandleLogout
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
MethodHandlePutService
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
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:68
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:67
MethodHash
()
xmlenc/digest.go:22
MethodHeader
()
idp_coverage_test.go:50
MethodInvalidateSession
(w http.ResponseWriter, _ *http.Request, req *IdpLogoutRequest)
identity_provider_logout_test.go:43
MethodInvalidateSession
(http.ResponseWriter, *http.Request, *IdpLogoutRequest)
identity_provider_logout_soap_request_test.go:211
MethodInvalidateSession
(_ http.ResponseWriter, _ *http.Request, req *IdpLogoutRequest)
identity_provider_logout_propagation_test.go:37
MethodInvalidateSession
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
MethodLess
(i, j int)
samlidp/session_expiry.go:37
MethodList
(prefix string)
samlidp/samlidp_coverage_test.go:61
MethodMakeAssertion
MakeAssertion implements AssertionMaker. It produces a SAML assertion from the given request and assigns it to req.Assertion.
identity_provider.go:1381
MethodMakeAssertion
(req *IdpAuthnRequest, session *Session)
idp_coverage_test.go:75
MethodMarshalJSON
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
MethodMarshalXML
MarshalXML implements xml.Marshaler.
schema.go:71
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:238
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:391
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:610
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:711
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:793
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:895
MethodMarshalXML
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
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:1220
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:1304
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:1423
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:1484
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:1559
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:1632
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:1725
MethodMarshalXML
MarshalXML implements xml.Marshaler
schema.go:1973
MethodMarshalXML
MarshalXML implements xml.Marshaler
metadata.go:61
MethodMarshalXML
MarshalXML implements xml.Marshaler
metadata.go:198
MethodMarshalXML
MarshalXML implements xml.Marshaler
metadata.go:751
MethodMarshalXML
MarshalXML implements xml.Marshaler
metadata.go:828
MethodMarshalXML
MarshalXML implements xml.Marshaler
metadata.go:899
MethodMarshalXML
MarshalXML implements xml.Marshaler
metadata.go:946
MethodMarshalXML
MarshalXML implements xml.Marshaler
metadata.go:995
MethodMarshalXML
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
MethodMarshalXML
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
MethodMarshalXML
MarshalXML implements xml.Marshaler.
etree_xml.go:30
MethodNew
(*saml.Assertion)
samlsp/session_cookie_secure_test.go:53
MethodNew
(assertion *saml.Assertion)
samlsp/session_revocation_codec_test.go:28
MethodNew
(*saml.Assertion)
samlsp/session_coverage_test.go:34
MethodPanic
Panic is equivalent to Print() followed by a call to panic().
logger/logger.go:24
MethodPanicf
Panicf is equivalent to Printf() followed by a call to panic().
logger/logger.go:26
MethodPanicln
Panicln is equivalent to Println() followed by a call to panic().
logger/logger.go:28
MethodPost
Post returns an HTML form suitable for using the HTTP-POST binding with the request
service_provider.go:3037
MethodPost
Post returns an HTML form suitable for using the HTTP-POST binding with the LogoutResponse.
service_provider.go:3206
MethodQueryAttributes
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
MethodRead
(p []byte)
sp_coverage_helpers_test.go:241
MethodRead
(p []byte)
service_provider_test.go:54
MethodRead
(p []byte)
internal/xmlroundtrip/validate.go:257
MethodRead
(p []byte)
samlsp/middleware_test.go:52
MethodRead
(p []byte)
samlsp/fetch_metadata_limit_test.go:62
MethodRead
([]byte)
samlsp/samlsp_coverage_test.go:59
MethodRead
(p []byte)
samlidp/sp_metadata_limits_test.go:14
MethodRead
(p []byte)
samlidp/samlidp_test.go:27
MethodRead
([]byte)
samlidp/samlidp_coverage_test.go:99
MethodRead
(p []byte)
samlidp/samlidp_coverage_test.go:104
MethodReadByte
()
internal/xmlroundtrip/validate.go:248
MethodRedirect
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
MethodRedirect
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
MethodRevocableSessions
()
samlsp/session_revocation_codec_test.go:59
MethodRevocableSessions
RevocableSessions implements RevocableSessionCodec: the JWTSessionClaims it decodes are RevocableSessions, and the JWT signature covers what identifie
samlsp/session_revocation.go:98
MethodRevoke
(context.Context, string, time.Time, time.Time)
samlsp/middleware_soap_logout_test.go:416
MethodRevokedAt
(context.Context, string)
samlsp/middleware_soap_logout_test.go:420
MethodRoundTrip
(req *http.Request)
sp_coverage_helpers_test.go:232
MethodRoundTrip
(req *http.Request)
samlsp/samlsp_test.go:20
MethodSaveForm
(*http.Request, string)
samlsp/form_replay_test.go:289
FunctionServeLink
ServeLink handles requests to redirect to a link
example/service.go:121
MethodServeMetadata
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
MethodServeSLO
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
FunctionServeWhoami
ServeWhoami serves the basic whoami endpoint
example/service.go:157
MethodSessionParticipants
(_ *http.Request, match func(*Session) bool)
identity_provider_logout_propagation_test.go:52
MethodSessionParticipants
(*http.Request, func(*Session) bool)
partial_logout_untracked_test.go:23
MethodSessionParticipants
SessionParticipants implements saml.SessionParticipantTracker. It returns the participants recorded for every stored session that match selects.
samlidp/logout_propagation.go:63
MethodSign
(io.Reader, []byte, crypto.SignerOpts)
idp_coverage_test.go:68
MethodSimpleSign
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
MethodSimpleSign
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
MethodStop
()
samlidp/session_expiry_test.go:58
MethodStopTrackingRequest
(w http.ResponseWriter, r *http.Request, index string)
samlsp/middleware_coverage_test.go:59
MethodStopTrackingRequest
StopTrackingRequest stops tracking the SAML request given by index, which is a string previously returned from TrackRequest
samlsp/request_tracker_cookie.go:129
MethodSwap
(i, j int)
samlidp/session_expiry.go:38
MethodTakeForm
(*http.Request, string)
samlsp/form_replay_test.go:293
MethodTerminateSessions
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
FunctionTestAcceptableUntil
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
FunctionTestAddSessionParticipantConcurrently
Service providers logging in on the same session at the same time are all recorded as participants.
samlidp/session_participants_race_test.go:16
FunctionTestAddSessionParticipantTwice
Recording the same participant again stores it once.
samlidp/session_participants_race_test.go:40
FunctionTestAdminEndpointsUnauthenticatedByDefault
(t *testing.T)
samlidp/admin_middleware_test.go:110
FunctionTestAdminMiddlewareWrapsAdminEndpoints
(t *testing.T)
samlidp/admin_middleware_test.go:31
FunctionTestAffiliationDescriptorDurationsRoundTrip
(t *testing.T)
metadata_test.go:335
FunctionTestAffiliationDescriptorOmitsUnsetDurations
(t *testing.T)
metadata_test.go:378
FunctionTestArtifactDecodingEndpointIndex
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
FunctionTestArtifactDecodingReplay
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
FunctionTestArtifactDecodingStrictness
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
FunctionTestArtifactResolutionRequiresHTTPS
The service provider resolves artifacts only at an https ArtifactResolutionService, unless AllowInsecureSOAPEndpoints is set: the ArtifactResponse car
service_provider_soap_https_test.go:104
FunctionTestArtifactResolveElement
(t *testing.T)
schema_test.go:162
FunctionTestArtifactResolveSoapRequest
(t *testing.T)
schema_test.go:189
FunctionTestArtifactResponseElement
(t *testing.T)
schema_test.go:206
← previousnext →1,201–1,300 of 2,436, ranked by callers