# 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)
}