mytokenlib

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mytoken

type Mytoken struct {
	pkg.MytokenConfiguration
}

func NewMytokenInstance

func NewMytokenInstance(url string) (*Mytoken, error)

func (*Mytoken) GetAccessToken

func (my *Mytoken) GetAccessToken(superToken, oidcIssuer string, scopes []string, audiences []string, comment string) (string, error)

func (*Mytoken) GetSuperToken

func (my *Mytoken) GetSuperToken(req interface{}) (string, error)

func (*Mytoken) GetSuperTokenByAuthorizationFlow

func (my *Mytoken) GetSuperTokenByAuthorizationFlow(issuer string, restrictions restrictions.Restrictions, capabilities capabilities.Capabilities, subtokenCapabilities capabilities.Capabilities, responseType model.ResponseType, name string, initPolling func(string) error, callback func(int64, int), endPolling func()) (string, error)

func (*Mytoken) GetSuperTokenBySuperToken

func (my *Mytoken) GetSuperTokenBySuperToken(superToken, issuer string, restrictions restrictions.Restrictions, capabilities capabilities.Capabilities, subtokenCapabilities capabilities.Capabilities, responseType model.ResponseType, name string) (string, error)

func (*Mytoken) GetSuperTokenByTransferCode

func (my *Mytoken) GetSuperTokenByTransferCode(transferCode string) (string, error)

func (*Mytoken) InitAuthorizationFlow

func (my *Mytoken) InitAuthorizationFlow(issuer string, restrictions restrictions.Restrictions, capabilities capabilities.Capabilities, subtokenCapabilities capabilities.Capabilities, responseType model.ResponseType, name string) (*pkg.AuthCodeFlowResponse, error)

func (*Mytoken) Poll

func (my *Mytoken) Poll(res pkg.PollingInfo, callback func(int64, int)) (string, error)

func (*Mytoken) PollOnce

func (my *Mytoken) PollOnce(pollingCode string) (string, bool, error)

func (*Mytoken) Revoke

func (my *Mytoken) Revoke(superToken, oidcIssuer string, recursive bool) error

type MytokenError

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

MytokenError is a error type from the mytoken library

func (*MytokenError) Error

func (err *MytokenError) Error() string

Jump to

Keyboard shortcuts

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