* Add HTTP auth check
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Add HTTP auth via Manager Client
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Change the way manager client is injected
Instead of relying on modifying service structure, manager client is
injected through handler factory method, and store as a variable in that
module.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Update dockerignore
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
Instead of returning boolean value whether or not the access is granted,
an identifier bound to the provided access key is returned.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
Implemented a HTTP client toward the manager service. The client is
intended to be used as a library that will generate requests to the
'/identity' endpoint of a manager service instance selected through
provided URL.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
All validation has been moved to the API resources layer, i.e. the
domain objects provide validation method, but the service itself assumes
no corrupted values are passed to it.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
Services are versioned through top-level package. The package itself
contains an HTTP header that will be bound to the '/version' endpoint of
each of the available services.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
Setup top-level glide dependencies file. Migrated all of the manager
service code into this repository. Fixed docker build procedure.
Extracted executable to the top-level.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>