Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewjam/saml
/ types & classes
Types & classes
124 in github.com/crewjam/saml
⨍
Functions
428
◇
Types & classes
124
↓ 13 callers
TypeAlias
RelaxedTime
RelaxedTime is a version of time.Time that supports the time format found in SAML documents.
time.go:7
↓ 5 callers
TypeAlias
ErrIncorrectKeyType
ErrIncorrectKeyType is returned when the key is not the correct type
xmlenc/decrypt.go:47
↓ 4 callers
TypeAlias
Duration
Duration is a time.Duration that uses the xsd:duration format for text marshalling and unmarshalling.
duration.go:13
↓ 4 callers
TypeAlias
ErrIncorrectKeyLength
ErrIncorrectKeyLength is returned when the fixed length key is not of the required length.
xmlenc/decrypt.go:40
↓ 2 callers
TypeAlias
ErrAlgorithmNotImplemented
ErrAlgorithmNotImplemented is returned when encryption used is not supported.
xmlenc/decrypt.go:20
↓ 2 callers
TypeAlias
NameIDFormat
NameIDFormat is the format of the id
service_provider.go:30
↓ 1 callers
TypeAlias
ErrCannotFindRequiredElement
ErrCannotFindRequiredElement is returned by Decrypt when a required element cannot be found.
xmlenc/decrypt.go:28
↓ 1 callers
FuncType
mockTransport
func(req *http.Request) (*http.Response, error)
samlsp/samlsp_test.go:18
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:295
TypeAlias
Alias
schema.go:112
TypeAlias
Alias
metadata.go:69
Struct
ArtifactResolve
ArtifactResolve represents the SAML object of the same name.
schema.go:325
Struct
ArtifactResponse
ArtifactResponse represents the SAML object of the same name.
schema.go:406
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:728
Struct
AssertionAttribute
AssertionAttribute represents an attribute of the user extracted from a SAML Assertion.
service_provider.go:565
TypeAlias
AssertionAttributes
AssertionAttributes is a list of AssertionAttribute
service_provider.go:547
Interface
AssertionMaker
AssertionMaker is an interface used by IdentityProvider to construct the assertion for a request. The default implementation is DefaultAssertionMaker,
identity_provider.go:77
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:1203
Struct
AttributeAuthorityDescriptor
AttributeAuthorityDescriptor represents the SAML AttributeAuthorityDescriptor object. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata
metadata.go:283
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:244
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:1187
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:1231
TypeAlias
Attributes
Attributes is a map of attributes provided in the SAML assertion
samlsp/session_jwt.go:130
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:1029
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:1015
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:263
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:1154
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:1173
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:36
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:1073
Interface
BlockCipher
BlockCipher implements a cipher with a fixed size key like AES or 3DES.
xmlenc/xmlenc.go:58
Struct
CBC
CBC implements Decrypter and Encrypter for block ciphers in CBC mode
xmlenc/cbc.go:15
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:950
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:128
Struct
CookieRequestTracker
CookieRequestTracker tracks requests by setting a uniquely named cookie for each request.
samlsp/request_tracker_cookie.go:17
Struct
CookieSessionProvider
CookieSessionProvider is an implementation of SessionProvider that stores session tokens in an HTTP cookie.
samlsp/session_cookie.go:17
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:29
Struct
DefaultAssertionMaker
DefaultAssertionMaker produces a SAML assertion for the given request and assigns it to req.Assertion.
identity_provider.go:549
Interface
DigestMethod
DigestMethod represents a digest method such as SHA1, etc.
xmlenc/xmlenc.go:35
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:20
Struct
EncryptionMethod
EncryptionMethod represents the XMLSEC object of the same name
metadata.go:160
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:185
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:25
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:48
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:587
FuncType
ErrorFunction
ErrorFunction is a callback that is invoked to return an error to the web user.
samlsp/error.go:12
Struct
GCM
GCM implements Decrypter and Encrypter for block ciphers in struct mode
xmlenc/gcm.go:15
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:216
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:97
Struct
IdentityProviderTest
identity_provider_test.go:34
Struct
IdpAuthnRequest
IdpAuthnRequest is used by IdentityProvider to handle a single authentication request.
identity_provider.go:335
Struct
IdpAuthnRequestForm
IdpAuthnRequestForm contans HTML form information to be submitted to the SAML HTTP POST binding ACS.
identity_provider.go:901
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:194
Interface
Interface
Interface provides the minimal logging interface
logger/logger.go:9
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:575
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:271
Struct
JWTSessionClaims
JWTSessionClaims represents the JWT claims in the encoded session
samlsp/session_jwt.go:116
Struct
JWTSessionCodec
JWTSessionCodec implements SessionCoded to encode and decode Sessions from the corresponding JWT.
samlsp/session_jwt.go:21
Struct
JWTTrackedRequestClaims
JWTTrackedRequestClaims represents the JWT claims for a tracked request.
samlsp/request_tracker_jwt.go:27
Struct
JWTTrackedRequestCodec
JWTTrackedRequestCodec encodes TrackedRequests as signed JWTs
samlsp/request_tracker_jwt.go:16
Struct
KeyDescriptor
KeyDescriptor represents the XMLSEC object of the same name
metadata.go:153
Struct
KeyInfo
KeyInfo represents the XMLSEC object of the same name
metadata.go:165
Struct
Link
Link represents a short link
example/service.go:28
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:112
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:120
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:66
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:1253
Struct
MemoryStore
MemoryStore is an implementation of Store that resides completely in memory.
samlidp/memory_store.go:11
Struct
Middleware
Middleware implements middleware than allows a web application to support SAML. It implements http.Handler so that it can provide the metadata and AC
samlsp/middleware.go:41
Struct
MiddlewareTest
samlsp/middleware_test.go:30
Struct
NameID
NameID represents the SAML element NameID. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §2.2.3
schema.go:816
Struct
NameIDPolicy
NameIDPolicy 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:302
Struct
OneTimeUse
OneTimeUse represents the SAML element OneTimeUse. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §2.5.1.5
schema.go:1043
Struct
Options
Options represents the parameters for creating a new middleware
samlsp/new.go:16
Struct
Options
Options represent the parameters to New() for creating a new IDP server
samlidp/samlidp.go:20
Struct
Organization
Organization represents the SAML Organization object. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.3.2.1
metadata.go:103
Struct
PDPDescriptor
PDPDescriptor represents the SAML PDPDescriptor object. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.4.6
metadata.go:273
Struct
ProxyRestriction
ProxyRestriction represents the SAML element ProxyRestriction. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §2.5.1.6
schema.go:1053
Struct
RSA
RSA implements Encrypter and Decrypter using RSA public key encryption. Use function like OAEP(), or PKCS1v15() to get an instance of this type ready
xmlenc/pubkey.go:16
Interface
RequestTracker
RequestTracker tracks pending authentication requests. There are two main reasons for this: 1. When the middleware initiates an authentication reque
samlsp/request_tracker.go:16
Struct
RequestedAttribute
RequestedAttribute represents the SAML RequestedAttribute object. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.4.4.2
metadata.go:255
Struct
RequestedAuthnContext
RequestedAuthnContext represents the SAML object of the same name, an indication of the requirements on the authentication process.
schema.go:16
Struct
Response
Response 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:482
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:140
Struct
SPSSODescriptor
SPSSODescriptor represents the SAML SPSSODescriptorType object. See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.4.2
metadata.go:232
Struct
SSODescriptor
SSODescriptor represents the SAML complex type SSODescriptor See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.4.2
metadata.go:205
Struct
Server
Server represents an IDP server. The server provides the following URLs: /metadata - the SAML metadata /sso - the SAML endpoint to ini
samlidp/samlidp.go:38
Struct
ServerTest
samlidp/samlidp_test.go:69
Struct
Service
Service represents a configured SP for whom this IDP provides authentication services.
samlidp/service.go:16
Struct
ServiceProvider
ServiceProvider implements SAML Service provider. In SAML, service providers delegate responsibility for identifying clients to an identity provider.
service_provider.go:64
Interface
ServiceProviderProvider
ServiceProviderProvider is an interface used by IdentityProvider to look up service provider metadata for a request.
identity_provider.go:66
Struct
ServiceProviderTest
service_provider_test.go:27
Interface
Session
Session is an interface implemented to contain a session.
samlsp/session.go:12
Struct
Session
Session represents a user session. It is returned by the SessionProvider implementation's GetSession method. Fields here are used to set fields in the
identity_provider.go:32
Interface
SessionCodec
SessionCodec is an interface to convert SAML assertions to a Session. The default implementation uses JWTs, JWTSessionCodec.
samlsp/session.go:43
Struct
SessionIndex
SessionIndex represents the SAML element SessionIndex. See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf §3.7.1
schema.go:848
Interface
SessionProvider
SessionProvider is an interface used by IdentityProvider to determine the Session associated with a request. For an example implementation, see GetSes
identity_provider.go:56
Interface
SessionProvider
SessionProvider is an interface implemented by types that can track the active session of a user. The default implementation is CookieSessionProvider
samlsp/session.go:26
Interface
SessionWithAttributes
SessionWithAttributes is a session that can expose the attributes provided by the SAML identity provider.
samlsp/session.go:16
Struct
Shortcut
Shortcut represents an IDP-initiated SAML flow. When a user navigates to /login/:shortcut it initiates the login flow to the specified service provide
samlidp/shortcut.go:15
next →
1–100 of 124, ranked by callers