package
0.0.0-20220822164348-1fb92f6f5a50
Repository: https://github.com/vardius/go-api-boilerplate.git
Documentation: pkg.go.dev

# README

authenticator GoDoc

Package authenticator provides allows to authorize request

Download:

go get -u github.com/vardius/go-api-boilerplate/pkg/http/middleware/authenticator

Package authenticator provides allows to authorize request

# Functions

NewCredentials returns new credentials authenticator.
NewToken returns new token authenticator.

# Interfaces

CredentialsAuthenticator authorize by the username and password and adds Identity to request's Context.
TokenAuthenticator authorize by token and adds Identity to request's Context.

# Type aliases

CredentialsAuthFunc returns Identity from username and password combination.
TokenAuthFunc returns Identity from token.