authentication

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APISecretAuthenticator

type APISecretAuthenticator interface {
	Authenticate(ctx context.Context, apiKey, apiSecret string) (projectID string, err error)
}

type Authentication

type Authentication struct {
	UserID    string
	ProjectID string
}

type CustomOption

type CustomOption func(*CustomOptions)

func WithOpenfortProvider

func WithOpenfortProvider(value string) CustomOption

func WithOpenfortTokenType

func WithOpenfortTokenType(value string) CustomOption

type CustomOptions

type CustomOptions struct {
	OpenfortProvider  *string
	OpenfortTokenType *string
}

type UserAuthenticator

type UserAuthenticator interface {
	Authenticate(ctx context.Context, apiKey, token string, providerType provider.Type, opts ...CustomOption) (*Authentication, error)
}

Jump to

Keyboard shortcuts

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