Re:Django Newbie Mistakes
by terminalcommand on Thursday June 28, 2018 @04:07PM
(#17420044)
That's true Golang does not come with automatic session management, authentication, csrf etc.
But if you look at it, csrf is just a hidden form value involving a token injected into the page. It is not hard to implement. In that sense Flask doesn't have csrf proection either.
Session management on the other hand could be troubling, but in the end they all rely on cookies: if I take a look at https://golang.org/src/net/http/cookie.go , I can easily make sense of it. But I can imagine the need for a higher level library for session management.
There is something called gorilla toolkit which has session management, but you're right it isn't included in the standard library. Golang's own template engine is also very primitive.
Not really. What about sessions? Auth? CSRF protection?