metadata

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericHttp added in v0.2.0

type GenericHttp struct {
	Endpoint     string
	Method       string
	Parameters   []common.JSONProperty
	Headers      []common.JSONProperty
	ContentType  string
	SharedSecret string
	auth_credentials.AuthCredentials
}

func (*GenericHttp) Call added in v0.2.0

func (h *GenericHttp) Call(pipeline common.AuthPipeline, ctx context.Context) (interface{}, error)

type PAT

type PAT struct {
	AccessToken string `json:"access_token"`
}

func (*PAT) Get

func (pat *PAT) Get(rawurl string, ctx context.Context, v interface{}) error

func (*PAT) String

func (pat *PAT) String() string

type Provider

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

func (*Provider) GetResourcesByURI

func (provider *Provider) GetResourcesByURI(uri string, pat PAT, ctx context.Context) ([]interface{}, error)

func (*Provider) GetTokenURL

func (provider *Provider) GetTokenURL() string

type UMA

type UMA struct {
	Endpoint     string `yaml:"endpoint,omitempty"`
	ClientID     string `yaml:"client_id"`
	ClientSecret string `yaml:"client_secret"`
	// contains filtered or unexported fields
}

func NewUMAMetadata

func NewUMAMetadata(endpoint string, clientID string, clientSecret string) (*UMA, error)

func (*UMA) Call

func (uma *UMA) Call(pipeline common.AuthPipeline, parentCtx context.Context) (interface{}, error)

type UserInfo

type UserInfo struct {
	OIDC *identity.OIDC `yaml:"oidc,omitempty"`
}

func (*UserInfo) Call

func (userinfo *UserInfo) Call(pipeline common.AuthPipeline, parentCtx context.Context) (interface{}, error)

Jump to

Keyboard shortcuts

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