# README
SAML IDP Module
This module allows a service to act as IDP (allow others to SSO with the service).
This module registers a feature configurer which does the following:
- add metadata refresh middleware to the sso endpoint
- add sso endpoint
- add metadata endpoint
- add error handling
Example Usage
samlidp.Use()
func (c *ExampleConfigurer) Configure(ws security.WebSecurity) {
ws.Route(matcher.RouteWithPattern(c.config.Endpoints.SamlSso.Location.Path)).
With(saml_auth.NewEndpoint().
Issuer(c.config.Issuer).
SsoCondition(c.config.Endpoints.SamlSso.Condition).
SsoLocation(c.config.Endpoints.SamlSso.Location).
MetadataPath(c.config.Endpoints.SamlMetadata))
//Add more configuration to WS to finish the rest of the configuration for your app (i.e. what idp to use, etc)
}
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
MakeAssertion This is similar to the method in saml.IdpAuthnRequest but we have our own logic for generating attributes.
MakeAssertionEl This is similar to the implementation in saml.IdpAuthnRequest we re-implement it here because we need to optionally skip encryption.
No description provided by the author
No description provided by the author
New Standard security.Feature entrypoint for authorization, DSL style.
NewLogout Standard security.Feature entrypoint for single-logout, DSL style.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SignLogoutResponse is similar to saml.ServiceProvider.SignLogoutResponse, but for IDP.
No description provided by the author
No description provided by the author
ValidateAuthnRequest This method is similar to the method in saml.IdpAuthnRequest, Because the original implementation doesn't support signature check and destination check, we reimplement it here to add support for them.
# Constants
No description provided by the author
ErrorSubTypeCodeSamlInternal.
ErrorSubTypeCodeSamlSlo.
ErrorSubTypeCodeSamlSlo.
ErrorSubTypeCodeSamlSso.
ErrorSubTypeCodeSamlSso.
ErrorSubTypeCodeSamlSso.
ErrorSubTypeCodeSamlInternal programming error, these will be displayed on an error page so that we can fix the error on our end.
ErrorSubTypeCodeSamlSlo non-programming error that can occur during SAML SLO flow.
ErrorSubTypeCodeSamlSso non-programming error that can occur during SAML web sso flow.
No description provided by the author
No description provided by the author
# Variables
ErrorSamlSloRequester requester errors are displayed as a HTML page.
ErrorSamlSloResponder responder errors are communicated back to SP via bindings.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SamlSingleLogoutMiddleware is a 1.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author