generic

package
v1.8.10 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type GenericIdentity

type GenericIdentity struct {
	Username  string
	Header    http.Header
	AccountId string
}

func (*GenericIdentity) GetAccountId added in v1.6.0

func (g *GenericIdentity) GetAccountId() string

func (*GenericIdentity) GetGroup

func (g *GenericIdentity) GetGroup() string

func (*GenericIdentity) GetRespHeader

func (g *GenericIdentity) GetRespHeader() http.Header

func (*GenericIdentity) GetUserEmail

func (g *GenericIdentity) GetUserEmail() string

GetUserEmail generic auth method response does not include email

func (*GenericIdentity) GetUserID

func (g *GenericIdentity) GetUserID() string

func (*GenericIdentity) GetUserName

func (g *GenericIdentity) GetUserName() string

func (*GenericIdentity) GetUsername

func (g *GenericIdentity) GetUsername() string

type HeaderProvider

type HeaderProvider struct {
	URL                string
	Method             string
	Scheme             string
	InsecureSkipVerify bool
	CACert             string
	CAKey              string
	TLSCert            string
	TLSKey             string

	Client *http.Client
}

func GetProvider

func GetProvider() *HeaderProvider

func (*HeaderProvider) Authenticate

func (h *HeaderProvider) Authenticate(headers map[string][]string) (identityprovider.Identity, error)

Jump to

Keyboard shortcuts

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