external

package
v0.0.0-...-06831c0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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 Init

func Init(store sessions.Store)

func NewDefaultExternalHandler

func NewDefaultExternalHandler() *externalDefaultAuthHandler

func NewSamlExternalHandler

func NewSamlExternalHandler(s *saml.SamlSPService) *externalSamlAuthHandler

func RegisterOidcProvider

func RegisterOidcProvider(ctx context.Context, log *zap.Logger, s store.SettingValues, opt options.AuthOpt, name, providerUrl string, force, validate, enable bool) (eap *types.ExternalAuthProvider, err error)

func SetupGothProviders

func SetupGothProviders(log *zap.Logger, redirectUrl string, ep ...settings.Provider)

Types

type ExternalAuthHandler

type ExternalAuthHandler interface {
	BeginUserAuth(http.ResponseWriter, *http.Request)
	CompleteUserAuth(http.ResponseWriter, *http.Request) (u *types.ExternalAuthUser, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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