helpers

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpiredTokenError

func ExpiredTokenError(e echo.Context) error

func ForbiddenError

func ForbiddenError(e echo.Context, suffix *string) error

func InputError

func InputError(e echo.Context, custom *string) error

func InsufficientScopeError added in v0.11.0

func InsufficientScopeError(e echo.Context, requiredScope string) error

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 InvalidTokenError(e echo.Context) error

func OauthNormalizeHtu

func OauthNormalizeHtu(u *url.URL) string

func OauthParseHtu

func OauthParseHtu(htu string) (string, error)

func ParseJWKFromBytes

func ParseJWKFromBytes(b []byte) (jwk.Key, error)

func RandomBytes

func RandomBytes(n int) []byte

func RandomHex

func RandomHex(n int) (string, error)

func RandomVarchar

func RandomVarchar(length int) string

func ServerError

func ServerError(e echo.Context, suffix *string) error

func UnauthorizedError

func UnauthorizedError(e echo.Context, suffix *string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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