Versions in this module Expand all Collapse all v0 v0.1.1 Mar 8, 2020 v0.1.0 Mar 8, 2020 Changes in this version + type ConfigX509KeyStore struct + Conf conf.SamlProviderConfiguration + DB *storage.Connection + InstanceID uuid.UUID + func (ks ConfigX509KeyStore) CreateSigningCert() (*rsa.PrivateKey, []byte, error) + func (ks ConfigX509KeyStore) GetKeyPair() (*rsa.PrivateKey, []byte, error) + func (ks ConfigX509KeyStore) SaveConfig(cert []byte, key *rsa.PrivateKey) error + type OAuthProvider interface + AuthCodeURL func(string, ...oauth2.AuthCodeOption) string + GetOAuthToken func(string) (*oauth2.Token, error) + GetUserData func(context.Context, *oauth2.Token) (*UserProvidedData, error) + func NewBitbucketProvider(ext conf.OAuthProviderConfiguration) (OAuthProvider, error) + func NewFacebookProvider(ext conf.OAuthProviderConfiguration) (OAuthProvider, error) + func NewGithubProvider(ext conf.OAuthProviderConfiguration) (OAuthProvider, error) + func NewGitlabProvider(ext conf.OAuthProviderConfiguration) (OAuthProvider, error) + func NewGoogleProvider(ext conf.OAuthProviderConfiguration) (OAuthProvider, error) + type Provider interface + AuthCodeURL func(string, ...oauth2.AuthCodeOption) string + type SamlProvider struct + ServiceProvider *saml2.SAMLServiceProvider + func NewSamlProvider(ext conf.SamlProviderConfiguration, db *storage.Connection, ...) (*SamlProvider, error) + func (p SamlProvider) AuthCodeURL(tokenString string, args ...oauth2.AuthCodeOption) string + func (p SamlProvider) SPMetadata() ([]byte, error) + type UserProvidedData struct + Email string + Metadata map[string]string + Verified bool