identityprovider

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeaderProvider

type HeaderProvider interface {
	// Authenticate from remote server
	Authenticate(headers map[string][]string) (Identity, error)
}

type Identity

type Identity interface {
	GetUserName() string
	GetUserEmail() string
	GetGroup() string
	GetRespHeader() http.Header
}

type OAuthProvider

type OAuthProvider interface {
	// IdentityExchange exchange identity from remote server
	IdentityExchange(code string) (Identity, error)
}

type PasswordProvider

type PasswordProvider interface {
	// Authenticate from remote server
	Authenticate(username string, password string) (Identity, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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