Documentation ¶
Index ¶
- Constants
- func AddProvider(ctx context.Context, log *zap.Logger, s store.SettingValues, ...) error
- func DiscoverOidcProvider(ctx context.Context, log *zap.Logger, opt options.AuthOpt, name, url string) (eap *types.ExternalAuthProvider, err error)
- func Init(store sessions.Store)
- func NewDefaultExternalHandler() *externalDefaultAuthHandler
- func NewSamlExternalHandler(s *saml.SamlSPService) *externalSamlAuthHandler
- func RegisterOidcProvider(ctx context.Context, log *zap.Logger, s store.SettingValues, ...) (eap *types.ExternalAuthProvider, err error)
- func SetupGothProviders(log *zap.Logger, redirectUrl string, ep ...settings.Provider)
- type ExternalAuthHandler
Constants ¶
View Source
const (
OIDC_PROVIDER_PREFIX = "openid-connect." // must match const in "github.com/cortezaproject/corteza/server/system/types" app_settings.go
)
View Source
const (
WellKnown = "/.well-known/openid-configuration"
)
We're expecting that our users will be able to complete external auth loop in 15 minutes.
Variables ¶
This section is empty.
Functions ¶
func AddProvider ¶
func AddProvider(ctx context.Context, log *zap.Logger, s store.SettingValues, eap *types.ExternalAuthProvider, force bool) error
func DiscoverOidcProvider ¶
func DiscoverOidcProvider(ctx context.Context, log *zap.Logger, opt options.AuthOpt, name, url string) (eap *types.ExternalAuthProvider, err error)
@todo remove dependency on github.com/crusttech/go-oidc (and github.com/coreos/go-oidc)
and move client registration to corteza codebase
func NewDefaultExternalHandler ¶
func NewDefaultExternalHandler() *externalDefaultAuthHandler
func NewSamlExternalHandler ¶
func NewSamlExternalHandler(s *saml.SamlSPService) *externalSamlAuthHandler
func RegisterOidcProvider ¶
Types ¶
type ExternalAuthHandler ¶
type ExternalAuthHandler interface { BeginUserAuth(http.ResponseWriter, *http.Request) CompleteUserAuth(http.ResponseWriter, *http.Request) (u *types.ExternalAuthUser, err error) }
Click to show internal directories.
Click to hide internal directories.