Documentation ¶
Index ¶
- Variables
- type Credential
- type Provider
- func (p Provider) GetProviderName() string
- func (p Provider) GetUniqueIdentifier(ctx *fasthttp.RequestCtx) string
- func (p Provider) IsAuthenticated(ctx *fasthttp.RequestCtx) bool
- func (p Provider) Login(ctx *fasthttp.RequestCtx) (bool, map[string]error)
- func (p Provider) Logout(ctx *fasthttp.RequestCtx) bool
- func (p Provider) Register(ctx *fasthttp.RequestCtx) (bool, map[string]error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderName = "basicauth"
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Provider ¶
type Provider struct {
Credentials []Credential
}
func New ¶
func New(credentials ...Credential) *Provider
func (Provider) GetProviderName ¶
func (Provider) GetUniqueIdentifier ¶
func (p Provider) GetUniqueIdentifier(ctx *fasthttp.RequestCtx) string
func (Provider) IsAuthenticated ¶
func (p Provider) IsAuthenticated(ctx *fasthttp.RequestCtx) bool
Click to show internal directories.
Click to hide internal directories.