auth

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Enabled      bool   `yaml:"enabled"`
	ClientId     string `yaml:"client_id"`
	ClientSecret string `yaml:"client_secret"`

	OrganizationPermissionMap map[string]bool `yaml:"organization_permission_map"`
	EmailPermissionMap        map[string]bool `yaml:"email_permission_map"`
}

func (Provider) LoginRedirect

func (g Provider) LoginRedirect(w http.ResponseWriter, r *http.Request, state string)

func (Provider) Name

func (g Provider) Name() string

func (Provider) VerifyCallback

func (g Provider) VerifyCallback(r *http.Request) (principal auth.Principal, userEmail string, err error)

Jump to

Keyboard shortcuts

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