auth

Paddy 2014-08-13 Parent:9a1e62c24903 Child:9fe684b33b3d

13:ceba439a0766 Go to Latest

auth/session.go

Tie client functions to storage functions. Call through to storage functions from client helper functions. For most of them, we're just aliasing a storage call, which calls into question the usefulness of this pattern.

History
paddy@6 1 package auth
paddy@1 2
paddy@1 3 import "net/http"
paddy@1 4
paddy@2 5 func validateSession(r *http.Request, c Context) error {
paddy@11 6 // TODO: return an error if the user does not have a valid session
paddy@1 7 return nil
paddy@1 8 }