Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewjam/saml
/ types & classes
Types & classes
281 in github.com/crewjam/saml
⨍
Functions
2,436
◇
Types & classes
281
↓ 18 callers
TypeAlias
RelaxedTime
RelaxedTime is a version of time.Time that supports the time format found in SAML documents.
time.go:7
↓ 11 callers
TypeAlias
ErrAlgorithmNotImplemented
ErrAlgorithmNotImplemented is returned when encryption used is not supported.
xmlenc/decrypt.go:18
↓ 11 callers
TypeAlias
ErrIncorrectKeyType
ErrIncorrectKeyType is returned when the key is not the correct type
xmlenc/decrypt.go:45
↓ 10 callers
TypeAlias
ErrIncorrectKeyLength
ErrIncorrectKeyLength is returned when the fixed length key is not of the required length.
xmlenc/decrypt.go:38
↓ 9 callers
FuncType
idpcovAssertionMakerFunc
idpcovAssertionMakerFunc adapts a function to the AssertionMaker interface.
idp_coverage_test.go:73
↓ 8 callers
TypeAlias
Duration
Duration is a time.Duration that uses the xsd:duration format for text marshalling and unmarshalling.
duration.go:14
↓ 4 callers
TypeAlias
ErrCannotFindRequiredElement
ErrCannotFindRequiredElement is returned by Decrypt when a required element cannot be found.
xmlenc/decrypt.go:26
↓ 4 callers
FuncType
mockTransport
func(req *http.Request) (*http.Response, error)
samlsp/samlsp_test.go:18
↓ 2 callers
Interface
AssertionReplayCache
AssertionReplayCache records the IDs of accepted assertions, so that each is accepted only once. Implementations must be safe for concurrent use, and
service_provider.go:515
↓ 2 callers
TypeAlias
NameIDFormat
NameIDFormat is the format of the id
service_provider.go:41
↓ 2 callers
FuncType
idpErrResponseWriterFunc
func(w http.ResponseWriter, req *IdpAuthnRequest) error
idp_error_response_test.go:256
↓ 2 callers
FuncType
responseWriterFunc
func(w http.ResponseWriter, req *IdpAuthnRequest) error
identity_provider_response_writer_test.go:15
↓ 1 callers
Interface
Encrypter
Encrypter is an interface that encrypts things. Given a plaintext it returns an XML EncryptedData or EncryptedKey element. The required type of `key`
xmlenc/xmlenc.go:25
↓ 1 callers
TypeAlias
ErrKeyAlgorithmNotAllowed
ErrKeyAlgorithmNotAllowed is returned by Decrypt for an xenc:EncryptedKey whose EncryptionMethod names a block cipher such as aes128-cbc or aes256-gcm
xmlenc/decrypt.go:62
↓ 1 callers
Struct
RoleDescriptor
RoleDescriptor represents the SAML element RoleDescriptor. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.4.1
metadata.go:372
↓ 1 callers
Interface
SessionRevocationStore
SessionRevocationStore records revoked sessions for a CookieSessionProvider. Each record has a key, which names either every session of a user or the
samlsp/session_revocation.go:114
↓ 1 callers
TypeAlias
alias
samlidp/service.go:35
↓ 1 callers
TypeAlias
errUnexpected
identity_provider_logout_soap_test.go:134
↓ 1 callers
TypeAlias
etreeElementXML
etreeElementXML lets encoding/xml read and write an element, such as a ds:Signature, held as an *etree.Element. encoding/xml cannot handle *etree.Ele
etree_xml.go:27
↓ 1 callers
TypeAlias
roleDescriptorXML
roleDescriptorXML encodes a RoleDescriptor, which cannot have MarshalXML and UnmarshalXML methods itself: they would be inherited by the descriptors t
metadata.go:1048
↓ 1 callers
FuncType
roundTripperFunc
func(*http.Request) (*http.Response, error)
identity_provider_logout_soap_test.go:447
↓ 1 callers
FuncType
spcovRoundTripper
func(*http.Request) (*http.Response, error)
sp_coverage_helpers_test.go:230
Struct
AdditionalMetadataLocation
AdditionalMetadataLocation represents the SAML element AdditionalMetadataLocation: the location of other metadata for the entity, and the namespace of
metadata.go:192
Struct
AffiliationDescriptor
AffiliationDescriptor represents the SAML AffiliationDescriptor object. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2
metadata.go:1034
TypeAlias
Alias
schema.go:239
TypeAlias
Alias
metadata.go:72
Struct
ArtifactResolve
ArtifactResolve represents the SAML object of the same name.
schema.go:555
Struct
ArtifactResponse
ArtifactResponse represents the SAML object of the same name.
schema.go:748
Struct
Assertion
Assertion represents the SAML element Assertion. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §2.3.3
schema.go:1158
Struct
AssertionAttribute
AssertionAttribute represents an attribute of the user extracted from a SAML Assertion.
service_provider.go:1279
TypeAlias
AssertionAttributes
AssertionAttributes is a list of AssertionAttribute
service_provider.go:1243
Interface
AssertionHandler
AssertionHandler is an interface implemented by types that can handle assertions and add extra functionality
samlsp/saml_assertion_handler.go:7
Interface
AssertionMaker
AssertionMaker is an interface used by IdentityProvider to construct the assertion for a request. The default implementation is DefaultAssertionMaker,
identity_provider.go:109
Struct
Attribute
Attribute represents the SAML element Attribute. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §2.7.3.1
schema.go:1847
Struct
AttributeAuthorityDescriptor
AttributeAuthorityDescriptor represents the SAML AttributeAuthorityDescriptor object. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata
metadata.go:985
Struct
AttributeConsumingService
AttributeConsumingService represents the SAML AttributeConsumingService object. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-o
metadata.go:872
Struct
AttributeQuery
AttributeQuery represents the SAML object of the same name, a request from a service provider to an attribute authority for attributes of a subject (s
schema.go:655
Struct
AttributeQueryResult
AttributeQueryResult holds what an attribute authority returned for an attribute query, after it has been validated. It describes the subject named i
service_provider_attribute_query.go:39
Struct
AttributeStatement
AttributeStatement represents the SAML element AttributeStatement. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §2.7.3
schema.go:1831
Struct
AttributeValue
AttributeValue represents the SAML element AttributeValue. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §2.7.3.1.1
schema.go:1875
TypeAlias
Attributes
Attributes is a map of attributes provided in the SAML assertion
samlsp/session_jwt.go:237
Struct
Audience
Audience represents the SAML element Audience. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §2.5.1.4
schema.go:1655
Struct
AudienceRestriction
AudienceRestriction represents the SAML element AudienceRestriction. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §2.5.1.4
schema.go:1605
Struct
AuthenticatingAuthority
AuthenticatingAuthority represents the SAML element AuthenticatingAuthority. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §
schema.go:1817
Struct
AuthnAuthorityDescriptor
AuthnAuthorityDescriptor represents the SAML AuthnAuthorityDescriptor object. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.
metadata.go:891
Struct
AuthnContext
AuthnContext represents the SAML element AuthnContext. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §2.7.2.2
schema.go:1780
Struct
AuthnContextClassRef
AuthnContextClassRef represents the SAML element AuthnContextClassRef. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §2.7.2.
schema.go:1803
Struct
AuthnRequest
AuthnRequest represents the SAML object of the same name, a request from a service provider to authenticate a user. See http://docs.oasis-open.org/se
schema.go:112
Struct
AuthnStatement
AuthnStatement represents the SAML element AuthnStatement. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §2.7.2
schema.go:1699
Interface
BlockCipher
BlockCipher implements a cipher with a fixed size key like AES or 3DES.
xmlenc/xmlenc.go:107
Struct
CBC
CBC implements Decrypter and Encrypter for block ciphers in CBC mode
xmlenc/cbc.go:16
Struct
Conditions
Conditions represents the SAML element Conditions. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §2.5.1
schema.go:1519
Struct
ContactPerson
ContactPerson represents the SAML element ContactPerson. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.3.2.2
metadata.go:360
Struct
CookieRequestTracker
CookieRequestTracker tracks requests by setting a uniquely named cookie for each request. The cookie must be sent back by the browser when the IDP PO
samlsp/request_tracker_cookie.go:24
Struct
CookieSessionProvider
CookieSessionProvider is an implementation of SessionProvider that stores session tokens in an HTTP cookie.
samlsp/session_cookie.go:34
Interface
Decrypter
Decrypter is an interface that decrypts things. The Decrypt() method returns the plaintext version of the EncryptedData or EncryptedKey element passed
xmlenc/xmlenc.go:34
Struct
DefaultAssertionMaker
DefaultAssertionMaker produces a SAML assertion for the given request and assigns it to req.Assertion.
identity_provider.go:1376
Struct
DefaultResponseWriter
DefaultResponseWriter is the default ResponseWriter. It calls req.WriteResponse, which writes an auto-submitting HTML form (see IdentityProvider.Respo
identity_provider.go:141
Interface
DigestMethod
DigestMethod represents a digest method such as SHA1, etc.
xmlenc/xmlenc.go:40
Struct
DigestMethod
DigestMethod represents the alg:DigestMethod element: an XML Signature digest algorithm the entity supports. See https://docs.oasis-open.org/security
metadata.go:493
Struct
EncryptionMethod
EncryptionMethod represents the XMLSEC object of the same name
metadata.go:439
Struct
Endpoint
Endpoint represents the SAML EndpointType object. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.2.2
metadata.go:575
Struct
EntitiesDescriptor
EntitiesDescriptor represents the SAML object of the same name. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.3.1
metadata.go:48
Struct
EntityDescriptor
EntityDescriptor represents the SAML EntityDescriptor object. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.3.2
metadata.go:135
Struct
ErrBadStatus
ErrBadStatus is returned when the assertion provided is valid but the status code is not "urn:oasis:names:tc:SAML:2.0:status:Success".
service_provider.go:1301
Struct
Error
Error reports the token of a document that does not survive a round trip, or that could not be checked.
internal/xmlroundtrip/validate.go:24
FuncType
ErrorFunction
ErrorFunction is a callback that is invoked to return an error to the web user.
samlsp/error.go:13
Struct
ExtensionElement
ExtensionElement is a generic XML element, used for extension elements that this package does not model. Names are kept with their namespace URIs rath
metadata.go:520
Struct
Extensions
Extensions represents the SAML metadata element md:Extensions, which holds extension elements from namespaces other than the SAML metadata namespace.
metadata.go:461
Interface
FormReplayStore
FormReplayStore saves the form of a POST request that starts the SAML auth flow, so that the middleware can post it again once the user has logged in.
samlsp/form_replay.go:38
Struct
GCM
GCM implements Decrypter and Encrypter for block ciphers in struct mode
xmlenc/gcm.go:15
Struct
IDPEntry
IDPEntry represents the SAML object of the same name. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf § 3.4.1.3.1
schema.go:534
Struct
IDPList
IDPList represents the SAML object of the same name. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf § 3.4.1.3
schema.go:513
Struct
IDPSSODescriptor
IDPSSODescriptor represents the SAML IDPSSODescriptorType object. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.4.3
metadata.go:724
Struct
IdentityProvider
IdentityProvider implements the SAML Identity Provider role (IDP). An identity provider receives SAML assertion requests and responds with SAML Asser
identity_provider.go:162
Struct
IdentityProviderTest
identity_provider_test.go:35
Struct
IdpAuthnRequest
IdpAuthnRequest is used by IdentityProvider to handle a single authentication request.
identity_provider.go:945
Struct
IdpAuthnRequestForm
IdpAuthnRequestForm contans HTML form information to be submitted to the SAML HTTP POST binding ACS.
identity_provider.go:1759
Struct
IdpAuthnRequestSimpleSignForm
IdpAuthnRequestSimpleSignForm contains the HTML form information to be submitted to an ACS endpoint with the HTTP-POST-SimpleSign binding.
simplesign_idp.go:84
Struct
IdpLogoutComplete
IdpLogoutComplete is what IdentityProvider.LogoutCompleteTemplate is executed with at the end of an IdP-initiated logout. Failed names the service pro
identity_provider_logout_propagation.go:460
Struct
IdpLogoutRequest
IdpLogoutRequest is used by IdentityProvider to handle a single logout request (saml-core-2.0-os §3.7) sent by a service provider.
identity_provider_logout.go:52
Struct
IdpLogoutRequestForm
IdpLogoutRequestForm is what IdentityProvider.LogoutRequestFormTemplate is executed with: a signed LogoutRequest, base64 encoded, to be posted as the
identity_provider_logout_propagation.go:452
Struct
IndexedEndpoint
IndexedEndpoint represents the SAML IndexedEndpointType object. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.2.3
metadata.go:669
Interface
Interface
Interface provides the minimal logging interface
logger/logger.go:10
Struct
InvalidResponseError
InvalidResponseError is the error produced by ParseResponse when it fails. The underlying error is in PrivateErr. Response is the response as it was k
service_provider.go:1289
Struct
Issuer
Issuer represents the SAML object of the same name. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf
schema.go:430
Struct
JWTSessionClaims
JWTSessionClaims represents the JWT claims in the encoded session
samlsp/session_jwt.go:193
Struct
JWTSessionCodec
JWTSessionCodec implements SessionCoded to encode and decode Sessions from the corresponding JWT.
samlsp/session_jwt.go:23
Struct
JWTTrackedRequestClaims
JWTTrackedRequestClaims represents the JWT claims for a tracked request.
samlsp/request_tracker_jwt.go:30
Struct
JWTTrackedRequestCodec
JWTTrackedRequestCodec encodes TrackedRequests as signed JWTs
samlsp/request_tracker_jwt.go:15
Struct
KeyDescriptor
KeyDescriptor represents the XMLSEC object of the same name
metadata.go:430
Struct
KeyInfo
KeyInfo represents the XMLSEC object of the same name
metadata.go:555
Struct
Link
Link represents a short link
example/service.go:54
Struct
LocalizedName
LocalizedName represents the SAML type localizedNameType. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.2.4
metadata.go:344
Struct
LocalizedURI
LocalizedURI represents the SAML type localizedURIType. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.2.5
metadata.go:352
Struct
LogoutRequest
LogoutRequest represents the SAML object of the same name, a request from an IDP to destroy a user's session. See http://docs.oasis-open.org/securit
schema.go:142
FuncType
LogoutRequestOption
LogoutRequestOption customizes a LogoutRequest produced by MakeLogoutRequest, MakeRedirectLogoutRequest or MakePostLogoutRequest. The option is applie
service_provider.go:2820
Struct
LogoutResponse
LogoutResponse represents the SAML object of the same name. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf
schema.go:1931
Struct
MemoryFormReplayStore
MemoryFormReplayStore is a FormReplayStore that keeps forms in memory. It saves only application/x-www-form-urlencoded forms: a multipart form, which
samlsp/form_replay.go:74
Struct
MemoryReplayCache
MemoryReplayCache is a saml.AssertionReplayCache that keeps the IDs of accepted assertions in memory, each until the expiry it was recorded with. It i
samlsp/replay_cache.go:36
next →
1–100 of 281, ranked by callers