identityprovider

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 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
	GetAccountId() 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