LoginRadius / go-saml

High Level API Implementation of SAML 2.0 (Currently Supported Identity Provider Implementation) Single Sign On
MIT License
11 stars 13 forks source link

implemented Reject struct in idp.go #11

Closed flitzmare closed 4 years ago

flitzmare commented 4 years ago

based on issue #5 I implemented Reject struct as a return in many functions.

i followed the reference that you've written: func (idp *IdentityProvider) ValidateLogoutRequest(method string, query url.Values, payload url.Values) *Reject {

So it will be easy to fetch error & message attribute, just call reject.Error or reject.Reason 😄