Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.23 KB

README.md

File metadata and controls

26 lines (22 loc) · 1.23 KB

CleverGo Authentication Middleware

Build Status Coverage Status Go.Dev reference Go Report Card Release

Usage

import (
    "clevergo.tech/auth"
    "clevergo.tech/auth/authenticators"
    "clevergo.tech/authmiddleware"
    "clevergo.tech/clevergo"
)
var store auth.IdentityStore
authenticator := authenticators.NewBasicAuth(store)
app := clevergo.New()
app.Use(authmiddleware.New(authenticator))

Checkout example for details.