Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 780 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 780 Bytes

gin-authentication-middleware

Gin authentication middleware sample, read the blogpost at for an explanation dandua.com/blog/gin-authentication-middleware/

gopher

Testing the Application

Clone the application from here to your $GOPATH/src and then run dep ensure and go run main.go

cd $GOPATH/src

go get github.com/dandua98/gin-authentication-middleware

cd github.com/dandua98/gin-authentication-middleware

go run main.go

Now try the endpoints using Postman or cURL with your session generated with the required authType from the login endpoint.