Documentation ¶
Index ¶
- Variables
- type GenericIdentity
- func (g *GenericIdentity) GetAccountId() string
- func (g *GenericIdentity) GetGroup() string
- func (g *GenericIdentity) GetRespHeader() http.Header
- func (g *GenericIdentity) GetUserEmail() string
- func (g *GenericIdentity) GetUserID() string
- func (g *GenericIdentity) GetUserName() string
- func (g *GenericIdentity) GetUsername() string
- type HeaderProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Config authentication.GenericConfig
)
Functions ¶
This section is empty.
Types ¶
type GenericIdentity ¶
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)
Click to show internal directories.
Click to hide internal directories.