Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithHeader ¶
func WithHeader(header string) option
WithHeader sets the http header to use. Defaults to 'Authorization'. Optional.
func WithPrefix ¶
func WithPrefix(prefix string) option
WithPrefix sets the prefix to check for in the header. Defaults to 'Token'. Optional.
func WithTokenSource ¶
func WithTokenSource(ts TokenSource) option
WithTokenSource sets the backing token source. Required.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) Authenticate ¶
type TokenSource ¶
Click to show internal directories.
Click to hide internal directories.