operation

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TokenIssuer      tokenIssuer
	TokenResolver    tokenResolver
	DocumentLoader   ld.DocumentLoader
	CMSURL           string
	VCSURL           string
	ReceiveVCHTML    string
	DIDAuthHTML      string
	VCHTML           string
	DIDCommHTML      string
	DIDCOMMVPHTML    string
	TLSConfig        *tls.Config
	RequestTokens    map[string]string
	IssuerAdapterURL string
	StoreProvider    storage.Provider
	OIDCProviderURL  string
	OIDCClientID     string
	OIDCClientSecret string
	OIDCCallbackURL  string
	// contains filtered or unexported fields
}

Config defines configuration for issuer operations

type Handler

type Handler interface {
	Path() string
	Method() string
	Handle() http.HandlerFunc
}

Handler http handler for each controller API endpoint

type Operation

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

Operation defines handlers for authorization service

func New

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

New returns authorization instance

func (*Operation) GetRESTHandlers

func (c *Operation) GetRESTHandlers() []Handler

GetRESTHandlers get all controller API handler available for this service

Jump to

Keyboard shortcuts

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