oidc

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: 32 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapData

type BootstrapData struct {
	User              string `json:"user,omitempty"`
	UserEDVVaultURL   string `json:"edvVaultURL,omitempty"` // TODO remove this
	OpsEDVVaultURL    string `json:"opsVaultURL,omitempty"` // TODO remove this
	AuthzKeyStoreURL  string `json:"authzKeyStoreURL,omitempty"`
	OpsKeyStoreURL    string `json:"opsKeyStoreURL,omitempty"`
	EDVOpsKIDURL      string `json:"edvOpsKIDURL,omitempty"`
	EDVHMACKIDURL     string `json:"edvHMACKIDURL,omitempty"`
	UserEDVCapability string `json:"edvCapability,omitempty"`
	OPSKMSCapability  string `json:"opsKMSCapability,omitempty"` // TODO remove this
	UserEDVServer     string `json:"userEDVServer,omitempty"`
	UserEDVVaultID    string `json:"userEDVVaultID,omitempty"`
	UserEDVEncKID     string `json:"userEDVEncKID,omitempty"`
	UserEDVMACKID     string `json:"userEDVMACKID,omitempty"`
	TokenExpiry       string `json:"tokenExpiry,omitempty"`
}

BootstrapData user bootsrap data. TODO to be refactored for universal wallet migration.

type Config

type Config struct {
	OIDCClient      oidc.Client
	Storage         *StorageConfig
	WalletDashboard string
	TLSConfig       *tls.Config
	KeyServer       *KeyServerConfig
	UserEDVURL      string
	HubAuthURL      string
	JSONLDLoader    ld.DocumentLoader
	Cookie          *cookie.Config
}

Config holds all configuration for an Operation.

type KeyServerConfig

type KeyServerConfig struct {
	AuthzKMSURL string
	OpsKMSURL   string
	KeyEDVURL   string
}

KeyServerConfig holds configuration for key management server.

type Operation

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

Operation implements OIDC operations.

func New

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

New returns a new Operation.

func (*Operation) GetRESTHandlers

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

GetRESTHandlers get all controller API handler available for this service.

type StorageConfig

type StorageConfig struct {
	Storage          ariesstorage.Provider
	TransientStorage ariesstorage.Provider
}

StorageConfig holds storage config.

Jump to

Keyboard shortcuts

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