Broadly speaking, the role of the transport components (including
transport/http.ServerBefore) is to move information from the transport
domain to the business domain. Stuff like Authentication is in
something of a gray area, but I'd place it more as business logic. My
intuition would be to use ServerBefore to put relevant bits from the
path into the context, and then use a middleware to take information
from the context and do the authentication. I guess this is what
you're suggesting in your final paragraph? Can you explain a bit more
why you'd find that less than ideal?
Cheers,
Peter.
> --
> You received this message because you are subscribed to the Google Groups
> "Go kit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
go-kit+un...@googlegroups.com.
> To post to this group, send email to
go-...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/go-kit/d7819db5-3c50-4436-8b4e-b20e1b578a48%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.