Documentation ¶
Index ¶
- Variables
- func CreateSAMLResponse(issuer string, inRespTo string, recipient string, audience string, ...) (string, error)
- func CreateValidationContextFromCertFile(certFile string) (*dsig.ValidationContext, error)
- func NewIDPKeyStore(pKeyFile string) dsig.X509KeyStore
- func ValidateAssertion(base64EncResp string, validationContext *dsig.ValidationContext) error
- type AuthnRequest
- type IDPKeyStore
- type Issuer
Constants ¶
This section is empty.
Variables ¶
View Source
var Certb64 = `` /* 1272-byte string literal not displayed */
Test Cert
Functions ¶
func CreateSAMLResponse ¶
func CreateValidationContextFromCertFile ¶
func CreateValidationContextFromCertFile(certFile string) (*dsig.ValidationContext, error)
func NewIDPKeyStore ¶
func NewIDPKeyStore(pKeyFile string) dsig.X509KeyStore
func ValidateAssertion ¶
func ValidateAssertion(base64EncResp string, validationContext *dsig.ValidationContext) error
Types ¶
type AuthnRequest ¶
type AuthnRequest struct { XMLName xml.Name `xml:"samlp:AuthnRequest"` SamlpAttr string `xml:"xmlns:samlp,attr"` ID string `xml:"ID,attr"` IssueInstant string `xml:"IssueInstant,attr"` ProtocolBinding string `xml:"ProtocolBinding,attr"` Version string `xml:"Version,attr"` Issuer Issuer `xml:"saml:Issuer"` }
type IDPKeyStore ¶
type IDPKeyStore struct {
// contains filtered or unexported fields
}
func (*IDPKeyStore) GetKeyPair ¶
func (is *IDPKeyStore) GetKeyPair() (privateKey *rsa.PrivateKey, cert []byte, err error)
Click to show internal directories.
Click to hide internal directories.