Documentation
¶
Overview ¶
Package authhdr parses client authentication headers without exposing tokens in URLs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMalformed = errors.New("malformed authorization header")
Functions ¶
func Bearer ¶
Bearer extracts an Authorization bearer credential. An empty or malformed value is rejected, and the credential is never accepted from a URL.
func MediaBrowser ¶
MediaBrowser parses the case-sensitive key/value parameters of a MediaBrowser or Emby authorization value. Quoted values may contain commas and backslash-escaped quotes. Percent escapes are decoded after parsing.
func MediaBrowserToken ¶
MediaBrowserToken returns legacy header credentials before an ApiKey query parameter. It does not interpret a query credential as Plex auth.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.