Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidAuthToken = errors.New("invalid authentication token")
)
Functions ¶
Types ¶
type Authenticator ¶
type Authenticator interface { Authenticate(r *http.Request) (string, error) GetAccessToken(u string) (string, error) }
func New ¶
func New(cfg AuthenticatorConfig) (Authenticator, error)
type AuthenticatorConfig ¶
type Authorizator ¶
type Authorizator interface { //Authorize(identity any, r *http.Request) error HasPermission(identity any, action string, asset string) error }
func NewAuthorizator ¶
func NewAuthorizator(cfg AuthorizatorConfig) (Authorizator, error)
type AuthorizatorConfig ¶
Click to show internal directories.
Click to hide internal directories.