Documentation ¶
Overview ¶
Package providers provides functions to configure and use the providers supported out of the box by the enkit oauth library: google and github.
Use the functions in this file to easily bring up a working authentication server or client almost entirely controlled by flags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGroupsKeeperFactory ¶
func NewGroupsKeeperFactory(keep, rename string) (oauth.VerifierFactory, error)
Types ¶
type Flags ¶
type Flags struct { *oauth.Flags Google *ogoogle.Flags // The name of the provider to use: google or github. Provider string // Only groups matching this regex are kept. GroupsKeep string // Name of the group will be mangled based on this substitution. GroupsRename string }
Flags allows to configure oauth for one of the specific providers supported by the library out of the box.
To pass Flags to one of the constructurs, use `WithFlags`.
func DefaultFlags ¶
func DefaultFlags() *Flags
type GroupsKeeper ¶
type GroupsKeeper struct {
// contains filtered or unexported fields
}
func (*GroupsKeeper) Scopes ¶
func (gk *GroupsKeeper) Scopes() []string
Click to show internal directories.
Click to hide internal directories.