Skip to content

Basic Authentication middleware for Fiber that provides an HTTP

License

Notifications You must be signed in to change notification settings

asakew/goFiber-BasicAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goFiber-BasicAuth

Features

authConfig

authConfig := basicauth.Config{
	Users: map[string]string{
		"admin": "password123",
		"testUser": "testUser",
	},
}

Getting Started

Github: https://github.com/asakew/goFiber-BasicAuth/

git clone https://github.com/asakew/goFiber-BasicAuth

Updates go.mod and go.sum and running

go mod tidy
go run app/main.go

Stop Running

CTRL + C # Windows
CTRL + Break # Linux
Control + C # Mac

Build

go mod tidy # updates go.mod and go.sum
go mod download # downloads all the dependencies
go build # builds the binary