Documentation ¶
Index ¶
- func BadRequestForm(w http.ResponseWriter, r *http.Request, message string, file string)
- func ErrorForm(w http.ResponseWriter, r *http.Request, message string, statusCode int, ...)
- func GetSPMetadata(r io.Reader) (*saml.EntityDescriptor, error)
- func LoginForm(w http.ResponseWriter, r *http.Request, req *saml.IdpAuthnRequest, url string, ...)
- func MakeAssertion(req *saml.IdpAuthnRequest, idp *saml.IdentityProvider, session *saml.Session) error
- func New(cfg *config.Config) (*samlidp.Server, error)
- func RandomBytes(n int) []byte
- func ValidateSamlRequest(idp *saml.IdentityProvider, r *http.Request) (*saml.IdpAuthnRequest, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequestForm ¶
BadRequestForm shows bad request message if SAML request is not valid
func GetSPMetadata ¶
func GetSPMetadata(r io.Reader) (*saml.EntityDescriptor, error)
GetSPMetadata return EntityDescriptor
func LoginForm ¶
func LoginForm(w http.ResponseWriter, r *http.Request, req *saml.IdpAuthnRequest, url string, message string, file string)
LoginForm produces a form which requests a email and password and directs the user back to the IDP authorize URL to restart the SAML login flow, this time establishing a session based on the credentials that were provided.
func MakeAssertion ¶
func MakeAssertion(req *saml.IdpAuthnRequest, idp *saml.IdentityProvider, session *saml.Session) error
MakeAssertion creates the assersion that is returned to the Service Provider
func ValidateSamlRequest ¶
func ValidateSamlRequest(idp *saml.IdentityProvider, r *http.Request) (*saml.IdpAuthnRequest, error)
ValidateSamlRequest validates the SAML requst. If it is not valid error is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.