harlow / go-micro-services

HTTP up front, Protobufs in the rear
MIT License
1.09k stars 165 forks source link

Extract Auth logic into middleware #8

Closed harlow closed 9 years ago

harlow commented 9 years ago

This change moves Auth into it's own middleware which can be chained with Golang's HandlerFunc. This removes any knowledge of Authentication from the final HTTP Handler code.