UmiUni / golang_backend

1 stars 0 forks source link

Every endpoint of business logic need token authentication. #29

Closed superchaoran closed 6 years ago

superchaoran commented 6 years ago

To avoid frontend hacked client fake call backend without a user authentication.

superchaoran commented 6 years ago

https://github.com/Jogchat/golang_backend/blob/master/middleware/middleware.go#L27 https://github.com/Jogchat/golang_backend/blob/master/main.go#L48 Already have a middleware token verification assigned to every business logic endpoint.