Versions in this module Expand all Collapse all v0 v0.1.0 Jan 26, 2021 Changes in this version + const ErrorAccessDenied + const ErrorAuthorizationPending + const ErrorExpiredToken + const ErrorInsufficientCapabilities + const ErrorInsufficientScope + const ErrorInternal + const ErrorInvalidClient + const ErrorInvalidGrant + const ErrorInvalidRequest + const ErrorInvalidScope + const ErrorInvalidToken + const ErrorNYI + const ErrorOIDC + const ErrorUnauthorizedClient + const ErrorUnsupportedGrantType + const ErrorUsageRestricted + var APIErrorAuthorizationPending = ErrorWithoutDescription(ErrorAuthorizationPending) + var APIErrorBadTransferCode = APIError + var APIErrorInsufficientCapabilities = APIError + var APIErrorNYI = ErrorWithoutDescription(ErrorNYI) + var APIErrorNoRefreshToken = APIError + var APIErrorStateMismatch = APIError + var APIErrorTransferCodeExpired = APIError + var APIErrorUnknownIssuer = APIError + var APIErrorUnsupportedGrantType = APIError + var APIErrorUnsupportedOIDCFlow = APIError + var APIErrorUsageRestricted = APIError + var AllGrantTypes = [...]string + func OIDCFlowIsInSlice(f OIDCFlow, s []OIDCFlow) bool + type APIError struct + Error string + ErrorDescription string + func BadRequestError(errorDescription string) APIError + func ErrorWithErrorDescription(e string, err error) APIError + func ErrorWithoutDescription(err string) APIError + func InternalServerError(errorDescription string) APIError + func InvalidTokenError(errorDescription string) APIError + func OIDCError(oidcError, oidcErrorDescription string) APIError + func OIDCErrorFromBody(body []byte) (error APIError, ok bool) + type GrantType int + const GrantTypeAccessToken + const GrantTypeOIDCFlow + const GrantTypePollingCode + const GrantTypePrivateKeyJWT + const GrantTypeSuperToken + const GrantTypeTransferCode + func NewGrantType(s string) GrantType + func (g *GrantType) String() string + func (g *GrantType) UnmarshalJSON(data []byte) error + func (g *GrantType) UnmarshalYAML(value *yaml.Node) error + func (g *GrantType) Valid() bool + func (g GrantType) AddToSliceIfNotFound(s *[]GrantType) + func (g GrantType) MarshalJSON() ([]byte, error) + type OIDCFlow int + const OIDCFlowAuthorizationCode + const OIDCFlowDevice + func NewOIDCFlow(s string) OIDCFlow + func (f *OIDCFlow) String() string + func (f *OIDCFlow) UnmarshalJSON(data []byte) error + func (f *OIDCFlow) UnmarshalYAML(value *yaml.Node) error + func (f *OIDCFlow) Valid() bool + func (f OIDCFlow) AddToSliceIfNotFound(s *[]OIDCFlow) + func (f OIDCFlow) MarshalJSON() ([]byte, error) + type ResponseType int + const ResponseTypeShortToken + const ResponseTypeToken + const ResponseTypeTransferCode + func NewResponseType(s string) ResponseType + func (r *ResponseType) Scan(src interface{}) error + func (r *ResponseType) String() string + func (r *ResponseType) UnmarshalJSON(data []byte) error + func (r *ResponseType) UnmarshalYAML(value *yaml.Node) error + func (r *ResponseType) Valid() bool + func (r ResponseType) AddToSliceIfNotFound(s *[]ResponseType) + func (r ResponseType) MarshalJSON() ([]byte, error) + func (r ResponseType) Value() (driver.Value, error)