Documentation ¶
Index ¶
- func GetDomain(req *saml.IdpAuthnRequest) string
- func Metadata(domain string) []byte
- func MetadataIdentity(domain string) (metadata *saml.EntityDescriptor, err error)
- func NewGSuiteMailAddressProvider(finder GSuiteMailAddressFinder) saml.AttributesProvider
- func ParseDomainFromServiceProviderEntityID(url string) string
- func RequestSetup(req *saml.IdpAuthnRequest, descriptor *saml.EntityDescriptor) (err error)
- func ValidServiceURL(url string) bool
- type DefaultAssertionMaker
- type GSuiteMailAddressFinder
- type GSuiteMailAddressFinderFunc
- type ServicesProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDomain ¶
func GetDomain(req *saml.IdpAuthnRequest) string
func MetadataIdentity ¶
func MetadataIdentity(domain string) (metadata *saml.EntityDescriptor, err error)
func NewGSuiteMailAddressProvider ¶
func NewGSuiteMailAddressProvider(finder GSuiteMailAddressFinder) saml.AttributesProvider
NewGSuiteMailAddressProvider this method is not valid for multiple domains in gsuinte account
func RequestSetup ¶
func RequestSetup(req *saml.IdpAuthnRequest, descriptor *saml.EntityDescriptor) (err error)
func ValidServiceURL ¶
Types ¶
type DefaultAssertionMaker ¶
type DefaultAssertionMaker struct { }
DefaultAssertionMaker produces a SAML assertion for the given request and assigns it to req.Assertion.
func (DefaultAssertionMaker) MakeAssertion ¶
func (DefaultAssertionMaker) MakeAssertion(req *saml.IdpAuthnRequest, session *saml.Session) error
MakeAssertion implements AssertionMaker. It produces a SAML assertion from the given request and assigns it to req.Assertion.
type GSuiteMailAddressFinder ¶
type GSuiteMailAddressFinder interface {
Find(req *saml.IdpAuthnRequest, session *saml.Session, domain string) (email string, err error)
}
func NewGSuiteMailAddressFinder ¶
func NewGSuiteMailAddressFinder(f func(req *saml.IdpAuthnRequest, session *saml.Session, domain string) (email string, err error)) GSuiteMailAddressFinder
type GSuiteMailAddressFinderFunc ¶
type GSuiteMailAddressFinderFunc func(req *saml.IdpAuthnRequest, session *saml.Session, domain string) (email string, err error)
func (GSuiteMailAddressFinderFunc) Find ¶
func (this GSuiteMailAddressFinderFunc) Find(req *saml.IdpAuthnRequest, session *saml.Session, domain string) (string, error)
type ServicesProvider ¶
type ServicesProvider struct { AutoRegister bool // contains filtered or unexported fields }
func (*ServicesProvider) Get ¶
func (this *ServicesProvider) Get(req *saml.IdpAuthnRequest, ID string) (provider saml.IDPServiceProvider, err error)
Click to show internal directories.
Click to hide internal directories.