metadata

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericHttp

type GenericHttp struct {
	Endpoint              string
	Method                string
	Body                  *json.JSONValue
	Parameters            []json.JSONProperty
	Headers               []json.JSONProperty
	ContentType           string
	SharedSecret          string
	OAuth2                *oauth2.ClientCredentials
	OAuth2TokenForceFetch bool
	auth.AuthCredentials
}

func (*GenericHttp) Call

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

type PAT

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

func (*PAT) Get

func (pat *PAT) Get(rawurl string, ctx gocontext.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 gocontext.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 auth.AuthPipeline, parentCtx gocontext.Context) (interface{}, error)

type UserInfo

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

func (*UserInfo) Call

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

Jump to

Keyboard shortcuts

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