gsuite

package
v0.0.0-...-1efe09a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2020 License: BSD-2-Clause Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDomain

func GetDomain(req *saml.IdpAuthnRequest) string

func Metadata

func Metadata(domain string) []byte

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 ParseDomainFromServiceProviderEntityID

func ParseDomainFromServiceProviderEntityID(url string) string

func RequestSetup

func RequestSetup(req *saml.IdpAuthnRequest, descriptor *saml.EntityDescriptor) (err error)

func ValidServiceURL

func ValidServiceURL(url string) bool

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL