Documentation ¶
Index ¶
- Variables
- func AssertError(t *testing.T, expectError bool, err error, args ...interface{})
- func CopyURL(u *url.URL) *url.URL
- func ForwardToErrorHandler(w http.ResponseWriter, r *http.Request, err error, errorHandlerURL url.URL)
- func FositeStore() *store.Store
- func GenerateSecret(length int) ([]byte, error)
- func JoinURL(u *url.URL, args ...string) (ep *url.URL)
- func JoinURLStrings(host string, args ...string) string
- func LadonWarden(ps map[string]ladon.Policy) ladon.Warden
- func LogError(err error)
- func Must(err error, message string, args ...interface{})
- func MustArgs(expected, actual int)
- func RequireError(t *testing.T, expectError bool, err error, args ...interface{})
- func Retry(maxWait time.Duration, failAfter time.Duration, f func() error) (err error)
- func Tokens(length int) (res [][]string)
- type FositeStorer
- type SuperAgent
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("Not found") ErrForbidden = errors.New("Forbidden") )
View Source
var HMACStrategy = &strategy.HMACSHAStrategy{ Enigma: &hmac.HMACStrategy{ GlobalSecret: []byte("1234567890123456789012345678901234567890"), }, }
Functions ¶
func ForwardToErrorHandler ¶
func FositeStore ¶
func GenerateSecret ¶
func JoinURLStrings ¶
func RequireError ¶
Types ¶
type FositeStorer ¶
type FositeStorer interface { core.AccessTokenStorage fosite.Storage explicit.AuthorizeCodeGrantStorage refresh.RefreshTokenGrantStorage implicit.ImplicitGrantStorage oidc.OpenIDConnectRequestStorage }
type SuperAgent ¶
func NewSuperAgent ¶
func NewSuperAgent(rawurl string) *SuperAgent
func (*SuperAgent) Create ¶
func (s *SuperAgent) Create(o interface{}) error
func (*SuperAgent) Delete ¶
func (s *SuperAgent) Delete() error
func (*SuperAgent) Get ¶
func (s *SuperAgent) Get(o interface{}) error
func (*SuperAgent) POST ¶
func (s *SuperAgent) POST(in, out interface{}) error
func (*SuperAgent) Update ¶
func (s *SuperAgent) Update(o interface{}) error
Click to show internal directories.
Click to hide internal directories.