operation

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 26 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapConfig

type BootstrapConfig struct {
	DocumentSDSVaultURL string
	KeySDSVaultURL      string
	AuthZKeyServerURL   string
	OpsKeyServerURL     string
}

BootstrapConfig holds user bootstrap-related config.

type BootstrapData

type BootstrapData struct {
	DocumentSDSVaultURL string            `json:"documentSDSURL"`
	KeySDSVaultURL      string            `json:"keySDSURL"`
	AuthZKeyServerURL   string            `json:"authzKeyServerURL"`
	OpsKeyServerURL     string            `json:"opsKeyServerURL"`
	Data                map[string]string `json:"data,omitempty"`
}

BootstrapData is the user's bootstrap data.

type Config

type Config struct {
	TLSConfig              *tls.Config
	RequestTokens          map[string]string
	OIDC                   *OIDCConfig
	UIEndpoint             string
	TransientStoreProvider storage.Provider
	StoreProvider          storage.Provider
	BootstrapConfig        *BootstrapConfig
	Hydra                  Hydra
	DeviceRootCerts        []string
	DeviceCertSystemPool   bool
	Cookies                *CookieConfig
	StartupTimeout         uint64
	SecretsToken           string
}

Config defines configuration for rp operations.

type CookieConfig

type CookieConfig struct {
	AuthKey []byte
	EncKey  []byte
}

CookieConfig holds cookie configuration.

type GetSecretResponse

type GetSecretResponse struct {
	Secret string `json:"secret"`
}

GetSecretResponse is the response's payload to a request to get a secret.

type Hydra

type Hydra interface {
	GetLoginRequest(params *admin.GetLoginRequestParams, opts ...admin.ClientOption) (*admin.GetLoginRequestOK, error)
	AcceptLoginRequest(params *admin.AcceptLoginRequestParams,
		opts ...admin.ClientOption) (*admin.AcceptLoginRequestOK, error)
	GetConsentRequest(params *admin.GetConsentRequestParams,
		opts ...admin.ClientOption) (*admin.GetConsentRequestOK, error)
	AcceptConsentRequest(params *admin.AcceptConsentRequestParams,
		opts ...admin.ClientOption) (*admin.AcceptConsentRequestOK, error)
	IntrospectOAuth2Token(params *admin.IntrospectOAuth2TokenParams,
		opts ...admin.ClientOption) (*admin.IntrospectOAuth2TokenOK, error)
}

Hydra is the client used to interface with the Hydra service.

type OIDCConfig

type OIDCConfig struct {
	CallbackURL string
	Providers   map[string]*OIDCProviderConfig
}

OIDCConfig holds the OIDC configuration.

type OIDCProviderConfig

type OIDCProviderConfig struct {
	URL             string
	ClientID        string
	ClientSecret    string
	Name            string
	SignUpLogoURL   string
	SignInLogoURL   string
	Order           int
	SkipIssuerCheck bool
	Scopes          []string
}

OIDCProviderConfig holds the configuration for a single OIDC provider.

type Operation

type Operation struct {
	// contains filtered or unexported fields
}

Operation defines handlers.

func New

func New(config *Config) (*Operation, error)

New returns rp operation instance.

func (*Operation) GetRESTHandlers

func (o *Operation) GetRESTHandlers() []common.Handler

GetRESTHandlers get all controller API handler available for this service.

type SetSecretRequest

type SetSecretRequest struct {
	Secret []byte `json:"secret"`
}

SetSecretRequest is the payload of a request to set a secret.

type UpdateBootstrapDataRequest

type UpdateBootstrapDataRequest struct {
	Data map[string]string `json:"data"`
}

UpdateBootstrapDataRequest is a request to update bootstrap data.

Jump to

Keyboard shortcuts

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