statictoken

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MPL-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(token string, opts ...StaticTokenOption) *staticTokenAuthenticator

func NewRangerPlugin

func NewRangerPlugin(token string) ranger.ClientPlugin

Types

type StaticTokenComparer

type StaticTokenComparer interface {
	CheckPasswordHash(password, hash string) bool
}

type StaticTokenOption

type StaticTokenOption func(c *staticTokenAuthenticator)

func WithBcryptCost

func WithBcryptCost(bcryptCost int) StaticTokenOption

func WithComparer

func WithComparer(comparer StaticTokenComparer) StaticTokenOption

func WithUser

func WithUser(subject string, name string, email string) StaticTokenOption

Jump to

Keyboard shortcuts

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