Documentation
¶
Index ¶
- type Mytoken
- func (my *Mytoken) GetAccessToken(superToken, oidcIssuer string, scopes []string, audiences []string, ...) (string, error)
- func (my *Mytoken) GetSuperToken(req interface{}) (string, error)
- func (my *Mytoken) GetSuperTokenByAuthorizationFlow(issuer string, restrictions restrictions.Restrictions, ...) (string, error)
- func (my *Mytoken) GetSuperTokenBySuperToken(superToken, issuer string, restrictions restrictions.Restrictions, ...) (string, error)
- func (my *Mytoken) GetSuperTokenByTransferCode(transferCode string) (string, error)
- func (my *Mytoken) InitAuthorizationFlow(issuer string, restrictions restrictions.Restrictions, ...) (*pkg.AuthCodeFlowResponse, error)
- func (my *Mytoken) Poll(res pkg.PollingInfo, callback func(int64, int)) (string, error)
- func (my *Mytoken) PollOnce(pollingCode string) (string, bool, error)
- func (my *Mytoken) Revoke(superToken, oidcIssuer string, recursive bool) error
- type MytokenError
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 (*Mytoken) GetAccessToken ¶
func (*Mytoken) GetSuperToken ¶
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 (*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)
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
Click to show internal directories.
Click to hide internal directories.