Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoAuthInfo = errors.Base("unauthorized")
Functions ¶
func Middleware ¶
func Middleware(provider Provider) mux.MiddlewareFunc
func SDKAddress ¶ added in v0.13.7
Types ¶
type Provider ¶
Provider tries to authenticate using the provided auth token
func NewIAPIProvider ¶
NewIAPIProvider authenticates a user by hitting internal-api with the auth token and matching the response to a local user. If auth is successful, the user will have a lbrynet server assigned and a wallet that's created and ready to use.
Click to show internal directories.
Click to hide internal directories.