Documentation
¶
Index ¶
- func ExpiredTokenError(e echo.Context) error
- func ForbiddenError(e echo.Context, suffix *string) error
- func InputError(e echo.Context, custom *string) error
- func InsufficientScopeError(e echo.Context, requiredScope string) error
- func InvalidTokenError(e echo.Context) error
- func OauthNormalizeHtu(u *url.URL) string
- func OauthParseHtu(htu string) (string, error)
- func ParseJWKFromBytes(b []byte) (jwk.Key, error)
- func RandomBytes(n int) []byte
- func RandomHex(n int) (string, error)
- func RandomVarchar(length int) string
- func ServerError(e echo.Context, suffix *string) error
- func UnauthorizedError(e echo.Context, suffix *string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpiredTokenError ¶
func InsufficientScopeError ¶ added in v0.11.0
InsufficientScopeError responds 403 per RFC 6750 §3.1 when the session's granted scopes do not cover the requested operation. requiredScope is the scope that would have permitted it (e.g. "repo:app.bsky.feed.post?action=create").
func InvalidTokenError ¶
func OauthNormalizeHtu ¶
func OauthParseHtu ¶
func RandomBytes ¶
func RandomVarchar ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.